Use MP_WEAK for default board.c routines

This commit is contained in:
Dan Halbert 2022-09-07 23:41:38 -04:00
parent 89a552618c
commit 4cb69a51d5
333 changed files with 433 additions and 3768 deletions

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,19 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "common-hal/microcontroller/Pin.h"
#include "supervisor/shared/board.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -27,18 +27,9 @@
#include "supervisor/board.h" #include "supervisor/board.h"
#include "common-hal/microcontroller/Pin.h" #include "common-hal/microcontroller/Pin.h"
#include "supervisor/shared/board.h" #include "supervisor/shared/board.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) { void reset_board(void) {
board_reset_user_neopixels(&pin_PA15, 2); board_reset_user_neopixels(&pin_PA15, 2);
} }
void board_deinit(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}

View File

@ -25,19 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "common-hal/microcontroller/Pin.h"
#include "supervisor/shared/board.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -29,16 +29,8 @@
#include "supervisor/shared/board.h" #include "supervisor/shared/board.h"
#include "hal/include/hal_gpio.h" #include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) { void reset_board(void) {
board_reset_user_neopixels(&pin_PA04, 2); board_reset_user_neopixels(&pin_PA04, 2);
} }
void board_deinit(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}

View File

@ -50,12 +50,4 @@ void board_init(void) {
} }
} }
bool board_requests_safe_mode(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -39,12 +39,4 @@ void board_init(void) {
// port_pin_set_output_level(MICROPY_HW_LED_RX, true); // port_pin_set_output_level(MICROPY_HW_LED_RX, true);
} }
bool board_requests_safe_mode(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -28,15 +28,4 @@
#include "mpconfigboard.h" #include "mpconfigboard.h"
#include "hal/include/hal_gpio.h" #include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -39,12 +39,4 @@ void board_init(void) {
// port_pin_set_output_level(MICROPY_HW_LED_RX, true); // port_pin_set_output_level(MICROPY_HW_LED_RX, true);
} }
bool board_requests_safe_mode(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "supervisor/shared/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
board_reset_user_neopixels(&pin_PA05, 10);
}
void board_deinit(void) {
}

View File

