include stdio_init call bedore periph_init

This commit is contained in:
Wlad Meixner
2020-06-02 00:58:49 +02:00
parent 70cf04f003
commit a445defbc2
2 changed files with 5 additions and 3 deletions
+4 -1
View File
@@ -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();
}
/**
+1 -2
View File
@@ -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 */
/**