microbit: Promote constants in MicroBitBLEManager to .h file

Moved configuration constants from .cpp to .h file, so that they can be reused
more easily from other code, such as the broadcast radio code.
This commit is contained in:
Joe Finney 2016-02-01 04:25:51 +00:00
parent 66ed227663
commit e3a23988f6
2 changed files with 5 additions and 6 deletions

View File

@ -39,6 +39,11 @@
#define MICROBIT_BLE_PAIR_SUCCESSFUL 0x08
#define MICROBIT_BLE_PAIRING_TIMEOUT 90
#define MICROBIT_BLE_POWER_LEVELS 8
#define MICROBIT_BLE_MAXIMUM_BONDS 4
#define MICROBIT_BLE_ENABLE_BONDING true
#define MICROBIT_BLE_REQUIRE_MITM true
extern const int8_t MICROBIT_BLE_POWER_LEVEL[];
/**
* Class definition for the MicroBitBLEManager.

View File

@ -21,13 +21,7 @@
#pragma GCC diagnostic pop
#endif
#define MICROBIT_BLE_ENABLE_BONDING true
#define MICROBIT_BLE_REQUIRE_MITM true
#define MICROBIT_PAIRING_FADE_SPEED 4
#define MICROBIT_BLE_POWER_LEVELS 8
#define MICROBIT_BLE_MAXIMUM_BONDS 4
const char* MICROBIT_BLE_MANUFACTURER = "The Cast of W1A";
const char* MICROBIT_BLE_MODEL = "BBC micro:bit";