diff options
Diffstat (limited to 'Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/mesh_cfg_usr.h')
-rw-r--r-- | Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/mesh_cfg_usr.h | 625 |
1 files changed, 625 insertions, 0 deletions
diff --git a/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/mesh_cfg_usr.h b/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/mesh_cfg_usr.h new file mode 100644 index 000000000..2d6647993 --- /dev/null +++ b/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/mesh_cfg_usr.h @@ -0,0 +1,625 @@ +/* USER CODE BEGIN Header */ +/** + ****************************************************************************** + * @file mesh_cfg_usr.h + * @author BLE Mesh Team + * @brief user configurable settings + ****************************************************************************** + * @attention + * + * Copyright (c) 2020-2021 STMicroelectronics. + * All rights reserved. + * + * This software is licensed under terms that can be found in the LICENSE file + * in the root directory of this software component. + * If no LICENSE file comes with this software, it is provided AS-IS. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __MESH_CFG_USR_H +#define __MESH_CFG_USR_H + +/* Includes ------------------------------------------------------------------*/ +#include "ble_mesh.h" + +/* Exported macro ------------------------------------------------------------*/ + +/* +* Different features supported by BLE-Mesh. Uncomment according to application. +* Low power feature enabled node do not support other features. +* Do not define any other feature if Low Power feature is defined +*/ +#define ENABLE_RELAY_FEATURE +#define ENABLE_PROXY_FEATURE +#define ENABLE_FRIEND_FEATURE +//#define ENABLE_LOW_POWER_FEATURE +//#define ENABLE_PROVISIONER_FEATURE +//#define DYNAMIC_PROVISIONER + +/* +* Different provision bearer supported by BLE-Mesh. +* Define according to application. +* At least one of PB-ADV and PB-GATT should be defined +*/ + +#define ENABLE_PB_ADV +#define ENABLE_PB_GATT +//#define ENABLE_PUB_KEY_TYPE_OOB +#define ENABLE_AUTH_TYPE_NO_OOB +//#define ENABLE_AUTH_TYPE_STATIC_OOB +//#define ENABLE_AUTH_TYPE_OUTPUT_OOB +//#define ENABLE_AUTH_TYPE_INPUT_OOB + +/* Static OOB Configurations */ +#define STATIC_OOB_SIZE 16U + +/* Output OOB Configurations */ +#define OUTPUT_OOB_SIZE 1U +#define OUTPUT_OOB_ACTION OUTPUT_OOB_ACTION_BIT_BLINK + +/* Input OOB Configurations */ +#define INPUT_OOB_SIZE 1U +#define INPUT_OOB_ACTION INPUT_OOB_ACTION_BIT_PUSH + +/******************************************************************************/ +/* Note: Please use Full Library configuration in project options to use the full + configuration of the C/C++ runtime library + for printf and scanf functionality */ + +/* Enables the serial interface using Uart */ +#define ENABLE_SERIAL_INTERFACE 1 +#define ENABLE_SIG_MODELS_AT_COMMANDS 1 +#define ENABLE_VENDOR_MODELS_AT_COMMANDS 0 +#define ENABLE_UT 1 + +/* Provisioner feature related configuration */ +#if defined (ENABLE_PROVISIONER_FEATURE) || defined(DYNAMIC_PROVISIONER) +#define PROVISIONER_ROOT_ADDR_DEFAULT 0x0001 + +/* +Define the following Macro to save the nodes data in provisioner in NVM +This may result into excessive flash erase operations, this should be avoided to ensure flash longevity +*/ +#define SAVE_EMBD_PROVISION_DATA 1 + +/* Enables the UUID saving per Node - Currently Not Supported */ +#define ENABLE_SAVE_UUID_PER_NODE 0 + +//#define ENABLE_SERIAL_PRVN 1 +//#define ENABLE_CONFIG_MODEL_CLIENT (1) + +#define CLIENT_MAX_SIG_MODELS_PER_ELEMENT 12 /* Number of SIG Models for Node under provisioning */ +#define CLIENT_MAX_VENDOR_MODELS_PER_ELEMENT 1 /* Number of Vendor Models for Node under provisioning */ +#define CLIENT_MAX_ELEMENTS_PER_NODE 1 /* Number of Elements per Node */ + +/* +* Enable or disable neighbor table +* if defined -> enabled +* If MAC address of neighbor changes it appears as new neighbor +* Neighbor table update can be triggered (configurable) in following cases +* On receiving Unprovisioned device beacon +* On receiving Secure network beacon +* On receiving Mesh message +* Message with any TTL +* Message with TTL = 0 +* if not defined -> disabled +*/ +#define ENABLE_NEIGHBOR_TABLE + +#endif + +/* Macro to test the Flash saving data and retrieval process */ +#define ENABLE_NVM_TEST + +/* Macros Used for user defined serial print data for models. +Either use 0 to disable or 1 to enable +@ TF_GENERIC -> Generic server +@ TF_GENERIC_CLIENT -> Generic client +@ TF_SENSOR -> Sensor server +@ TF_LIGHT -> Lighting server +@ TF_LIGHT_CLIENT -> Lighting client +@ TF_LIGHT_LC -> Light LC server +@ TF_VENDOR -> vendor model +@ TF_CONFIG_CLIENT -> config client +@ TF_LPN_FRND -> Friendship, Friend and Low Power +@ TF_PROVISION -> Provisioning related +@ TF_HANDLER -> interrupt handler +@ TF_INIT -> main function +@ TF_MISC -> others +@ TF_COMMON -> common (middleware) +@ TF_GENERIC_M -> Generic server (middleware) +@ TF_GENERIC_CLIENT_M -> Config client (middleware) +@ TF_SENSOR_M -> Sensor server (middleware) +@ TF_LIGHT_M -> Lighting server (middleware) +@ TF_LIGHT_CLIENT_M -> Lighting client (middleware) +@ TF_LIGHT_LC_M -> Light LC server (middleware) +@ TF_VENDOR_M -> vendor model (middleware) +@ TF_CONFIG_CLIENT_M -> Config client (middleware) +@ TF_NEIGHBOUR -> neighbour table +@ TF_MEMORY +@ TF_BEACON -> Beacons +@ TF_SERIAL_CTRL +*/ +/* Enabled by default */ +#ifndef ENABLE_LOW_POWER_FEATURE +#define TF_GENERIC 1 +#define TF_GENERIC_CLIENT 1 +#define TF_SENSOR 1 +#define TF_LIGHT 1 +#define TF_LIGHT_CLIENT 1 +#define TF_LIGHT_LC 1 +#define TF_VENDOR 1 +#define TF_CONFIG_CLIENT 1 +#define TF_CONFIG_SERVER 1 +#define TF_LPN_FRND 1 +#define TF_PROVISION 1 +#define TF_HANDLER 1 +#define TF_INIT 1 +#define TF_MISC 1 +#define TF_SERIAL_CTRL 1 +/* Disabled by default */ +#define TF_COMMON 0 +#define TF_GENERIC_M 0 +#define TF_GENERIC_CLIENT_M 1 +#define TF_SENSOR_M 1 +#define TF_SENSOR_CLIENT_M 1 +#define TF_LIGHT_M 0 +#define TF_LIGHT_CLIENT_M 1 +#define TF_LIGHT_LC_M 1 +#define TF_VENDOR_M 1 +#define TF_CONFIG_CLIENT_M 0 +#define TF_NEIGHBOUR 0 +#define TF_MEMORY 0 +#define TF_BEACON 0 +#define TF_VENDOR_APPLI_TEST 1 /* Vendor commands testing */ +#define TF_NVM 0 +#endif + +/******************************************************************************* +*** Following section helps to define Device Name during Provisioning ********* +*******************************************************************************/ + +#define DEVICE_NAME_SIZE 11 +#define DEVICE_NAME 'S','T',' ','B','L','E',' ','M','e','s','h' + +/******************************************************************************* +*** Following section helps to select right configuration of Models *********** +*******************************************************************************/ +/******************************************************************************/ +/* Define the following Macros to enable the usage of the */ +/* Server Generic Models */ +/* For a choice of 3 elements (max is 8) */ +/* Definition is a bitmap of 3 bits: bit 2 element 3 */ +/* bit 1 element 2 */ +/* bit 0 element 1 */ +/* Example: 6 means Model enabled in element 2 and 3 */ +/******************************************************************************/ + +/* Define the following Macros to enable the usage of the Server Generic Models */ +//#define ENABLE_GENERIC_MODEL_SERVER_ONOFF (1) +//#define ENABLE_GENERIC_MODEL_SERVER_LEVEL (1) +//#define ENABLE_GENERIC_MODEL_SERVER_POWER_ONOFF (1) +//#define ENABLE_GENERIC_MODEL_SERVER_POWER_ONOFF_SETUP (1) +//#define ENABLE_GENERIC_MODEL_SERVER_DEFAULT_TRANSITION_TIME (1) + +//#define ENABLE_GENERIC_MODEL_CLIENT_ONOFF (1) +//#define ENABLE_GENERIC_MODEL_CLIENT_LEVEL (1) +//#define ENABLE_GENERIC_MODEL_CLIENT_POWER_ONOFF (1) +//#define ENABLE_GENERIC_MODEL_CLIENT_DEFAULT_TRANSITION_TIME (1) + +/* The Following Models are not available in this version, will be developed in + next version. +*/ +/* +#define ENABLE_GENERIC_MODEL_SERVER_POWER_LEVEL +#define ENABLE_GENERIC_MODEL_SERVER_POWER_LEVEL_SETUP +#define ENABLE_GENERIC_MODEL_SERVER_BATTERY +#define ENABLE_GENERIC_MODEL_SERVER_LOCATION +#define ENABLE_GENERIC_MODEL_SERVER_LOCATION_SETUP +#define ENABLE_GENERIC_MODEL_SERVER_ADMIN_PROPERTY +#define ENABLE_GENERIC_MODEL_SERVER_MANUFACTURER_PROPERTY +#define ENABLE_GENERIC_MODEL_SERVER_USER_PROPERTY +#define ENABLE_GENERIC_MODEL_SERVER_CLIENT_PROPERTY + +*/ + +/******************************************************************************/ +/******* Define the following Macros to enable the usage of the Light Models */ +/* For a choice of 3 elements (max is 8) */ +/* Definition is a bitmap of 3 bits: bit 2 element 3 */ +/* bit 1 element 2 */ +/* bit 0 element 1 */ +/* Example: 6 means Model enabled in element 2 and 3 */ +/******************************************************************************/ + +//#define ENABLE_LIGHT_MODEL_SERVER_LIGHTNESS (1) +//#define ENABLE_LIGHT_MODEL_SERVER_LIGHTNESS_SETUP (1) +//#define ENABLE_LIGHT_MODEL_SERVER_CTL (1) +//#define ENABLE_LIGHT_MODEL_SERVER_CTL_SETUP (1) +//#define ENABLE_LIGHT_MODEL_SERVER_CTL_TEMPERATURE (1) +//#define ENABLE_LIGHT_MODEL_SERVER_HSL (1) +//#define ENABLE_LIGHT_MODEL_SERVER_HSL_SETUP (1) +//#define ENABLE_LIGHT_MODEL_SERVER_HSL_HUE (1) +//#define ENABLE_LIGHT_MODEL_SERVER_HSL_SATURATION (1) + +//#define ENABLE_LIGHT_MODEL_CLIENT_LIGHTNESS (1) +//#define ENABLE_LIGHT_MODEL_CLIENT_CTL (1) +//#define ENABLE_LIGHT_MODEL_CLIENT_HSL (1) + +/* + The following Models are managed in different file light_lc.c in middleware +*/ +//#define ENABLE_LIGHT_MODEL_SERVER_LC (1) + +//#define ENABLE_LIGHT_MODEL_CLIENT_LC (1) + +/******************************************************************************/ +/* Define the following Macros to enable the usage of the Sensor Models */ +/* For a choice of 3 elements (max is 8) */ +/* Definition is a bitmap of 3 bits: bit 2 element 3 */ +/* bit 1 element 2 */ +/* bit 0 element 1 */ +/* Example: 6 means Model enabled in element 2 and 3 */ +/******************************************************************************/ +//MESH_MODEL_SENSOR_APP_CODE Begin +/* Enable Sensor Model Server or Sensor Model Client */ +#define ENABLE_SENSOR_MODEL_SERVER (1) + +//#define ENABLE_SENSOR_MODEL_CLIENT (1) +//MESH_MODEL_SENSOR_APP_CODE End + +/******************************************************************************/ +/* Define the following Macros to enable the usage of the time and */ +/* scene Models */ +/* For a choice of 3 elements (max is 8) */ +/* Definition is a bitmap of 3 bits: bit 2 element 3 */ +/* bit 1 element 2 */ +/* bit 0 element 1 */ +/* Example: 6 means Model enabled in element 2 and 3 */ +/******************************************************************************/ + +//#define ENABLE_TIME_MODEL_SERVER +//#define ENABLE_TIME_MODEL_SERVER_SETUP +//#define ENABLE_SCENE_MODEL_SERVER +//#define ENABLE_SCENE_MODEL_SERVER_SETUP + +/* + The Following Models are not available in this version +*/ +//#define ENABLE_LIGHT_MODEL_SERVER_XYL +//#define ENABLE_LIGHT_MODEL_SERVER_XYL_SETUP + +/******* Define the following Macros to enable the vendor model ******/ +//#define ENABLE_VENDOR_MODEL_SERVER (1) +//#define GENERIC_SERVER_MODEL_PUBLISH + +/******************************************************************************/ +/* +Define the Macro for enabling/disabling the Publishing with Generic on off +or by Vendor Model. +@ define Macro for Vendor Publishing +@ Undefine or comment Macro for Generic On Off Publishing +*/ +//#define VENDOR_CLIENT_MODEL_PUBLISH +//#define GENERIC_CLIENT_MODEL_PUBLISH +//#define LIGHT_CLIENT_MODEL_PUBLISH + + +/* Define the macros for the numbers of sensor present.*/ +//#define NUMBER_OF_SENSOR 1 +//#define ENABLE_OCCUPANCY_SENSOR +/* +Macro is responsible for enabling and desabling the sensor publication. +Comment this macro to disable the publication +*/ +#define ENABLE_SENSOR_PUBLICATION + + +/******************************************************************************/ +/* Maximum Time period value of PWM */ +#define PWM_TIME_PERIOD 31990U + +/******************************************************************************/ +/***** MACROS for POWER ON-OFF CYCLE BASED UNPROVISIONING *********************/ +/******************************************************************************/ + +/* +Define the following Macro to check the Power-OnOff Cycles +5 Continuous cycles of OnOff with Ontime <2 sec will cause unprovisioning +*/ +//#define ENABLE_UNPROVISIONING_BY_POWER_ONOFF_CYCLE + +#define POWER_ON_OFF_CYCLES_FOR_UNPROVISIONING 5 +#define MASK_BITS_FOR_POWER_ON_OFF_CYCLES (0xFFFFFFFF << POWER_ON_OFF_CYCLES_FOR_UNPROVISIONING) + /* 0xFFFFFFE0 */ +#define ON_TIME_IN_SECONDS_FOR_POWER_CYCLING 2 +#define BLINK_TIMES_FOR_FACTORY_RESET 5 + +/* +Define the following Macro to save Generic and Light Model states in NVM +This may result into excessive flash erase operations, +this should be avoided to ensure flash longevity +*/ +#define ENABLE_SAVE_MODEL_STATE_NVM + +/* Only one Macro will be enable at one time */ +//#define SAVE_MODEL_STATE_FOR_ALL_MESSAGES +//#define SAVE_MODEL_STATE_POWER_FAILURE_DETECTION + + +/* Macros defined for the number of bytes saved, number of bytes dedicated for ganeric + model and light model. +*/ +#define APP_NVM_GENERIC_MODEL_SIZE 16U +#define APP_NVM_LIGHT_MODEL_SIZE 48U/*32U*/ +#define APP_NVM_MODELDATA_PER_ELEMENT_SIZE (APP_NVM_GENERIC_MODEL_SIZE+APP_NVM_LIGHT_MODEL_SIZE) +//#define APP_NVM_MODEL_SIZE 50U +#define APP_NVM_MODEL_SIZE (APP_NVM_MODELDATA_PER_ELEMENT_SIZE * APPLICATION_NUMBER_OF_ELEMENTS) +//#define APP_NVM_MODEL_ALL_ELEMENTS_SIZE + + +/*Macros are defined for the selection of the number of led and type of lighting + used for the application. +*if board has one led, uncomment USER_BOARD_1LED +*if board has cool warm leds, uncomment USER_BOARD_COOL_WHITE_LED +*if board has RGB leds, uncomment USER_BOARD_RGB_LED +*if board has RGB leds as well as cool warm leds, + uncomment USER_BOARD_COOL_WHITE_LED and USER_BOARD_RGB_LED +*/ +/* comment ENABLE_GENERIC_MODEL_SERVER_DEFAULT_TRANSITION_TIME when using + USER_BOARD_COOL_WHITE_LED ,USER_BOARD_RGB_LED + Default transition is provided only for one led. +*/ +//#define USER_BOARD_1LED +//#define USER_BOARD_COOL_WHITE_LED +//#define USER_BOARD_RGB_LED + +/******************************************************************************* +*** Following section helps to configure the Application of Mesh *********** +*******************************************************************************/ + +/* Max elements: 5 */ +#define APPLICATION_NUMBER_OF_ELEMENTS 1 +/* Max total Models per element = (SIG + Vendor) = 11 */ +/* Max SIG Models per element */ +#define USER_SIG_MODELS_MAX_COUNT 10 + +/* Max Vendor Models per element */ +#define USER_VENDOR_MODELS_MAX_COUNT 1 + + +/* Contains a 16-bit company identifier assigned by the Bluetooth SIG +(the list is available +@ https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers) +For STMicroelectronics : it is 0x0030 */ +#define COMPANY_ID 0x0030 + +/* Contains a 16-bit vendor-assigned product identifier */ +#define PRODUCT_ID 0x0002 + +/* Contains a 16-bit vendor-assigned product version ID */ +#define PRODUCT_VERSION_ID 0x010A + +#define MAX_APPLICATION_PACKET_SIZE 160 + +#define TPT_SEGMENT_COUNT (((MAX_APPLICATION_PACKET_SIZE)/12)+2) + +/******************************************************************************* +********** MAC Address Configuration ******************************************* +*******************************************************************************/ + +/* +* Define to enable external MAC handling, +* DONT change the Values 0x01, 0x02, 0x03 +* SELECT ONLY One of the Option +*/ +//#define GENERATE_STATIC_RANDOM_MAC 0x01 +//#define EXTERNAL_MAC_ADDR_MGMT 0x02 +#define INTERNAL_UNIQUE_NUMBER_MAC 0x03 + +/* Declare this value as 0x01 if the External Address is PUBLIC Address */ +/* For example like this: #define EXTERNAL_MAC_IS_PUBLIC_ADDR 0x1 */ +/* Else, by default, the external address will be treated as RANDOM */ +#define EXTERNAL_MAC_IS_PUBLIC_ADDR 0x0 + +/******************************************************************************/ + + +/******************************************************************************* +****** Following section helps to select right configuration of node *********** +*******************************************************************************/ +/* +* Minimum gap between successive transmissions +* varies from 10 to 65535 +*/ +#define TR_GAP_BETWEEN_TRANSMISSION 50U + + +/* +* Friend node receive window size is 50 ms +*/ + +/* +* Friend node subscription list size is 4 +*/ + +/* +* Friend node message queue is 16 +*/ + +/* +* Number of Low power nodes that can be associated with Friend node +* varies from 1 to 10 +*/ +#define FN_NO_OF_LPNS 6U + +/* +* For prioritizing friendship offer with good RSSI link +* varies from 0 to 3 +* Ref @Mesh_v1.0 +* 0 -> 1 +* 1 -> 1.5 +* 2 -> 2 +* 3 -> 2.5 +*/ +#define LPN_RSSI_FACTOR_LEVEL 1U + +/* +* For prioritizing friendship offer with good receive window factor +* varies from 0 to 3 +* Ref @Mesh_v1.0 +* 0 -> 1 +* 1 -> 1.5 +* 2 -> 2 +* 3 -> 2.5 +*/ +#define LPN_RECIVE_WINDOW_FACTOR_LEVEL 1U + +/* +* Minimum packets queue size required by Low Power node +* varies from 1 to 7 +* Ref @Mesh_v1.0 +* 1 -> 2 +* 2 -> 4 +* 3 -> 8 +* 4 -> 16 +* 5 -> 32 +* 6 -> 64 +* 7 -> 128 +*/ +#define LPN_MINIMUM_QUEUE_SIZE_LOG 2U + +/* +* (unit ms) +* varies from 0x0A to 0xFF +* Ref @Mesh_v1.0 +* 0x0A -> 10ms +* 0xFF -> 255ms +*/ +#define LPN_RECEIVE_DELAY 150U + +/* +* Poll timeout value after which friendship cease to exist (unit 100ms) +* varies from 0x00000A to 0x34BBFF +* Ref @Mesh_v1.0 +* 0x00000A -> 1 second +* 0x34BBFF -> 96 hours +*/ +#define LPN_POLL_TIMEOUT 2000U + +/* +* Maximum receive window size acceptable to low power node (unit ms) +* varies from 0x0A to 0xFF +* Ref @Mesh_v1.0 +* 0x0A -> 10ms +* 0xFF -> 255ms +*/ +#define LPN_RECEIVE_WINDOW_SIZE 255U/*55U*/ + +/* +* Minimum friend's subscription list size capability required by lpn +* varies from 1 to 5 +* Ref @Mesh_v1.0 +*/ +#define LPN_SUBSCR_LIST_SIZE 2U + +/* +* Frequency at which low power node would send friend request (unit 100ms) +* varies from 0 to 255 +* 100 -> 10s +*/ +#define LPN_FRIEND_REQUEST_FREQUENCY 50U + +/* +* Frequency at which low power node would poll friend node (unit 100ms) +* should be less than poll timeout +* 100 -> 10s +*/ +#define LPN_FRIEND_POLL_FREQUENCY 25U + +/* +* Minimum RSSI required by low power node +* should be less than equal to -60 +*/ +#define LPN_MINIMUM_RSSI -100 + +/* +* Retries to be made by lpn before termination of friendship +* varies from 2 to 10 +*/ +#define LPN_NO_OF_RETRIES 10U + +/* +* Maximum address list size buffer in +* Friend Subscription List Add Message is 10 +*/ + + +/* +* Enable or disable neighbor table +* if defined -> enabled +* If MAC address of neighbor changes it appears as new neighbor +* Neighbor table update can be triggered (configurable) in following cases +* On receiving Unprovisioned device beacon +* On receiving Secure network beacon +* On receiving Mesh message +* Message with any TTL +* Message with TTL = 0 +* if not defined -> disabled +*/ +#define ENABLE_NEIGHBOR_TABLE + +/* +* Size of neighbor table +*/ +#define NEIGHBOR_COUNT 5U + +/* +* (unit s) +* Duration (wrt appear or last refresh) +* for which neighbor exists in neighbor table +*/ +#define NEIGHBOR_ALIVE_TIME 20U + +/* +* Enable/disable neighbor table update with unprovisioned device beacon +* 0: Disable neighbor table update with unprovisioned device beacon +* 1: Enable neighbor table update with unprovisioned device beacon +*/ +#define NEIGHBOR_UNPRVND_DEV_BEACON_NTU 1U + +/* +* Enable/disable neighbor table update with secure network beacon +* 0: Disable neighbor table update with secure network beacon +* 1: Enable neighbor table update with secure network beacon +*/ +#define NEIGHBOR_SECURE_NET_BEACON_NTU 0U + +/* +* Enable/disable neighbor table update with TTL 0 message +* 0: Disable neighbor table update messages +* 1: Enable neighbor table update with messages with 0 TTL +* 2: Enable neighbor table update with messages with any TTL +*/ +#define NEIGHBOR_MSG_TTLX_NTU 0U + +/******************************************************************************* +*** Following section helps to configure the LEDs of Application of Mesh *** +*******************************************************************************/ + +#if defined USE_STM32WBXX_NUCLEO || defined USE_STM32WBXX_USB_DONGLE + #define SINGLE_LED PWM4 + #define COOL_LED PWM0 + #define WARM_LED PWM1 + #define RED_LED PWM2 + #define GREEN_LED PWM3 + #define BLUE_LED PWM4 +#endif + + +/* Exported variables -------------------------------------------------------*/ +/* Exported Functions Prototypes ---------------------------------------------*/ + +#endif /* __MESH_CFG_USR_H */ |