Skip to content

Commit

Permalink
Merge pull request RIOT-OS#7594 from lebrush/fix/atmega-context-switch
Browse files Browse the repository at this point in the history
boards/arduino-atmega-common: use PD7 for ctx operations
  • Loading branch information
lebrush authored Sep 18, 2017
2 parents 04175fb + 94624c2 commit 81bfb0c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions boards/arduino-atmega-common/include/board_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ extern "C" {
*/
#ifdef CPU_ATMEGA328P
#define AVR_CONTEXT_SWAP_INIT do { \
DDRC |= (1 << PC5); \
PCICR |= (1 << PCIE1); \
PCMSK1 |= (1 << PCINT13); \
DDRD |= (1 << PD7); \
PCICR |= (1 << PCIE2); \
PCMSK2 |= (1 << PCINT23); \
} while (0)
#define AVR_CONTEXT_SWAP_INTERRUPT_VECT PCINT1_vect
#define AVR_CONTEXT_SWAP_TRIGGER PORTC ^= (1 << PC5)
#define AVR_CONTEXT_SWAP_INTERRUPT_VECT PCINT2_vect
#define AVR_CONTEXT_SWAP_TRIGGER PORTD ^= (1 << PD7)
#endif

#ifdef CPU_ATMEGA2560
Expand Down

0 comments on commit 81bfb0c

Please sign in to comment.