File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
ports/raspberrypi/supervisor Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 56
56
#include "RP2350.h" // CMSIS
57
57
#endif
58
58
59
- #ifdef CIRCUITPY_BOOT_BUTTON
59
+ #ifdef CIRCUITPY_BOOT_BUTTON_NO_GPIO
60
60
#include "hardware/gpio.h"
61
61
#include "hardware/sync.h"
62
62
#include "hardware/structs/ioqspi.h"
@@ -584,7 +584,7 @@ void port_boot_info(void) {
584
584
#endif
585
585
}
586
586
587
- #if defined(CIRCUITPY_BOOT_BUTTON )
587
+ #if defined(CIRCUITPY_BOOT_BUTTON_NO_GPIO )
588
588
bool __no_inline_not_in_flash_func (port_boot_button_pressed )(void ) {
589
589
// Sense the state of the boot button. Because this function
590
590
// disables flash, it cannot be safely called once the second
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ MP_WEAK size_t port_heap_get_largest_free_size(void) {
67
67
}
68
68
69
69
MP_WEAK bool port_boot_button_pressed (void ) {
70
- #if defined(CIRCUITPY_BOOT_BUTTON ) && CIRCUITPY_BOOT_BUTTON != 1
70
+ #if defined(CIRCUITPY_BOOT_BUTTON )
71
71
// Init/deinit the boot button every time in case it is used for LEDs.
72
72
digitalio_digitalinout_obj_t boot_button ;
73
73
common_hal_digitalio_digitalinout_construct (& boot_button , CIRCUITPY_BOOT_BUTTON );
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ void print_safe_mode_message(safe_mode_t reason) {
129
129
case SAFE_MODE_USER :
130
130
#if defined(BOARD_USER_SAFE_MODE_ACTION )
131
131
message = BOARD_USER_SAFE_MODE_ACTION ;
132
- #elif defined(CIRCUITPY_BOOT_BUTTON )
132
+ #elif defined(CIRCUITPY_BOOT_BUTTON ) || defined( CIRCUITPY_BOOT_BUTTON_NO_GPIO )
133
133
message = MP_ERROR_TEXT ("You pressed the BOOT button at start up" );
134
134
#else
135
135
message = MP_ERROR_TEXT ("You pressed the reset button during boot." );
You can’t perform that action at this time.
0 commit comments