void up_lowinit(void) { /* Disable the watchdog timer */ wdt_disable(); /* Set the system clock divider to 1 */ clock_prescale_set(clock_div_1); /* Initialize the watchdog timer */ up_wdtinit(); /* Initialize a console (probably a serial console) */ up_consoleinit(); /* Perform early serial initialization (so that we will have debug output * available as soon as possible). */ #ifdef CONFIG_USE_EARLYSERIALINIT up_earlyserialinit(); #endif /* Perform board-level initialization */ up_boardinitialize(); }
void up_lowinit(void) { /* Initialize MCU clocking */ up_clkinitialize(); /* Initialize a console (probably a serial console) */ up_consoleinit(); /* Perform early serial initialization (so that we will have debug output * available as soon as possible). */ #ifdef USE_EARLYSERIALINIT up_earlyserialinit(); #endif /* Perform board-level initialization */ at32uc3_boardinitialize(); }