File tree Expand file tree Collapse file tree 3 files changed +15
-13
lines changed
atmega256rfr2-xpro/include Expand file tree Collapse file tree 3 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 2020#define BOARD_H
2121
2222#include "cpu.h"
23+ #include "periph_cpu.h"
2324#include "periph/gpio.h"
2425
2526#ifdef __cplusplus
@@ -48,10 +49,10 @@ extern "C" {
4849 */
4950#define LED0_PIN GPIO_PIN(PORT_B, 4)
5051#define LED0_MODE GPIO_OUT
51- #define LED0_ENABLE_PORT DDRB |= LED0_PIN
52- #define LED0_ON PORTB |= LED0_PIN
53- #define LED0_OFF PORTB &= ~LED0_PIN
54- #define LED0_TOGGLE PORTB ^= LED0_PIN
52+ #define LED0_ENABLE_PORT DDRB |= LED0_PIN.pin
53+ #define LED0_ON PORTB |= LED0_PIN.pin
54+ #define LED0_OFF PORTB &= ~LED0_PIN.pin
55+ #define LED0_TOGGLE PORTB ^= LED0_PIN.pin
5556/** @} */
5657
5758/**
Original file line number Diff line number Diff line change 2222
2323#include "cpu.h"
2424#include "periph/gpio.h"
25+ #include "periph_cpu.h"
2526
2627#include "at24mac.h"
2728#include "net/eui_provider.h"
Original file line number Diff line number Diff line change @@ -79,15 +79,15 @@ extern "C" {
7979 * @{
8080 */
8181/* LED0,2 currently unsupported due to lack of GPIO_OD support */
82- #define LED1_ENABLE_PORT DDRB |= LED1_PIN
83- #define LED1_ON PORTB |= LED1_PIN
84- #define LED1_OFF PORTB &= ~LED1_PIN
85- #define LED1_TOGGLE PORTB ^= LED1_PIN
86-
87- #define LED3_ENABLE_PORT DDRB |= LED3_PIN
88- #define LED3_ON PORTB |= LED3_PIN
89- #define LED3_OFF PORTB &= ~LED3_PIN
90- #define LED3_TOGGLE PORTB ^= LED3_PIN
82+ #define LED1_ENABLE_PORT DDRB |= LED1_PIN.pin
83+ #define LED1_ON PORTB |= LED1_PIN.pin
84+ #define LED1_OFF PORTB &= ~LED1_PIN.pin
85+ #define LED1_TOGGLE PORTB ^= LED1_PIN.pin
86+
87+ #define LED3_ENABLE_PORT DDRB |= LED3_PIN.pin
88+ #define LED3_ON PORTB |= LED3_PIN.pin
89+ #define LED3_OFF PORTB &= ~LED3_PIN.pin
90+ #define LED3_TOGGLE PORTB ^= LED3_PIN.pin
9191/** @} */
9292
9393/**
You can’t perform that action at this time.
0 commit comments