Commit 6ef8639
committed
Rework safe mode and have heap overwrite trigger it.
This creates a common safe mode mechanic that ports can share.
As a result, the nRF52 now has safe mode support as well.
The common safe mode adds a 700ms delay at startup where a reset
during that window will cause a reset into safe mode. This window
is designated by a yellow status pixel and flashing the single led
three times.
A couple NeoPixel fixes are included for the nRF52 as well.
Fixes adafruit#1034. Fixes adafruit#990. Fixes adafruit#615.1 parent 7ad2e6a commit 6ef8639
48 files changed
Lines changed: 351 additions & 133 deletions
File tree
- ports
- atmel-samd
- boards
- arduino_mkr1300
- arduino_zero
- circuitplayground_express_crickit
- circuitplayground_express
- feather_m0_adalogger
- feather_m0_basic
- feather_m0_express_crickit
- feather_m0_express
- feather_m0_rfm69
- feather_m0_rfm9x
- feather_m0_supersized
- feather_m4_express
- feather_radiofruit_zigbee
- gemma_m0
- grandcentral_m4_express
- hallowing_m0_express
- itsybitsy_m0_express
- itsybitsy_m4_express
- meowmeow
- metro_m0_express
- metro_m4_express
- mini_sam_m4
- trinket_m0_haxpress
- trinket_m0
- supervisor
- nrf
- boards
- feather_nrf52832
- feather_nrf52840_express
- particle_argon
- particle_boron
- particle_xenon
- pca10040
- pca10056
- pca10059
- common-hal/neopixel_write
- peripherals/nrf
- supervisor
- py
- supervisor
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | 144 | | |
150 | 145 | | |
151 | 146 | | |
| |||
166 | 161 | | |
167 | 162 | | |
168 | 163 | | |
169 | | - | |
| 164 | + | |
170 | 165 | | |
171 | | - | |
| 166 | + | |
172 | 167 | | |
173 | | - | |
| 168 | + | |
174 | 169 | | |
175 | 170 | | |
176 | 171 | | |
| |||
184 | 179 | | |
185 | 180 | | |
186 | 181 | | |
187 | | - | |
| 182 | + | |
188 | 183 | | |
189 | 184 | | |
190 | 185 | | |
| |||
200 | 195 | | |
201 | 196 | | |
202 | 197 | | |
203 | | - | |
| 198 | + | |
204 | 199 | | |
205 | 200 | | |
206 | 201 | | |
| |||
239 | 234 | | |
240 | 235 | | |
241 | 236 | | |
242 | | - | |
| 237 | + | |
243 | 238 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
| 239 | + | |
269 | 240 | | |
270 | 241 | | |
| 242 | + | |
271 | 243 | | |
272 | | - | |
| 244 | + | |
273 | 245 | | |
274 | 246 | | |
275 | 247 | | |
| |||
394 | 366 | | |
395 | 367 | | |
396 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
397 | 374 | | |
398 | 375 | | |
399 | 376 | | |
| |||
427 | 404 | | |
428 | 405 | | |
429 | 406 | | |
430 | | - | |
| 407 | + | |
431 | 408 | | |
432 | 409 | | |
433 | 410 | | |
| |||
455 | 432 | | |
456 | 433 | | |
457 | 434 | | |
458 | | - | |
| 435 | + | |
459 | 436 | | |
460 | 437 | | |
461 | 438 | | |
462 | 439 | | |
463 | | - | |
| 440 | + | |
464 | 441 | | |
465 | 442 | | |
466 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments