Definition in file main.c.
#include <inavr.h>
#include <iom169.h>
#include "main.h"
#include "LCD_functions.h"
#include "LCD_driver.h"
#include "button.h"
#include "BCD.h"
#include "types.h"
#include "STATE_functions.h"
#include "menu.h"
#include "..\AVRGSM_FILES\AVRGSM_api.h"
#include "..\AVRGSM_FILES\AVRGSM_com.h"
Include dependency graph for main.c:
Go to the source code of this file.
Defines | |
#define | pLCDREG_test (*(char *)(0xEC)) |
Functions | |
void | Initialization (void) |
This function setup the hardware. | |
__C_task void | main (void) |
This function is the main loop. | |
unsigned char | StateMachine (char state, unsigned char stimuli) |
This function controls the state machine. | |
Variables | |
__flash unsigned int | LCD_character_table [] |
int | rx_ack |
Extern flag from AVRSMS_com.c. | |
unsigned char | state |
|
|
|
This function setup the hardware.
Set up:
Definition at line 206 of file main.c. References Button_Init(), COM_init(), and LCD_Init(). Referenced by main().
Here is the call graph for this function: ![]() |
|
This function is the main loop.
The main loop control a state machine, and reacts on joypad stimuli or arrival
Local variables Initialization of state variables Program initalization DO this forever Definition at line 84 of file main.c. References getkey(), Initialization(), input, KEY_NULL, LCD_Colon(), LCD_puts_f(), menu_state, MT_IDLE, NULL, MENU_STATE::pFunc, MENU_STATE::pText, rx_ack, ST_AVR_IDLE, ST_AVR_NEW_SMS_function, ST_AVR_READY, ST_get_index(), MENU_STATE::state, state, and StateMachine().
Here is the call graph for this function: ![]() |
|
This function controls the state machine.
Definition at line 171 of file main.c. References MENU_NEXTSTATE::input, menu_nextstate, MENU_NEXTSTATE::nextstate, state, and MENU_NEXTSTATE::state. Referenced by main().
|
|
Definition at line 69 of file main.c. Referenced by LCD_WriteDigit(). |
|
Extern flag from AVRSMS_com.c.
|
|
Definition at line 71 of file main.c. Referenced by main(), and StateMachine(). |