mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #10055 from MrKevinWeiss/pr/openmoteb/switchfix
boards/openmote-b: Fix RF_SWITCH_* logic to active low
This commit is contained in:
commit
c25105a04e
@ -69,12 +69,12 @@
|
||||
#define LED3_OFF (LED_PORT->DATA |= LED3_MASK)
|
||||
#define LED3_TOGGLE (LED_PORT->DATA ^= LED3_MASK)
|
||||
|
||||
#define RF_SWITCH_2_4_GHZ_ON (RF_SWITCH_PORT->DATA |= RF_SWITCH_2_4_GHZ_MASK)
|
||||
#define RF_SWITCH_2_4_GHZ_OFF (RF_SWITCH_PORT->DATA &= ~RF_SWITCH_2_4_GHZ_MASK)
|
||||
#define RF_SWITCH_2_4_GHZ_ON (RF_SWITCH_PORT->DATA &= ~RF_SWITCH_2_4_GHZ_MASK)
|
||||
#define RF_SWITCH_2_4_GHZ_OFF (RF_SWITCH_PORT->DATA |= RF_SWITCH_2_4_GHZ_MASK)
|
||||
#define RF_SWITCH_2_4_GHZ_TOGGLE (RF_SWITCH_PORT->DATA ^= RF_SWITCH_2_4_GHZ_MASK)
|
||||
|
||||
#define RF_SWITCH_SUB_GHZ_ON (RF_SWITCH_PORT->DATA |= RF_SWITCH_SUB_GHZ_MASK)
|
||||
#define RF_SWITCH_SUB_GHZ_OFF (RF_SWITCH_PORT->DATA &= ~RF_SWITCH_SUB_GHZ_MASK)
|
||||
#define RF_SWITCH_SUB_GHZ_ON (RF_SWITCH_PORT->DATA &= ~RF_SWITCH_SUB_GHZ_MASK)
|
||||
#define RF_SWITCH_SUB_GHZ_OFF (RF_SWITCH_PORT->DATA |= RF_SWITCH_SUB_GHZ_MASK)
|
||||
#define RF_SWITCH_SUB_GHZ_TOGGLE (RF_SWITCH_PORT->DATA ^= RF_SWITCH_SUB_GHZ_MASK)
|
||||
/** @} */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user