Merge pull request #6878 from dhalbert/weak-board-defs

Use MP_WEAK for default board.c routines
This commit is contained in:
Dan Halbert 2022-09-08 10:47:08 -04:00 committed by GitHub
commit 58b00467c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
333 changed files with 433 additions and 3768 deletions

View File

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

View File

@ -27,18 +27,9 @@
#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) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
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 "common-hal/microcontroller/Pin.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 board_deinit(void) {
}
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

View File

@ -29,16 +29,8 @@
#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) {
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) {
return false;
}
void reset_board(void) {
}
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 "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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 "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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 "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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 "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

View File

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

View File

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

View File

@ -39,12 +39,4 @@ void board_init(void) {
// port_pin_set_output_level(MICROPY_HW_LED_RX, true);
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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/shared/board.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
board_reset_user_neopixels(&pin_PA05, 10);
}
void board_deinit(void) {
}
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

View File

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

View File

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

View File

@ -26,18 +26,5 @@
*/
#include "supervisor/board.h"
#include "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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 "supervisor/shared/board.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
// Check the status of the two buttons on CircuitPlayground Express. If both are
// pressed, then boot into user safe mode.
bool board_requests_safe_mode(void) {
@ -55,5 +52,4 @@ void reset_board(void) {
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 "supervisor/shared/board.h"
void board_init(void) {
}
// Check the status of the two buttons on CircuitPlayground Express. If both are
// pressed, then boot into user safe mode.
bool board_requests_safe_mode(void) {
@ -55,5 +52,4 @@ void reset_board(void) {
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 "supervisor/shared/board.h"
void board_init(void) {
}
// Check the status of the two buttons on CircuitPlayground Express. If both are
// pressed, then boot into user safe mode.
bool board_requests_safe_mode(void) {
@ -55,5 +52,4 @@ void reset_board(void) {
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 "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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 "common-hal/microcontroller/Pin.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 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 "common-hal/microcontroller/Pin.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 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 "common-hal/microcontroller/Pin.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 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 "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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 "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

View File

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

View File

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

View File

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

View File

@ -94,12 +94,4 @@ void board_init(void) {
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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 "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

View File

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

View File

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

View File

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

View File

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

View File

@ -95,12 +95,4 @@ void board_init(void) {
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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 "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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 "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

View File

@ -29,16 +29,8 @@
#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) {
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

View File

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

View File

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

View File

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

View File

@ -115,13 +115,8 @@ void board_init(void) {
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
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);
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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);
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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);
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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);
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

View File

@ -117,13 +117,8 @@ void board_init(void) {
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
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
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

View File

@ -121,12 +121,4 @@ void board_init(void) {
500); // backlight_pwm_frequency
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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 "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

View File

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

View File

@ -133,13 +133,6 @@ void board_init(void) {
reset_pin_number(pin_PA18.number);
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
common_hal_displayio_release_displays();
common_hal_digitalio_digitalinout_deinit(&CTR_5V);
@ -150,3 +143,5 @@ void board_deinit(void) {
// Pin state is kept during BACKUP sleep.
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 "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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 "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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 "mpconfigboard.h"
#include "hal/include/hal_gpio.h"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
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"
void board_init(void) {
}
bool board_requests_safe_mode(void) {
return false;
}
void reset_board(void) {
}
void board_deinit(void) {
}
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

View File

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

View File

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

View File

@ -30,19 +30,6 @@
#include "hal/include/hal_gpio.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) {
// Do not reset the external flash write-protect and hold pins high
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_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