File tree 3 files changed +11
-6
lines changed
3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ static void check_start_application(void)
138
138
return ;
139
139
}
140
140
141
+ #if defined(BOOT_LOAD_PIN )
141
142
volatile PortGroup * boot_port = (volatile PortGroup * )(& (PORT -> Group [BOOT_LOAD_PIN / 32 ]));
142
143
volatile bool boot_en ;
143
144
@@ -153,6 +154,7 @@ static void check_start_application(void)
153
154
/* Stay in bootloader */
154
155
return ;
155
156
}
157
+ #endif
156
158
157
159
led_port -> OUTSET .reg = (1 <<30 );
158
160
Original file line number Diff line number Diff line change 29
29
30
30
#pragma once
31
31
32
- #define CPU_FREQUENCY 8000000
33
-
34
- #define APP_START_ADDRESS 0x00002000
35
-
36
32
/*
37
33
* If BOOT_DOUBLE_TAP_ADDRESS is defined the bootloader is started by
38
34
* quickly tapping two times on the reset button.
42
38
#define BOOT_DOUBLE_TAP_ADDRESS 0x20007FFC
43
39
#define BOOT_DOUBLE_TAP_DATA (*((volatile uint32_t *) BOOT_DOUBLE_TAP_ADDRESS))
44
40
45
- #define BOOT_LOAD_PIN PIN_PA21 //Pin 7
46
- //#define BOOT_LOAD_PIN PIN_PA15 //Pin 5
41
+ /*
42
+ * If BOOT_LOAD_PIN is defined the bootloader is started if the selected
43
+ * pin is tied LOW.
44
+ */
45
+ //#define BOOT_LOAD_PIN PIN_PA21 // Pin 7
46
+ //#define BOOT_LOAD_PIN PIN_PA15 // Pin 5
47
47
#define BOOT_PIN_MASK (1U << (BOOT_LOAD_PIN & 0x1f))
48
+
49
+ #define CPU_FREQUENCY 8000000
50
+ #define APP_START_ADDRESS 0x00002000
48
51
#define FLASH_WAIT_STATES 1
49
52
50
53
#define BOOT_USART_MODULE SERCOM0
You can’t perform that action at this time.
0 commit comments