1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00

drivers/periph_common: Add PIO to periph init

This commit is contained in:
Fabian Hüßler 2021-12-16 14:51:31 +01:00
parent d8cf31b094
commit 500d257a52

View File

@ -53,6 +53,9 @@
#ifdef MODULE_PERIPH_INIT_VBAT
#include "periph/vbat.h"
#endif
#ifdef MODULE_PERIPH_INIT_PIO
#include "periph/pio.h"
#endif
#endif /* MODULE_PERIPH_INIT */
void periph_init(void)
@ -117,5 +120,12 @@ void periph_init(void)
vbat_init();
#endif
#ifdef MODULE_PERIPH_INIT_PIO
for (int i = 0; i < (int)PIO_NUMOF; i++) {
pio_init(PIO_DEV(i));
}
pio_start_programs();
#endif
#endif /* MODULE_PERIPH_INIT */
}