Contains some basic definitions (FALSE, TRUE, ZERO) as well as what battery type (NiMh or Li-Ion) the charger is for.
Definition in file main.h.
Go to the source code of this file.
Defines | |
#define | FALSE 0 |
We have to define this ourselves. | |
#define | LIION |
Use specs and state menu for LIION. | |
#define | SWHIGH 1 |
#define | SWLOW 0 |
#define | TRUE (!FALSE) |
We have to define this ourselves. | |
#define | ZERO 0 |
We have to define this ourselves. | |
Variables | |
unsigned char | CurrentState |
Global that indicates current state. |
#define FALSE 0 |
We have to define this ourselves.
Definition at line 51 of file main.h.
Referenced by ADC_Init(), ADC_ISR(), ADC_Wait(), BatteryCheck(), BatteryDataRefresh(), BatteryStatusRefresh(), ConstantCurrent(), ConstantVoltage(), Doze(), Error(), HaltNow(), JumperCheck(), MaxVoltageAndCurrent(), NTCLookUp(), PWM_DecrementDutyCycle(), PWM_IncrementDutyCycle(), RIDLookUp(), SPI_Init(), SPI_Put(), SPI_Wait(), Time_Left(), and USI_OVF_ISR().
#define TRUE (!FALSE) |
We have to define this ourselves.
Definition at line 52 of file main.h.
Referenced by ADC_ISR(), BatteryCheck(), BatteryDataRefresh(), BatteryStatusRefresh(), Charge(), ConstantCurrent(), ConstantVoltage(), Doze(), HaltNow(), JumperCheck(), main(), MaxVoltageAndCurrent(), NTCLookUp(), PWM_DecrementDutyCycle(), PWM_IncrementDutyCycle(), RIDLookUp(), Sleep(), SPI_Put(), Time_Left(), and USI_OVF_ISR().
#define ZERO 0 |
unsigned char CurrentState |