@ -29,15 +29,4 @@
#include "hal/include/hal_gpio.h" #include "hal/include/hal_gpio.h"
#include "common-hal/microcontroller/Pin.h" #include "common-hal/microcontroller/Pin.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,18 +26,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,18 +26,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -31,9 +31,6 @@
#include "supervisor/shared/board.h" #include "supervisor/shared/board.h"
#include "hal/include/hal_gpio.h" #include "hal/include/hal_gpio.h"
void board_init(void) {
}
// Check the status of the two buttons on CircuitPlayground Express. If both are // Check the status of the two buttons on CircuitPlayground Express. If both are
// pressed, then boot into user safe mode. // pressed, then boot into user safe mode.
bool board_requests_safe_mode(void) { bool board_requests_safe_mode(void) {
@ -55,5 +52,4 @@ void reset_board(void) {
board_reset_user_neopixels(&pin_PB23, 10); board_reset_user_neopixels(&pin_PB23, 10);
} }
void board_deinit(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}

View File

@ -31,9 +31,6 @@
#include "hal/include/hal_gpio.h" #include "hal/include/hal_gpio.h"
#include "supervisor/shared/board.h" #include "supervisor/shared/board.h"
void board_init(void) {
}
// Check the status of the two buttons on CircuitPlayground Express. If both are // Check the status of the two buttons on CircuitPlayground Express. If both are
// pressed, then boot into user safe mode. // pressed, then boot into user safe mode.
bool board_requests_safe_mode(void) { bool board_requests_safe_mode(void) {
@ -55,5 +52,4 @@ void reset_board(void) {
board_reset_user_neopixels(&pin_PB23, 10); board_reset_user_neopixels(&pin_PB23, 10);
} }
void board_deinit(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}

View File

@ -31,9 +31,6 @@
#include "hal/include/hal_gpio.h" #include "hal/include/hal_gpio.h"
#include "supervisor/shared/board.h" #include "supervisor/shared/board.h"
void board_init(void) {
}
// Check the status of the two buttons on CircuitPlayground Express. If both are // Check the status of the two buttons on CircuitPlayground Express. If both are
// pressed, then boot into user safe mode. // pressed, then boot into user safe mode.
bool board_requests_safe_mode(void) { bool board_requests_safe_mode(void) {
@ -55,5 +52,4 @@ void reset_board(void) {
board_reset_user_neopixels(&pin_PB23, 10); board_reset_user_neopixels(&pin_PB23, 10);
} }
void board_deinit(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,19 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "common-hal/microcontroller/Pin.h"
#include "supervisor/shared/board.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,19 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "common-hal/microcontroller/Pin.h"
#include "supervisor/shared/board.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,19 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "common-hal/microcontroller/Pin.h"
#include "supervisor/shared/board.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,17 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,17 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -114,12 +114,4 @@ void board_init(void) {
50000); // backlight pwm frequency 50000); // backlight pwm frequency
} }
bool board_requests_safe_mode(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -94,12 +94,4 @@ void board_init(void) {
50000); // backlight pwm frequency 50000); // backlight pwm frequency
} }
bool board_requests_safe_mode(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,20 +25,6 @@
*/ */
#include <string.h>
#include "supervisor/board.h" #include "supervisor/board.h"
#include "py/mpconfig.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -39,12 +39,4 @@ void board_init(void) {
// port_pin_set_output_level(MICROPY_HW_LED_RX, true); // port_pin_set_output_level(MICROPY_HW_LED_RX, true);
} }
bool board_requests_safe_mode(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -28,15 +28,4 @@
#include "mpconfigboard.h" #include "mpconfigboard.h"
#include "hal/include/hal_gpio.h" #include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -28,15 +28,4 @@
#include "mpconfigboard.h" #include "mpconfigboard.h"
#include "hal/include/hal_gpio.h" #include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -95,12 +95,4 @@ void board_init(void) {
50000); // backlight pwm frequency 50000); // backlight pwm frequency
} }
bool board_requests_safe_mode(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -29,16 +29,8 @@
#include "supervisor/shared/board.h" #include "supervisor/shared/board.h"
#include "hal/include/hal_gpio.h" #include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) { void reset_board(void) {
board_reset_user_neopixels(&pin_PA05, 4); board_reset_user_neopixels(&pin_PA05, 4);
} }
void board_deinit(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -102,12 +102,4 @@ void board_init(void) {
false); // two_byte_sequence_length false); // two_byte_sequence_length
} }
bool board_requests_safe_mode(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -93,12 +93,4 @@ void board_init(void) {
50000); // backlight pwm frequency 50000); // backlight pwm frequency
} }
bool board_requests_safe_mode(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -147,12 +147,4 @@ void board_init(void) {
50000); // backlight pwm frequency 50000); // backlight pwm frequency
} }
bool board_requests_safe_mode(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -115,13 +115,8 @@ void board_init(void) {
50000); // backlight pwm frequency 50000); // backlight pwm frequency
} }
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) { void reset_board(void) {
board_reset_user_neopixels(&pin_PA15, 5); board_reset_user_neopixels(&pin_PA15, 5);
} }
void board_deinit(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}

View File

