1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 06:53:52 +01:00

Merge pull request #7613 from jonajames/feature/sam3_pio_toggle_issue

SAM3: macro LED0_TOGGLE not working
This commit is contained in:
Sebastian Meiling 2017-09-20 14:11:45 +02:00 committed by GitHub
commit 307786973e
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ extern "C" {
#define LED0_ON (PIOB->PIO_SODR = PIO_PB27)
#define LED0_OFF (PIOB->PIO_CODR = PIO_PB27)
#define LED0_TOGGLE (PIOB->PIO_ODSR ^= PIO_PB27)
#define LED0_TOGGLE ((PIOB->PIO_ODSR & PIO_PB27) ? LED0_OFF : LED0_ON)
/** @} */
/**

View File

@ -39,7 +39,7 @@ extern "C" {
#define LED0_ON (LED_PORT->PIO_SODR = LED0_MASK)
#define LED0_OFF (LED_PORT->PIO_CODR = LED0_MASK)
#define LED0_TOGGLE (LED_PORT->PIO_ODSR ^= LED0_MASK)
#define LED0_TOGGLE ((PIOB->PIO_ODSR & LED0_MASK) ? LED0_OFF : LED0_ON)
/** @} */
/**