mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 10:32:44 +01:00
drivers/periph_common: Add PIO to periph init
This commit is contained in:
parent
d8cf31b094
commit
500d257a52
@ -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 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user