1
0
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:
Francisco 2019-09-09 10:22:53 +03:00 committed by GitHub
commit 6d800ed85a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 8 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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 */