Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
micropython/ports/nrf/bluetooth_conf.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
46 lines (34 sloc)
1.12 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef BLUETOOTH_CONF_H__ | |
#define BLUETOOTH_CONF_H__ | |
// SD specific configurations. | |
#if (BLUETOOTH_SD == 110) | |
#define MICROPY_PY_BLE (1) | |
#define MICROPY_PY_BLE_NUS (0) | |
#define BLUETOOTH_WEBBLUETOOTH_REPL (0) | |
#define MICROPY_PY_UBLUEPY (1) | |
#define MICROPY_PY_UBLUEPY_PERIPHERAL (1) | |
#elif (BLUETOOTH_SD == 132) | |
#define MICROPY_PY_BLE (1) | |
#define MICROPY_PY_BLE_NUS (0) | |
#define BLUETOOTH_WEBBLUETOOTH_REPL (0) | |
#define MICROPY_PY_UBLUEPY (1) | |
#define MICROPY_PY_UBLUEPY_PERIPHERAL (1) | |
#define MICROPY_PY_UBLUEPY_CENTRAL (1) | |
#elif (BLUETOOTH_SD == 140) | |
#define MICROPY_PY_BLE (1) | |
#define MICROPY_PY_BLE_NUS (0) | |
#define BLUETOOTH_WEBBLUETOOTH_REPL (0) | |
#define MICROPY_PY_UBLUEPY (1) | |
#define MICROPY_PY_UBLUEPY_PERIPHERAL (1) | |
#define MICROPY_PY_UBLUEPY_CENTRAL (1) | |
#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 |