mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 10:12:45 +01:00
pkg/uwb_core: use IS_USED when pertinent
This commit is contained in:
parent
c56e28a7e6
commit
ef7e1b6846
@ -29,7 +29,7 @@ extern "C" {
|
||||
* @brief Enable toplevel ranging services
|
||||
*/
|
||||
#ifndef MYNEWT_VAL_TWR_DS_ENABLED
|
||||
#define MYNEWT_VAL_TWR_DS_ENABLED (IS_ACTIVE(MODULE_UWB_CORE_TWR_DS))
|
||||
#define MYNEWT_VAL_TWR_DS_ENABLED (IS_USED(MODULE_UWB_CORE_TWR_DS))
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -29,7 +29,7 @@ extern "C" {
|
||||
* @brief Enable double sided extended two way ranging
|
||||
*/
|
||||
#ifndef MYNEWT_VAL_TWR_DS_EXT_ENABLED
|
||||
#define MYNEWT_VAL_TWR_DS_EXT_ENABLED IS_ACTIVE(MODULE_UWB_CORE_TWR_DS_EXT)
|
||||
#define MYNEWT_VAL_TWR_DS_EXT_ENABLED IS_USED(MODULE_UWB_CORE_TWR_DS_EXT)
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -29,7 +29,7 @@ extern "C" {
|
||||
* @brief Enable ranging services
|
||||
*/
|
||||
#ifndef MYNEWT_VAL_TWR_SS_ENABLED
|
||||
#define MYNEWT_VAL_TWR_SS_ENABLED (IS_ACTIVE(MODULE_UWB_CORE_TWR_SS))
|
||||
#define MYNEWT_VAL_TWR_SS_ENABLED (IS_USED(MODULE_UWB_CORE_TWR_SS))
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -29,7 +29,7 @@ extern "C" {
|
||||
* @brief Enable toplevel ranging services
|
||||
*/
|
||||
#ifndef MYNEWT_VAL_TWR_SS_ACK_ENABLED
|
||||
#define MYNEWT_VAL_TWR_SS_ACK_ENABLED (IS_ACTIVE(MODULE_UWB_CORE_TWR_SS_ACK))
|
||||
#define MYNEWT_VAL_TWR_SS_ACK_ENABLED (IS_USED(MODULE_UWB_CORE_TWR_SS_ACK))
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -29,7 +29,7 @@ extern "C" {
|
||||
* @brief Enable Single Sided extended ranging services
|
||||
*/
|
||||
#ifndef MYNEWT_VAL_TWR_SS_EXT_ENABLED
|
||||
#define MYNEWT_VAL_TWR_SS_EXT_ENABLED (IS_ACTIVE(MODULE_UWB_CORE_TWR_SS_EXT))
|
||||
#define MYNEWT_VAL_TWR_SS_EXT_ENABLED (IS_USED(MODULE_UWB_CORE_TWR_SS_EXT))
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -29,7 +29,7 @@ extern "C" {
|
||||
* @brief uwb-core uwb_rng module is enabled
|
||||
*/
|
||||
#ifndef MYNEWT_VAL_UWB_RNG_ENABLED
|
||||
#define MYNEWT_VAL_UWB_RNG_ENABLED ((IS_ACTIVE(MODULE_UWB_CORE_RNG)))
|
||||
#define MYNEWT_VAL_UWB_RNG_ENABLED ((IS_USED(MODULE_UWB_CORE_RNG)))
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user