Add mising TSCH constants for platforms openmote-cc2528 and cc2538dk
This commit is contained in:
parent
0039fde747
commit
f9134b1198
@ -36,11 +36,13 @@
|
|||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#define RTIMER_ARCH_SECOND 32768
|
#define RTIMER_ARCH_SECOND 32768
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
#define CC2538_PHY_OVERHEAD 3
|
||||||
|
#define CC2538_BYTE_AIR_TIME 32
|
||||||
/* 352us from calling transmit() until the SFD byte has been sent */
|
/* 352us from calling transmit() until the SFD byte has been sent */
|
||||||
#define CC2538_DELAY_BEFORE_TX ((unsigned)US_TO_RTIMERTICKS(352))
|
#define CC2538_DELAY_BEFORE_TX ((unsigned)US_TO_RTIMERTICKS(352))
|
||||||
/* 192us as in datasheet but ACKs are not always received, so adjusted to 250us */
|
/* 192us as in datasheet but ACKs are not always received, so adjusted to 250us */
|
||||||
#define CC2538_DELAY_BEFORE_RX ((unsigned)US_TO_RTIMERTICKS(250))
|
#define CC2538_DELAY_BEFORE_RX ((unsigned)US_TO_RTIMERTICKS(250))
|
||||||
#define CC2538_DELAY_BEFORE_DETECT 0
|
#define CC2538_DELAY_BEFORE_DETECT 0
|
||||||
/* Frame filtering done in software */
|
/* Frame filtering done in software */
|
||||||
#define TSCH_CONF_HW_FRAME_FILTERING 0
|
#define TSCH_CONF_HW_FRAME_FILTERING 0
|
||||||
|
|
||||||
|
@ -220,6 +220,18 @@
|
|||||||
#endif /* #if SPI1_IN_USE */
|
#endif /* #if SPI1_IN_USE */
|
||||||
/** @} */
|
/** @} */
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
/**
|
||||||
|
* \name CC2538 TSCH configuration
|
||||||
|
*
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
#define RADIO_PHY_OVERHEAD CC2538_PHY_OVERHEAD
|
||||||
|
#define RADIO_BYTE_AIR_TIME CC2538_BYTE_AIR_TIME
|
||||||
|
#define RADIO_DELAY_BEFORE_TX CC2538_DELAY_BEFORE_TX
|
||||||
|
#define RADIO_DELAY_BEFORE_RX CC2538_DELAY_BEFORE_RX
|
||||||
|
#define RADIO_DELAY_BEFORE_DETECT CC2538_DELAY_BEFORE_DETECT
|
||||||
|
/** @} */
|
||||||
|
/*---------------------------------------------------------------------------*/
|
||||||
/**
|
/**
|
||||||
* \name Device string used on startup
|
* \name Device string used on startup
|
||||||
* @{
|
* @{
|
||||||
|
@ -174,6 +174,18 @@
|
|||||||
#define I2C_SDA_PIN 4
|
#define I2C_SDA_PIN 4
|
||||||
/** @} */
|
/** @} */
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
/**
|
||||||
|
* \name CC2538 TSCH configuration
|
||||||
|
*
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
#define RADIO_PHY_OVERHEAD CC2538_PHY_OVERHEAD
|
||||||
|
#define RADIO_BYTE_AIR_TIME CC2538_BYTE_AIR_TIME
|
||||||
|
#define RADIO_DELAY_BEFORE_TX CC2538_DELAY_BEFORE_TX
|
||||||
|
#define RADIO_DELAY_BEFORE_RX CC2538_DELAY_BEFORE_RX
|
||||||
|
#define RADIO_DELAY_BEFORE_DETECT CC2538_DELAY_BEFORE_DETECT
|
||||||
|
/** @} */
|
||||||
|
/*---------------------------------------------------------------------------*/
|
||||||
/**
|
/**
|
||||||
* \name Device string used on startup
|
* \name Device string used on startup
|
||||||
* @{
|
* @{
|
||||||
|
Loading…
Reference in New Issue
Block a user