mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #11366 from maribu/early_stdio_atmega
cpu/atmega_common: Moved atmega_stdio_init() to cpu_init()
This commit is contained in:
commit
6d800ed85a
@ -38,10 +38,6 @@ void board_init(void)
|
||||
|
||||
atmega_set_prescaler(CPU_ATMEGA_CLK_SCALE_INIT);
|
||||
|
||||
#ifdef MODULE_AVR_LIBC_EXTRA
|
||||
atmega_stdio_init();
|
||||
#endif
|
||||
|
||||
cpu_init();
|
||||
led_init();
|
||||
irq_enable();
|
||||
|
@ -58,10 +58,6 @@ void board_init(void)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef MODULE_AVR_LIBC_EXTRA
|
||||
atmega_stdio_init();
|
||||
#endif
|
||||
|
||||
cpu_init();
|
||||
led_init();
|
||||
irq_enable();
|
||||
|
@ -105,6 +105,10 @@ void cpu_init(void)
|
||||
wdt_reset(); /* should not be nececessary as done in bootloader */
|
||||
wdt_disable(); /* but when used without bootloader this is needed */
|
||||
|
||||
/* Initialize stdio before periph_init() to allow use of DEBUG() there */
|
||||
#ifdef MODULE_AVR_LIBC_EXTRA
|
||||
atmega_stdio_init();
|
||||
#endif
|
||||
/* Initialize peripherals for which modules are included in the makefile.*/
|
||||
/* spi_init */
|
||||
/* rtc_init */
|
||||
|
Loading…
Reference in New Issue
Block a user