nrf5: Making i2c configurable from board configuration in case board has to sacrifice the i2c machine module.

This commit is contained in:
Glenn Ruben Bakke 2017-02-02 18:33:03 +01:00
parent 0066f226aa
commit 14d4a8def8
1 changed files with 4 additions and 1 deletions

View File

@ -101,7 +101,6 @@
#define MICROPY_PY_UTIME_MP_HAL (1)
#define MICROPY_PY_MACHINE (1)
#define MICROPY_PY_MACHINE_PULSE (0)
#define MICROPY_PY_MACHINE_I2C (1)
#define MICROPY_PY_MACHINE_I2C_MAKE_NEW machine_hard_i2c_make_new
#define MICROPY_PY_MACHINE_SPI (0)
#define MICROPY_PY_MACHINE_SPI_MIN_DELAY (0)
@ -111,6 +110,10 @@
#define MICROPY_PY_MACHINE_ADC (0)
#endif
#ifndef MICROPY_PY_MACHINE_I2C
#define MICROPY_PY_MACHINE_I2C (0)
#endif
#ifndef MICROPY_PY_MACHINE_HW_SPI
#define MICROPY_PY_MACHINE_HW_SPI (1)
#endif