@ -36,12 +36,4 @@ void board_init(void) {
common_hal_pwmio_pwmout_never_reset(&pwm); common_hal_pwmio_pwmout_never_reset(&pwm);
} }
bool board_requests_safe_mode(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -36,12 +36,4 @@ void board_init(void) {
common_hal_pwmio_pwmout_never_reset(&pwm); common_hal_pwmio_pwmout_never_reset(&pwm);
} }
bool board_requests_safe_mode(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -36,12 +36,4 @@ void board_init(void) {
common_hal_pwmio_pwmout_never_reset(&pwm); common_hal_pwmio_pwmout_never_reset(&pwm);
} }
bool board_requests_safe_mode(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -36,12 +36,4 @@ void board_init(void) {
common_hal_pwmio_pwmout_never_reset(&pwm); common_hal_pwmio_pwmout_never_reset(&pwm);
} }
bool board_requests_safe_mode(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -117,13 +117,8 @@ void board_init(void) {
50000); // backlight pwm frequency 50000); // backlight pwm frequency
} }
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) { void reset_board(void) {
board_reset_user_neopixels(&pin_PA15, 5); board_reset_user_neopixels(&pin_PA15, 5);
} }
void board_deinit(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}

View File

@ -104,12 +104,4 @@ void board_init(void) {
50000); // backlight pwm frequency 50000); // backlight pwm frequency
} }
bool board_requests_safe_mode(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -121,12 +121,4 @@ void board_init(void) {
500); // backlight_pwm_frequency 500); // backlight_pwm_frequency
} }
bool board_requests_safe_mode(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -34,13 +34,6 @@
#include "shared-bindings/digitalio/DigitalInOut.h" #include "shared-bindings/digitalio/DigitalInOut.h"
#include "shared-bindings/neopixel_write/__init__.h" #include "shared-bindings/neopixel_write/__init__.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) { void reset_board(void) {
uint8_t zeroes[96]; uint8_t zeroes[96];
memset(zeroes, 0, 96); memset(zeroes, 0, 96);
@ -51,5 +44,4 @@ void reset_board(void) {
common_hal_digitalio_digitalinout_deinit(&neopixel); common_hal_digitalio_digitalinout_deinit(&neopixel);
} }
void board_deinit(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -133,13 +133,6 @@ void board_init(void) {
reset_pin_number(pin_PA18.number); reset_pin_number(pin_PA18.number);
} }
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) { void board_deinit(void) {
common_hal_displayio_release_displays(); common_hal_displayio_release_displays();
common_hal_digitalio_digitalinout_deinit(&CTR_5V); common_hal_digitalio_digitalinout_deinit(&CTR_5V);
@ -150,3 +143,5 @@ void board_deinit(void) {
// Pin state is kept during BACKUP sleep. // Pin state is kept during BACKUP sleep.
gpio_set_pin_direction(pin_PA18.number, GPIO_DIRECTION_OUT); gpio_set_pin_direction(pin_PA18.number, GPIO_DIRECTION_OUT);
} }
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,17 +25,7 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
#include "mpconfigboard.h" #include "mpconfigboard.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -26,15 +26,4 @@
#include "supervisor/board.h" #include "supervisor/board.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -28,15 +28,4 @@
#include "mpconfigboard.h" #include "mpconfigboard.h"
#include "hal/include/hal_gpio.h" #include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -25,18 +25,5 @@
*/ */
#include "supervisor/board.h" #include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) { // Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}

View File

@ -30,19 +30,6 @@
#include "hal/include/hal_gpio.h" #include "hal/include/hal_gpio.h"
#include "supervisor/shared/external_flash/external_flash.h" #include "supervisor/shared/external_flash/external_flash.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}
void external_flash_setup(void) { void external_flash_setup(void) {
// Do not reset the external flash write-protect and hold pins high // Do not reset the external flash write-protect and hold pins high
never_reset_pin_number(PIN_PB22); never_reset_pin_number(PIN_PB22);
@ -59,3 +46,5 @@ void external_flash_setup(void) {
gpio_set_pin_direction(PIN_PB23, GPIO_DIRECTION_OUT); gpio_set_pin_direction(PIN_PB23, GPIO_DIRECTION_OUT);
gpio_set_pin_level(PIN_PB23, true); gpio_set_pin_level(PIN_PB23, true);
} }
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

Some files were not shown because too many files have changed in this diff Show More