mirror of
https://github.com/gosticks/RIOT.git
synced 2026-10-05 23:37:08 +00:00
include stdio_init call bedore periph_init
This commit is contained in:
+4
-1
@@ -26,6 +26,7 @@
|
||||
#include "cpu.h"
|
||||
#include "periph/init.h"
|
||||
#include "periph_cpu.h"
|
||||
#include "stdio_uart.h"
|
||||
#include "vendor/hw_types.h"
|
||||
#include "vendor/rom.h"
|
||||
|
||||
@@ -50,8 +51,10 @@ void cpu_init(void)
|
||||
/* reset board */
|
||||
periph_reset();
|
||||
|
||||
/* trigger static peripheral initialization */
|
||||
stdio_init();
|
||||
|
||||
/* trigger static peripheral initialization */
|
||||
periph_init();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -67,8 +67,7 @@ static uint32_t ports[] = {
|
||||
/**
|
||||
* @brief static callback memory
|
||||
*/
|
||||
static gpio_isr_ctx_t isr_ctx[sizeof(ports) / sizeof(uint32_t)]
|
||||
[GPIO_PINS_PER_PORT];
|
||||
static gpio_isr_ctx_t isr_ctx[ARRAY_SIZE(ports)][GPIO_PINS_PER_PORT];
|
||||
#endif /* MODULE_PERIPH_GPIO_IRQ */
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user