1 #ifndef BLUETOOTH_CONF_H__
2 #define BLUETOOTH_CONF_H__
3 
4 // SD specific configurations.
5 
6 #if (BLUETOOTH_SD == 110)
7 
8 #define MICROPY_PY_BLE                  (1)
9 #define MICROPY_PY_BLE_NUS              (0)
10 #define BLUETOOTH_WEBBLUETOOTH_REPL     (0)
11 #define MICROPY_PY_UBLUEPY              (1)
12 #define MICROPY_PY_UBLUEPY_PERIPHERAL   (1)
13 
14 #elif (BLUETOOTH_SD == 132)
15 
16 #define MICROPY_PY_BLE                  (1)
17 #define MICROPY_PY_BLE_NUS              (0)
18 #define BLUETOOTH_WEBBLUETOOTH_REPL     (0)
19 #define MICROPY_PY_UBLUEPY              (1)
20 #define MICROPY_PY_UBLUEPY_PERIPHERAL   (1)
21 #define MICROPY_PY_UBLUEPY_CENTRAL      (1)
22 
23 #elif (BLUETOOTH_SD == 140)
24 
25 #define MICROPY_PY_BLE                  (1)
26 #define MICROPY_PY_BLE_NUS              (0)
27 #define BLUETOOTH_WEBBLUETOOTH_REPL     (0)
28 #define MICROPY_PY_UBLUEPY              (1)
29 #define MICROPY_PY_UBLUEPY_PERIPHERAL   (1)
30 #define MICROPY_PY_UBLUEPY_CENTRAL      (1)
31 
32 #else
33 #error "SD not supported"
34 #endif
35 
36 // Default defines.
37 
38 #ifndef MICROPY_PY_BLE
39 #define MICROPY_PY_BLE                  (0)
40 #endif
41 
42 #ifndef MICROPY_PY_BLE_NUS
43 #define MICROPY_PY_BLE_NUS              (0)
44 #endif
45 
46 #endif
47