bluetooth_conf.h 1.1 KB

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