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

nrf802154: Change timer frequency to match symbols rate

ieee802.15.4 specifies 40 symbols as LIFS value and 12 symbols as SIFS
value. Furthermore, the 2.4Ghz DSSS mode has a symbol rate of
62.5Ksymbols/s. To have the LIFS and SIFS in the code match the timings
from the specification, the TIMER_FREQ must match the symbol rate of
62.5Ksymbol/s such that one tick of the timer equals one symbol in time.
This commit is contained in:
Koen Zandberg 2019-03-08 20:39:18 +01:00
parent 6c84b4126f
commit 8c4760050e
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B

View File

@ -68,7 +68,7 @@ static uint8_t txbuf[IEEE802154_FRAME_LEN_MAX + 3]; /* len PHR + PSDU + LQI */
#define LIFS (40U)
#define SIFS (12U)
#define SIFS_MAXPKTSIZE (18U)
#define TIMER_FREQ (250000UL)
#define TIMER_FREQ (62500UL)
static volatile uint8_t _state;
static mutex_t _txlock;