mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers: make default channel configurable at compile time
This commit is contained in:
parent
a66ce9c3eb
commit
c0369f04f6
@ -56,7 +56,9 @@ extern "C" {
|
||||
after CS */
|
||||
#define CC110X_GDO1_LOW_RETRY (100) /**< Max. retries for SO to go low
|
||||
after CS */
|
||||
#ifndef CC100X_DEFAULT_CHANNEL
|
||||
#define CC110X_DEFAULT_CHANNEL (0) /**< The default channel number */
|
||||
#endif
|
||||
#define CC110X_MIN_CHANNR (0) /**< lowest possible channel number */
|
||||
#define CC110X_MAX_CHANNR (0) /**< highest possible channel number */
|
||||
|
||||
|
@ -61,12 +61,16 @@ extern "C" {
|
||||
/* the AT86RF212B has a sub-1GHz radio */
|
||||
#define AT86RF2XX_MIN_CHANNEL (0)
|
||||
#define AT86RF2XX_MAX_CHANNEL (10)
|
||||
#ifndef AT86RF2XX_DEFAULT_CHANNEL
|
||||
#define AT86RF2XX_DEFAULT_CHANNEL (5)
|
||||
#endif
|
||||
#else
|
||||
#define AT86RF2XX_MIN_CHANNEL (11U)
|
||||
#define AT86RF2XX_MAX_CHANNEL (26U)
|
||||
#ifndef AT86RF2XX_DEFAULT_CHANNEL
|
||||
#define AT86RF2XX_DEFAULT_CHANNEL (26U)
|
||||
#endif
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -65,7 +65,9 @@ extern "C" {
|
||||
/**
|
||||
* @brief Default channel used after initialization
|
||||
*/
|
||||
#ifndef KW2XRF_DEFAULT_CHANNEL
|
||||
#define KW2XRF_DEFAULT_CHANNEL (26U)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Default TX_POWER in dbm used after initialization
|
||||
|
@ -68,7 +68,9 @@ extern "C" {
|
||||
/**
|
||||
* @brief Default channel used after initialization
|
||||
*/
|
||||
#ifndef XBEE_DEFAULT_CHANNEL
|
||||
#define XBEE_DEFAULT_CHANNEL (26U)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @name Address flags
|
||||
|
@ -28,7 +28,9 @@ extern "C" {
|
||||
|
||||
#define INITIAL_ADDRESS_WIDTH 5
|
||||
#define NRF24L01P_MAX_DATA_LENGTH 32
|
||||
#ifndef INITIAL_RF_CHANNEL
|
||||
#define INITIAL_RF_CHANNEL 5
|
||||
#endif
|
||||
#define INITIAL_RX_POWER_0dB 0
|
||||
|
||||
#define DELAY_CS_TOGGLE_TICKS 2
|
||||
|
Loading…
Reference in New Issue
Block a user