Allow custom frequency bands (+ some TI radio tweak options)
* Add DOT_15_4G_FREQUENCY_BAND_CUSTOM for configuring non-standard frequency band * Add option to tweak some timer settings
This commit is contained in:
parent
e8286f46c9
commit
d17566aaef
@ -78,9 +78,17 @@
|
||||
#define IEEE802154_CONF_DEFAULT_CHANNEL 0
|
||||
#endif /* IEEE802154_CONF_DEFAULT_CHANNEL */
|
||||
|
||||
#ifndef CSMA_CONF_ACK_WAIT_TIME
|
||||
#define CSMA_CONF_ACK_WAIT_TIME (RTIMER_SECOND / 400)
|
||||
#endif /* CSMA_CONF_ACK_WAIT_TIME */
|
||||
|
||||
#ifndef CSMA_CONF_AFTER_ACK_DETECTED_WAIT_TIME
|
||||
#define CSMA_CONF_AFTER_ACK_DETECTED_WAIT_TIME (RTIMER_SECOND / 1000)
|
||||
#endif /* CSMA_CONF_AFTER_ACK_DETECTED_WAIT_TIME */
|
||||
|
||||
#ifndef CSMA_CONF_SEND_SOFT_ACK
|
||||
#define CSMA_CONF_SEND_SOFT_ACK 1
|
||||
#endif /* CSMA_CONF_SEND_SOFT_ACK */
|
||||
|
||||
#else /* CC13XX_CONF_PROP_MODE */
|
||||
#ifndef NETSTACK_CONF_RADIO
|
||||
|
@ -63,6 +63,7 @@
|
||||
#define DOT_15_4G_FREQUENCY_BAND_950 11 /* 950–958 (Japan) - 950 MHz band */
|
||||
#define DOT_15_4G_FREQUENCY_BAND_1427 12 /* 1427–1518 (US and Canada, non-contiguous) - 1427 MHz band */
|
||||
#define DOT_15_4G_FREQUENCY_BAND_2450 13 /* 2400–2483.5 2450 MHz band */
|
||||
#define DOT_15_4G_FREQUENCY_BAND_CUSTOM 14 /* For use with custom frequency band settings */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Default band selection to band 4 - 863MHz */
|
||||
#ifdef DOT_15_4G_CONF_FREQUENCY_BAND_ID
|
||||
@ -77,6 +78,18 @@
|
||||
* bands we only support operating mode #1 (Table 134).
|
||||
*
|
||||
* DOT_15_4G_CHAN0_FREQUENCY is specified here in KHz
|
||||
*
|
||||
* Custom bands and configuration can be used with DOT_15_4G_FREQUENCY_BAND_CUSTOM.
|
||||
*
|
||||
* Example of custom setup for the 868Mhz sub-band in Europe with 11 channels,
|
||||
* center frequency at 868.050MHz and channel spacing at 100KHz.
|
||||
* These should be put in project-config.h or similar.
|
||||
*
|
||||
* #define DOT_15_4G_FREQUENCY_BAND_ID DOT_15_4G_FREQUENCY_BAND_CUSTOM
|
||||
* #define DOT_15_4G_CHAN0_FREQUENCY 868050
|
||||
* #define DOT_15_4G_CHANNEL_SPACING 100
|
||||
* #define DOT_15_4G_CHANNEL_MAX 11
|
||||
* #define PROP_MODE_CONF_LO_DIVIDER 0x05
|
||||
*/
|
||||
#if DOT_15_4G_FREQUENCY_BAND_ID==DOT_15_4G_FREQUENCY_BAND_470
|
||||
#define DOT_15_4G_CHANNEL_MAX 198
|
||||
@ -116,6 +129,22 @@
|
||||
#define DOT_15_4G_CHAN0_FREQUENCY 951000
|
||||
#define PROP_MODE_CONF_LO_DIVIDER 0x05
|
||||
|
||||
#elif DOT_15_4G_FREQUENCY_BAND_ID==DOT_15_4G_FREQUENCY_BAND_CUSTOM
|
||||
#ifndef DOT_15_4G_CHANNEL_MAX
|
||||
#error DOT_15_4G_CHANNEL_MAX must be manually set when using custom frequency band
|
||||
#endif
|
||||
|
||||
#ifndef DOT_15_4G_CHANNEL_SPACING
|
||||
#error DOT_15_4G_CHANNEL_SPACING must be manually set when using custom frequency band
|
||||
#endif
|
||||
|
||||
#ifndef DOT_15_4G_CHAN0_FREQUENCY
|
||||
#error DOT_15_4G_CHAN0_FREQUENCY must be manually set when using custom frequency band
|
||||
#endif
|
||||
|
||||
#ifndef PROP_MODE_CONF_LO_DIVIDER
|
||||
#error PROP_MODE_CONF_LO_DIVIDER must be manually set when using custom frequency band
|
||||
#endif
|
||||
#else
|
||||
#error The selected frequency band is not supported
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user