/secu3app

SECU-3 firmware

Primary LanguageCGNU General Public License v3.0GPL-3.0

    SECU-3 Firmware (Application). Distributed under GPL license

    Designed by Alexey A. Shabelnikov 2007. Ukraine, Kiev.
    Microprocessor systems - design & programming.
    http://secu-3.org e-mail: shabelnikov@secu-3.org


    HOW TO COMPILE THE PROJECT
    Êàê êîìïèëèðîâàòü ïðîåêò

    You can compile the project using either IAR(MS Windows) or GCC(Linux, MS
    Windows). Project compiles for ATMega644/ATMega644P
    Under MS Windows: Run configure.bat with corresponding options (type of MCU
                      and type of compiler),it will create Makefile and start
                      building.
    Under Linux:      Run configure.sh with option - type of MCU and type of
                      compiler, it will create Makefile and start building.

    Âû ìîæåòå êîìïèëèðîâàòü ïðîåêò èñïîëüçóÿ IAR èëè GCC. Çàïóñòèòå configure.bat
c ñîîòâåòñòâóþùèìè îïöèÿìè (òèï ìèêðîêîíòðîëëåðà è òèï êîìïèëÿòîðà), áóäåò ñîçäàí
Makefile è íà÷íåòñÿ ñáîðêà ïðîåêòà. Ïðîåêò ñîáèðàåòñÿ äëÿ ATMega644/ATMega644P.
Íèæå ïðåäñòàâëåí ñïèñîê âîçìîæíûõ îïöèé êîìïèëÿöèè. Èñêëþ÷åíèå íåíóæíûõ îïöèé
ïîçâîëèò âàì ýêîíîìèòü ïàìÿòü è ðåñóðñû ÌÊ.

    LIST OF SYMBOLS WHICH AFFECT COMPILATION:
    Ñïèñîê ñèìâîëîâ óïðàâëÿþùèõ êîìïèëÿöèåé:

    SECU3T               Build for SECU-3T or for SECU-3i. If not defined, then
                         build for SECU-3i
                         ñîáèðàòü ïðîøèâêó äëÿ SECU-3T èëè SECU-3i.

    DWELL_CONTROL        For direct controlling of dwell
                         äëÿ ïðÿìîãî óïðàâëåíèÿ íàêîïëåíèåì ýíåðãèè â êàòóøêàõ
                         çàæèãàíèÿ


    COOLINGFAN_PWM       Use PWM for controlling of electric cooling fan
                         èñïîëüçîâàòü èëè íåò ØÈÌ äëÿ óïðàâëåíèÿ îáîðîòàìè
                         âåíòèëÿòîðà

    REALTIME_TABLES      Allow editing of tables in realtime (use RAM)
                         ðàçðåøèòü ðåäàêòèðîâàíèå òàáëèö â ðåàëüíîì âðåìåíè

    DEBUG_VARIABLES      For watching and editing of some firmware variables
                         (used for debug by developers)
                         ðàçðåøèòü ðåæèì îòëàäêè ïîçâîëÿþùèé îòñëåæèâàòü è
                         ìåíÿòü íåêîòîðûå ïåðåìåííûå ïðîøèâêè

    PHASE_SENSOR         Use of phase (cam) sensor
                         (ðàçðåøèòü èñïîëüçîâàíèå äàò÷èêà ôàç)


    PHASED_IGNITION      Use phased ignition. PHASE_SENSOR must be also used.
                         (ðàçðåøèòü ôàçèðîâàííîå çàæèãàíèå)

    FUEL_PUMP            Electric fuel pump control
                         (Óïðàâëåíèå ýëåêòðîáåíçîíàñîñîì)


    THERMISTOR_CS        Use a resistive temperature sensor
                         (Èñïîëüçóåòñÿ äàò÷èê òåìïåðàòóðû îõëàæäàþùåé æèäêîñòè
                         ðåçèñòèâíîãî òèïà)

    REV9_BOARD           Build for SECU-3T boards of revision 9 and greater.
                         (Ñáîðêà äëÿ ïëàò SECU-3T ðåâèçèè 9 è âûøå)

    DIAGNOSTICS          Include hardware diagnostics functionality
                         (Âêëþ÷èòü ïîääåðæêó äèàãíîñòèêè àïïàðàòíîé ÷àñòè)

    HALL_OUTPUT          Include Hall sensor emulation functionality. Separate
                         output will be used.
                         (Âêëþ÷èòü ïîääåðæêó ýìóëÿöèè ñèãíàëà ñ Äàò÷èêà Õîëëà)

    STROBOSCOPE          Include stroboscope functionality
                         (Âêëþ÷èòü ïîääåðæêó ñòðîáîñêîïà)

    SM_CONTROL           Enable stepper motor and choke control functionality
                         (Âêëþ÷èòü ôóíêöèîíàëüíîñòü ïî óïðàâëåíèþ øàãîâûì
                         äâèãàòåëåì è âîçäóøíîé çàñëîíêîé)

    VREF_5V              Use 5V ADC reference voltage. In this case divider
                         bottom resistors are not necessary. So, input impedance
                         will be high.
                         (Èñïîëüçîâàòü îïîðíîå íàïðÿæåíèå äëÿ ÀÖÏ 5Â)

    HALL_SYNC            Use synchronization from Hall sensor (connected to PS
                         input) instead of CKP sensor
                         Èñïîëüçîâàòü ñèíõðîíèçàöèþ îò ÄÕ âìåñòî ÄÏÊÂ

    CKPS_2CHIGN          Build firmware for use 2 channel igniters (driven by
                         both edges)
                         Ñîáðàòü ïðîøèâêó ñ ïîääåðæêîé 2-õ êàíàëüíûõ
                         êîììóòàòîðîâ (óïðàâëÿþòñÿ 2-ìÿ ôðîíòàìè)

    FUEL_INJECT          Include support of fuel injection
                         Âêëþ÷èòü ïîääåðæêó óïðàâëåíèÿ âïðûñêîì òîïëèâà

    GD_CONTROL           Enable stepper motor control for gas dose control
                         (Âêëþ÷èòü ôóíêöèîíàëüíîñòü ïî óïðàâëåíèþ øàãîâûì
                         äâèãàòåëåì äëÿ äîçàòîðà ãàçà)

    CARB_AFR             Enable control of AFR on carburetor by means of
                         electronic actuators (valves driven by PWM)
                         (Âêëþ÷èòü ïîääåðæêó óïðàâëåíèÿ ñîñòàâîì ñìåñè íà
                          êàðáþðàòîðå ïðè ïîìîùè ýëåêòðîííûõ àêòþàòîðîâ)

    CKPS_NPLUS1          Synchronization from N+1 crankshaft wheel (e.g. 2+1
                         used in kawasaki ZX6R)
                         Ñèíõðîíèçàöèÿ îò çàäàþùåãî äèñêà N+1, íàïðèìåð 2+1

    OBD_SUPPORT          OBD support (send data to the CAN network)
                         Ïîääåðæêà OBD (cëàòü äàííûå â CAN ñåòü)

    TPIC8101             Support of TPIC8101 knock chip
                         Ïîääåðæêà ìèêðîñõåìû TPIC8101

    CAM_SYNC             Support of synchronization from camshaft wheel
                         Ñèíõðîíèçàöèÿ îò äèñêà íà ðàñïðåäåëèòåëüíîì âàëå

    SPLIT_ANGLE          Split angle for ignition on rotary engines
                         Ñïëèòòèíã ÓÎÇ äëÿ ðîòîðíî-ïîðøíåâûõ äâèãàòåëåé

    BL_BAUD_RATE   *     Baud rate for boot loader. Can be set to 9600, 14400,
                         19200, 28800, 38400, 57600, 115200. Note! Will not take
                         effect without reprogramming using ISP programmator.
                         (Ñêîðîñòü ïåðåäà÷è äàííûõ äëÿ çàãðóç÷èêà)

    SPEED_SENSOR    *    Include speed sensor support
                         Âêëþ÷èòü ïîääåðæêó äàò÷èêà ñêîðîñòè

    INTK_HEATING    *    Include support of intake manifold heating control
                         Âêëþ÷èòü ïîääåðæêó óïðàâëåíèÿ ïîäîãðåâîì âïóñêíîãî
                         êîëëåêòîðà

    AIRTEMP_SENS    *    Include support of intake air temperature sensor
                         Âêëþ÷èòü ïîääåðæêó äàò÷èêà òåìïåðàòóðû âîçäóõà

    BLUETOOTH_SUPP  *    Include functionality for working with Bluetooth
                         Âêëþ÷èòü ïîääåðæêó ðàáîòû ñ Bluetooth

    IMMOBILIZER     *    Include immobilizer and iButton functionality
                         Âêëþ÷èòü ïîääåðæêó èììîáèëàéçåðà è iButton

    UNI_OUTPUT      *    Include support of an universal programmable output
                         Âêëþ÷èòü ïîääåðæêó óíèâåðñàëüíîãî ïðîãðàììèðóåìîãî
                         âûõîäà

    PA4_INP_IGNTIM  *    Use PA4 as analog input for manual correction of
                         ignition timing

    SEND_INST_VAL   *    Send instant values (RPM, voltage) instead of averaged
                         Ïåðåäàâàòü ìãíîâåííûå çíà÷åíèÿ, áåç óñðåäíåíèÿ

    EVAP_CONTROL    *    Canister purge valve control
                         Óïðàâëåíèå êëàïàíîì ïðîäóâêè àäñîðáåðà

    AIRCONDIT       *    Air conditioner control
                         Óïðàâëåíèå êîíäèöèîíåðîì

    EGOS_HEATING    *    EGO sensor's heater control
                         Óïðàâëåíèå ïîäîãðåâîì äàò÷èêà êèñëîðîäà

    MCP3204         *    Support of additional 4 analog inputs (using MCP3204)
                         Ïîääåðæêà 4 äîïîëíèòåëüíûõ àíàëîãîâûõ âõîäîâ

    IFR_VS_MAP_CORR *    Turn on correction of pressure in the fuel rail
                         Âêëþ÷èòü êîððåêöèþ äàâëåíèÿ â òîïëèâíîé ðàìïå ïî ÄÀÄ

    DEFERRED_CRC    *    Turn on background checking of the firmware's CRC
                         Âêëþ÷èòü ôîíîâóþ ïðîâåðêó êîíòðîëüíîé ñóììû ïðîøèâêè

* means that option is internal and not displayed in the list of options in the
  SECU-3 Manager
  îçíà÷àåò ÷òî îïöèÿ ÿâëÿåòñÿ âíóòðåííåé è íå îòîáðàæàåòñÿ â ñïèñêå îïöèé â
  SECU-3 Manager

Necessary symbols you can define in the preprocessor's options of the compiler
(edit corresponding Makefile).
Íóæíûå âàì ñèìâîëû âû ìîæåòå îïðåäåëèòü â îïöèÿõ ïðåïðîöåññîðà êîìïèëÿòîðà 
(ðåäàêòèðóéòå ñîîòâåòñòâóþùèé Makefile).