1
0
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:
Peter Kietzmann 2018-09-27 08:45:42 +02:00 committed by GitHub
commit c25105a04e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
/** @} */