mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
boards: fix LED0_TOGGLE for SAM3 based boards
This commit is contained in:
parent
3bee2c0f82
commit
1fcfb7b637
@ -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…
Reference in New Issue
Block a user