From 1b8c78219bf4e9df7d407dff1027ff9e49d28d6b Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Mon, 5 Oct 2020 13:57:50 +0200 Subject: [PATCH] cpu/cc2538/cpu_conf: add OpenWSN conf --- cpu/cc2538/include/cpu_conf.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cpu/cc2538/include/cpu_conf.h b/cpu/cc2538/include/cpu_conf.h index 27eaaf2647..74a927ac42 100644 --- a/cpu/cc2538/include/cpu_conf.h +++ b/cpu/cc2538/include/cpu_conf.h @@ -43,6 +43,19 @@ extern "C" { #define CPU_HAS_BITBAND (1) /** @} */ +/** + * @name OpenWSN timing constants + * + * @{ + */ +/* Taken from openwsn-fw */ +#define PORT_maxTxDataPrepare (460/PORT_US_PER_TICK) +#define PORT_maxRxAckPrepare (300/PORT_US_PER_TICK) +#define PORT_maxRxDataPrepare (300/PORT_US_PER_TICK) +#define PORT_maxTxAckPrepare (460/PORT_US_PER_TICK) +#define PORT_delayTx (400/PORT_US_PER_TICK) +/** @} */ + #ifdef __cplusplus } /* end extern "C" */ #endif