2017-03-04 12:05:51 -05:00
|
|
|
#ifndef BLUETOOTH_CONF_H__
|
|
|
|
#define BLUETOOTH_CONF_H__
|
2016-12-13 14:27:26 -05:00
|
|
|
|
|
|
|
// SD specific configurations.
|
|
|
|
|
|
|
|
#if (BLUETOOTH_SD == 100)
|
|
|
|
|
|
|
|
#define MICROPY_PY_BLE (1)
|
|
|
|
#define MICROPY_PY_BLE_6LOWPAN (1)
|
|
|
|
#define MICROPY_PY_USOCKET (1)
|
|
|
|
#define MICROPY_PY_NETWORK (1)
|
|
|
|
|
|
|
|
#elif (BLUETOOTH_SD == 110)
|
|
|
|
|
|
|
|
#define MICROPY_PY_BLE (1)
|
2017-02-17 12:11:22 -05:00
|
|
|
#define MICROPY_PY_BLE_NUS (0)
|
|
|
|
#define MICROPY_PY_UBLUEPY (1)
|
|
|
|
#define MICROPY_PY_UBLUEPY_PERIPHERAL (1)
|
2016-12-13 14:27:26 -05:00
|
|
|
|
|
|
|
#elif (BLUETOOTH_SD == 132)
|
|
|
|
|
|
|
|
#define MICROPY_PY_BLE (1)
|
2017-02-07 18:05:37 -05:00
|
|
|
#define MICROPY_PY_BLE_NUS (0)
|
|
|
|
#define MICROPY_PY_UBLUEPY (1)
|
2017-02-08 12:45:49 -05:00
|
|
|
#define MICROPY_PY_UBLUEPY_PERIPHERAL (1)
|
2016-12-13 14:27:26 -05:00
|
|
|
|
|
|
|
#else
|
|
|
|
#error "SD not supported"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Default defines.
|
|
|
|
|
|
|
|
#ifndef MICROPY_PY_BLE_6LOWPAN
|
|
|
|
#define MICROPY_PY_BLE_6LOWPAN (0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MICROPY_PY_BLE
|
|
|
|
#define MICROPY_PY_BLE (0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MICROPY_PY_BLE_NUS
|
|
|
|
#define MICROPY_PY_BLE_NUS (0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|