nrf5: Updating main.c to initialize the i2c machine module if selected.

This commit is contained in:
Glenn Ruben Bakke 2017-01-29 16:38:48 +01:00
parent f529aa9e67
commit bfc67dd99c
1 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,7 @@
#include "nrf.h"
#include "pin.h"
#include "spi.h"
#include "i2c.h"
#if MICROPY_PY_MACHINE_PWM
#include "pwm.h"
#endif
@ -107,6 +108,10 @@ int main(int argc, char **argv) {
spi_init0();
#endif
#if MICROPY_PY_MACHINE_HW_I2C
i2c_init0();
#endif
#if MICROPY_PY_MACHINE_PWM
pwm_init0();
#endif