Skip to content
Snippets Groups Projects
Commit e0f9d18a authored by BytesGalore's avatar BytesGalore
Browse files

Merge pull request #4832 from cgundogan/pr/drivers/default_channel

drivers: make default radio channel configurable at compile time
parents 847c4868 c0369f04
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,9 @@ extern "C" { ...@@ -56,7 +56,9 @@ extern "C" {
after CS */ after CS */
#define CC110X_GDO1_LOW_RETRY (100) /**< Max. retries for SO to go low #define CC110X_GDO1_LOW_RETRY (100) /**< Max. retries for SO to go low
after CS */ after CS */
#ifndef CC100X_DEFAULT_CHANNEL
#define CC110X_DEFAULT_CHANNEL (0) /**< The default channel number */ #define CC110X_DEFAULT_CHANNEL (0) /**< The default channel number */
#endif
#define CC110X_MIN_CHANNR (0) /**< lowest possible channel number */ #define CC110X_MIN_CHANNR (0) /**< lowest possible channel number */
#define CC110X_MAX_CHANNR (0) /**< highest possible channel number */ #define CC110X_MAX_CHANNR (0) /**< highest possible channel number */
......
...@@ -61,12 +61,16 @@ extern "C" { ...@@ -61,12 +61,16 @@ extern "C" {
/* the AT86RF212B has a sub-1GHz radio */ /* the AT86RF212B has a sub-1GHz radio */
#define AT86RF2XX_MIN_CHANNEL (0) #define AT86RF2XX_MIN_CHANNEL (0)
#define AT86RF2XX_MAX_CHANNEL (10) #define AT86RF2XX_MAX_CHANNEL (10)
#ifndef AT86RF2XX_DEFAULT_CHANNEL
#define AT86RF2XX_DEFAULT_CHANNEL (5) #define AT86RF2XX_DEFAULT_CHANNEL (5)
#endif
#else #else
#define AT86RF2XX_MIN_CHANNEL (11U) #define AT86RF2XX_MIN_CHANNEL (11U)
#define AT86RF2XX_MAX_CHANNEL (26U) #define AT86RF2XX_MAX_CHANNEL (26U)
#ifndef AT86RF2XX_DEFAULT_CHANNEL
#define AT86RF2XX_DEFAULT_CHANNEL (26U) #define AT86RF2XX_DEFAULT_CHANNEL (26U)
#endif #endif
#endif
/** @} */ /** @} */
/** /**
......
...@@ -65,7 +65,9 @@ extern "C" { ...@@ -65,7 +65,9 @@ extern "C" {
/** /**
* @brief Default channel used after initialization * @brief Default channel used after initialization
*/ */
#ifndef KW2XRF_DEFAULT_CHANNEL
#define KW2XRF_DEFAULT_CHANNEL (26U) #define KW2XRF_DEFAULT_CHANNEL (26U)
#endif
/** /**
* @brief Default TX_POWER in dbm used after initialization * @brief Default TX_POWER in dbm used after initialization
......
...@@ -68,7 +68,9 @@ extern "C" { ...@@ -68,7 +68,9 @@ extern "C" {
/** /**
* @brief Default channel used after initialization * @brief Default channel used after initialization
*/ */
#ifndef XBEE_DEFAULT_CHANNEL
#define XBEE_DEFAULT_CHANNEL (26U) #define XBEE_DEFAULT_CHANNEL (26U)
#endif
/** /**
* @name Address flags * @name Address flags
......
...@@ -28,7 +28,9 @@ extern "C" { ...@@ -28,7 +28,9 @@ extern "C" {
#define INITIAL_ADDRESS_WIDTH 5 #define INITIAL_ADDRESS_WIDTH 5
#define NRF24L01P_MAX_DATA_LENGTH 32 #define NRF24L01P_MAX_DATA_LENGTH 32
#ifndef INITIAL_RF_CHANNEL
#define INITIAL_RF_CHANNEL 5 #define INITIAL_RF_CHANNEL 5
#endif
#define INITIAL_RX_POWER_0dB 0 #define INITIAL_RX_POWER_0dB 0
#define DELAY_CS_TOGGLE_TICKS 2 #define DELAY_CS_TOGGLE_TICKS 2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment