Skip to content

Commit

Permalink
boards: fix LED0_TOGGLE for SAM3 based boards
Browse files Browse the repository at this point in the history
  • Loading branch information
jonajames committed Sep 20, 2017
1 parent 3bee2c0 commit 1fcfb7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion boards/arduino-due/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
/** @} */

/**
Expand Down
2 changes: 1 addition & 1 deletion boards/udoo/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
/** @} */

/**
Expand Down

0 comments on commit 1fcfb7b

Please sign in to comment.