Skip to content

Commit 32ab02a

Browse files
committed
boards/arduino-mkrzero: fix on-board LED and common jlink conf
1 parent 7633cd4 commit 32ab02a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

boards/arduino-mkrzero/Makefile.include

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
USEMODULE += arduino-mkr-common
22

3+
ifeq ($(PROGRAMMER),jlink)
4+
export MKR_JLINK_DEVICE = atsamd21
5+
endif
6+
37
include $(RIOTBOARD)/arduino-mkr-common/Makefile.include
48

59
# add arduino-mkrzero include path

boards/arduino-mkrzero/include/board.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ extern "C" {
5757
#define LED0_PIN GPIO_PIN(PB, 8)
5858

5959
#define LED_PORT PORT->Group[PB]
60-
#define LED0_MASK (1 << 20)
60+
#define LED0_MASK (1 << 8)
6161

6262
#define LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK)
6363
#define LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK)

0 commit comments

Comments
 (0)