#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 130 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().
00131 { 00132 U8 nb_device; 00133 00134 wdtdrv_disable(); 00135 Clear_prescaler(); 00136 00137 uart_init(); 00138 #ifdef __GNUC__ 00139 fdevopen((int (*)(char, FILE*))(uart_putchar),(int (*)(FILE*))uart_getchar); //for printf redirection used in TRACE 00140 #endif 00141 trace("\x0C-----------Start\n\r"); 00142 trace_nl(); 00143 00144 // STK525 init 00145 Leds_init(); 00146 Joy_init(); 00147 Hwb_button_init(); 00148 00149 // Mass Storage Extension board init 00150 Avr_ms_board_init(); 00151 00152 // NAND Flash Initialization 00153 #if (NF_AUTO_DETECT_2KB == FALSE) && (NF_AUTO_DETECT_512B == FALSE) 00154 nb_device = nfc_check_type(NF_N_DEVICES); 00155 while( NF_N_DEVICES != nb_device ); 00156 #else 00157 nfc_detect(); 00158 #endif 00159 nf_init(); 00160 00161 nf_test_unit_ready(); 00162 scheduler(); 00163 return 0; 00164 }
| char __low_level_init | ( | ) |
Definition at line 178 of file main.c.
References Clear_prescaler.
00179 { 00180 Clear_prescaler(); 00181 return 1; 00182 }
1.5.3