1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/samr21-xpro: add OpenWSN timing constants

This commit is contained in:
Francisco Molina 2020-06-25 22:37:43 +02:00
parent 7515f1152a
commit b0c5c3eaca
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

View File

@ -57,6 +57,23 @@ extern "C" {
#define AT86RF2XX_PARAM_SLEEP GPIO_PIN(PA, 20)
#define AT86RF2XX_PARAM_RESET GPIO_PIN(PB, 15)
/**
* @name OpenWSN timing constants
*
* @{
*/
/* Measured 800us + ~10% */
#define PORT_maxTxDataPrepare (900/PORT_US_PER_TICK)
/* Measured 450us + ~10% */
#define PORT_maxRxAckPrepare (500/PORT_US_PER_TICK)
/* Measured 500us + ~10% */
#define PORT_maxRxDataPrepare (550/PORT_US_PER_TICK)
/* Measured 660us + ~10% */
#define PORT_maxTxAckPrepare (750/PORT_US_PER_TICK)
/* Measured 650us with openwsn_sctimer_rtt */
#define PORT_delayTx (650/PORT_US_PER_TICK)
/** @} */
/**
* @name LED pin definitions and handlers
* @{