File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
boards/adafruit_feather_rp2040_usb_host Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2
2
#define MICROPY_HW_MCU_NAME "rp2040"
3
3
4
4
#define MICROPY_HW_NEOPIXEL (&pin_GPIO21)
5
+ #define CIRCUITPY_STATUS_LED_POWER (&pin_GPIO20)
5
6
6
7
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO3)
7
8
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO2)
Original file line number Diff line number Diff line change @@ -247,14 +247,15 @@ uint32_t *port_heap_get_top(void) {
247
247
return port_stack_get_top ();
248
248
}
249
249
250
+ uint32_t __uninitialized_ram (saved_word );
250
251
void port_set_saved_word (uint32_t value ) {
251
- // Store in a watchdog scratch register instead of RAM. 4-7 are used by the
252
- // sdk. 0 is used by alarm. 1-3 are free .
253
- watchdog_hw -> scratch [ 1 ] = value ;
252
+ // Store in RAM because the watchdog scratch registers don't survive
253
+ // resetting by pulling the RUN pin low .
254
+ saved_word = value ;
254
255
}
255
256
256
257
uint32_t port_get_saved_word (void ) {
257
- return watchdog_hw -> scratch [ 1 ] ;
258
+ return saved_word ;
258
259
}
259
260
260
261
static volatile bool ticks_enabled ;
You can’t perform that action at this time.
0 commit comments