Cleaned and added and new HARDWARE_PLATFORM to set the BLE name of the device as well as enable specific features if it is the release firmware ie the watch that is used daily
This commit is contained in:
parent
f31b3a2896
commit
627754a5e6
@ -12,13 +12,15 @@
|
||||
* @brief Defines for which platform to compile the firmware for :
|
||||
*
|
||||
* SMART_WATCH_BREADBOARD : the smart watch dev hardware which is on a breadboard
|
||||
* SMART_WATCH_PCB : the smart watch using the PCB
|
||||
* SMART_WATCH_PCB_DEV : the smart watch using the PCB which serves as the development platform
|
||||
* SMART_WATCH_PCB_RELEASE : the smart watch using the PCB for every day use (production)
|
||||
*
|
||||
*/
|
||||
#define SMART_WATCH_BREADBOARD (0)
|
||||
#define SMART_WATCH_PCB (1)
|
||||
#define SMART_WATCH_BREADBOARD (0)
|
||||
#define SMART_WATCH_PCB_DEV (1)
|
||||
#define SMART_WATCH_PCB_RELEASE (2)
|
||||
|
||||
#define HARDWARE_PLATFORM SMART_WATCH_PCB
|
||||
#define HARDWARE_PLATFORM SMART_WATCH_PCB_RELEASE
|
||||
|
||||
/**
|
||||
* @brief Define which kind of logs to display :
|
||||
@ -103,6 +105,12 @@
|
||||
* @brief BLE advertised device name
|
||||
*
|
||||
*/
|
||||
#define BLE_DEVICE_NAME "MDBT42Q_W800SW"
|
||||
#if HARDWARE_PLATFORM == SMART_WATCH_BREADBOARD
|
||||
#define BLE_DEVICE_NAME "MDBT42Q_BRDDEV"
|
||||
#elif HARDWARE_PLATFORM == SMART_WATCH_PCB_DEV
|
||||
#define BLE_DEVICE_NAME "MDBT42Q_PCBDEV"
|
||||
#else
|
||||
#define BLE_DEVICE_NAME "MDBT42Q_W800SW"
|
||||
#endif
|
||||
|
||||
#endif //APP_CONFIG_H
|
Loading…
Reference in New Issue
Block a user