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:
commit
307786973e
@ -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)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
||||
@ -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)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user