#include "config.h"#include "modules/scheduler/scheduler.h"#include "lib_mcu/wdt/wdt_drv.h"#include "lib_mcu/power/power_drv.h"#include "lib_mem/nf/nf_mngt.h"#include "lib_mcu/uart/uart_lib.h"#include "lib_mcu/debug.h"
Go to the source code of this file.
Defines | |
| #define | _TRACE_ (DISABLE) |
Functions | |
| int | main (void) |
Procedure to speed up the startup code | |
This one increment the CPU clock before RAM initialisation | |
| char | __low_level_init () |
Definition in file main.c.
| int main | ( | void | ) |
Definition at line 151 of file main.c.
References Avr_ms_board_init, Clear_prescaler, Hwb_button_init, Joy_init, Leds_init, nf_init(), NF_N_DEVICES, nf_test_unit_ready(), nfc_check_type(), nfc_detect(), scheduler(), trace(), trace_nl(), uart_getchar(), uart_init(), uart_putchar, and wdtdrv_disable().
00152 { 00153 U8 nb_device; 00154 00155 wdtdrv_disable(); 00156 Clear_prescaler(); 00157 00158 uart_init(); 00159 #ifdef __GNUC__ 00160 fdevopen((int (*)(char, FILE*))(uart_putchar),(int (*)(FILE*))uart_getchar); //for printf redirection used in TRACE 00161 #endif 00162 trace("\x0C-----------Start\n\r"); 00163 trace_nl(); 00164 00165 // STK525 init 00166 Leds_init(); 00167 Joy_init(); 00168 Hwb_button_init(); 00169 00170 // Mass Storage Extension board init 00171 Avr_ms_board_init(); 00172 00173 // NAND Flash Initialization 00174 #if (NF_AUTO_DETECT_2KB == FALSE) && (NF_AUTO_DETECT_512B == FALSE) 00175 nb_device = nfc_check_type(NF_N_DEVICES); 00176 while( NF_N_DEVICES != nb_device ); 00177 #else 00178 nfc_detect(); 00179 #endif 00180 nf_init(); 00181 00182 nf_test_unit_ready(); 00183 scheduler(); 00184 return 0; 00185 }
| char __low_level_init | ( | ) |
Definition at line 199 of file main.c.
References Clear_prescaler.
00200 { 00201 Clear_prescaler(); 00202 return 1; 00203 }
1.5.3