Application module containing the main() entry point. More...
#include <avr/wdt.h>#include <util/delay.h>#include <avr/interrupt.h>#include <avr/pgmspace.h>#include <stdio.h>#include "xtypes.h"#include "global.h"#include "adc.h"#include "fan.h"#include "init.h"#include "temp.h"#include "timer.h"#include "pedal.h"#include "speed.h"#include "relay.h"#include "safety.h"#include "memory.h"#include "speaker.h"#include "voltage.h"#include "current.h"#include "ula_repl.h"
Go to the source code of this file.
Defines | |
| #define | EXPORT |
Functions | |
| int | main (void) |
| Main entry function. Executes the application loop. | |
| static E_BOOL | mg_RelayControl (void) |
| Enables or disables the motor. | |
Variables | |
| static E_BOOL | mg_bIsPedelec = TRUE |
| E_BOOL variable to hold pedelec mode. | |
| static UINT16 | mg_u16SpeedLimitMax = SPEEDLIMIT_MAX |
| UINT16 variable to keep maximum speed limit (for motor enabling) | |
| static UINT16 | mg_u16SpeedLimitMin = SPEEDLIMIT_MIN |
| UINT16 variable to keep minimum speed limit (for motor enabling) | |
| static UINT16 | mg_u16FanTemp = VALUE_TEMP_FAN |
| UINT16 variable to keep fan activation temperature. | |
| static UINT8 | mg_u8NumMagnetsTacho = DEFAULT_MAGNET_NUMBER_TACHO |
| UINT8 variable to keep the number of tacho reed switch magnets. | |
| static UINT8 | mg_u8NumMagnetsPedal = DEFAULT_MAGNET_NUMBER_PEDAL |
| UINT8 variable to keep the number of pedal reed switch magnets. | |
This module contains the main() function which is the application firmware entry point.
All not-interrupt-triggered operations are handled inside the application loop in main().
Definition in file ula_repl.c.
1.7.2