2017-03-04 18:05:51 +01:00
|
|
|
#ifndef BLUETOOTH_CONF_H__
|
|
|
|
#define BLUETOOTH_CONF_H__
|
2016-12-13 20:27:26 +01:00
|
|
|
|
|
|
|
// SD specific configurations.
|
|
|
|
|
2017-04-09 18:53:58 +02:00
|
|
|
#if (BLUETOOTH_SD == 110)
|
2016-12-13 20:27:26 +01:00
|
|
|
|
|
|
|
#define MICROPY_PY_BLE (1)
|
2017-02-17 18:11:22 +01:00
|
|
|
#define MICROPY_PY_BLE_NUS (0)
|
2017-04-04 22:31:17 +02:00
|
|
|
#define BLUETOOTH_WEBBLUETOOTH_REPL (0)
|
2017-02-17 18:11:22 +01:00
|
|
|
#define MICROPY_PY_UBLUEPY (1)
|
|
|
|
#define MICROPY_PY_UBLUEPY_PERIPHERAL (1)
|
2016-12-13 20:27:26 +01:00
|
|
|
|
2018-02-02 21:01:01 +01:00
|
|
|
#elif (BLUETOOTH_SD == 132 || BLUETOOTH_SD == 140)
|
2016-12-13 20:27:26 +01:00
|
|
|
|
|
|
|
#define MICROPY_PY_BLE (1)
|
2017-02-08 00:05:37 +01:00
|
|
|
#define MICROPY_PY_BLE_NUS (0)
|
2017-04-04 22:31:17 +02:00
|
|
|
#define BLUETOOTH_WEBBLUETOOTH_REPL (0)
|
2017-02-08 00:05:37 +01:00
|
|
|
#define MICROPY_PY_UBLUEPY (1)
|
2017-02-08 18:45:49 +01:00
|
|
|
#define MICROPY_PY_UBLUEPY_PERIPHERAL (1)
|
2017-05-25 22:19:12 +02:00
|
|
|
#define MICROPY_PY_UBLUEPY_CENTRAL (1)
|
2016-12-13 20:27:26 +01:00
|
|
|
|
|
|
|
#else
|
|
|
|
#error "SD not supported"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Default defines.
|
|
|
|
|
|
|
|
#ifndef MICROPY_PY_BLE
|
|
|
|
#define MICROPY_PY_BLE (0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MICROPY_PY_BLE_NUS
|
|
|
|
#define MICROPY_PY_BLE_NUS (0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|