mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
49 lines
1.0 KiB
C
49 lines
1.0 KiB
C
/*
|
|
* Copyright (C) 2020 Inria
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
* directory for more details.
|
|
*/
|
|
|
|
/**
|
|
* @ingroup cpu
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief nrf52 specific definitions for pkg/openwsn
|
|
*
|
|
* @author Francisco Molina <francois-xavier.molina@inria.fr>
|
|
*/
|
|
|
|
#ifndef OPENWSN_DEFS_H
|
|
#define OPENWSN_DEFS_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef CPU_MODEL_NRF52840XXAA
|
|
/**
|
|
* @name OpenWSN timing constants
|
|
*
|
|
* @{
|
|
*/
|
|
/* Taken from OpenWSN @32.768Hz */
|
|
#define PORT_maxTxDataPrepare (400/PORT_US_PER_TICK)
|
|
#define PORT_maxRxAckPrepare (400/PORT_US_PER_TICK)
|
|
#define PORT_maxRxDataPrepare (400/PORT_US_PER_TICK)
|
|
#define PORT_maxTxAckPrepare (400/PORT_US_PER_TICK)
|
|
/* Measured 220us */
|
|
#define PORT_delayTx (300/PORT_US_PER_TICK)
|
|
#define PORT_delayRx (150/PORT_US_PER_TICK)
|
|
/** @} */
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* OPENWSN_DEFS_H */
|
|
/** @} */
|