Skip to content

Commit 4cb69a5

Browse files
committed
Use MP_WEAK for default board.c routines
1 parent 89a5526 commit 4cb69a5

File tree

333 files changed

+432
-3767
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

333 files changed

+432
-3767
lines changed

ports/atmel-samd/boards/8086_commander/board.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,4 @@
2626

2727
#include "supervisor/board.h"
2828

29-
void board_init(void) {
30-
}
31-
32-
bool board_requests_safe_mode(void) {
33-
return false;
34-
}
35-
36-
void reset_board(void) {
37-
}
38-
39-
void board_deinit(void) {
40-
}
29+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/adafruit_neokey_trinkey_m0/board.c

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,5 @@
2525
*/
2626

2727
#include "supervisor/board.h"
28-
#include "common-hal/microcontroller/Pin.h"
29-
#include "supervisor/shared/board.h"
30-
#include "hal/include/hal_gpio.h"
3128

32-
void board_init(void) {
33-
}
34-
35-
bool board_requests_safe_mode(void) {
36-
return false;
37-
}
38-
39-
void reset_board(void) {
40-
}
41-
42-
void board_deinit(void) {
43-
}
29+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/adafruit_proxlight_trinkey_m0/board.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,9 @@
2727
#include "supervisor/board.h"
2828
#include "common-hal/microcontroller/Pin.h"
2929
#include "supervisor/shared/board.h"
30-
#include "hal/include/hal_gpio.h"
31-
32-
void board_init(void) {
33-
}
34-
35-
bool board_requests_safe_mode(void) {
36-
return false;
37-
}
3830

3931
void reset_board(void) {
4032
board_reset_user_neopixels(&pin_PA15, 2);
4133
}
4234

43-
void board_deinit(void) {
44-
}
35+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/adafruit_rotary_trinkey_m0/board.c

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,5 @@
2525
*/
2626

2727
#include "supervisor/board.h"
28-
#include "common-hal/microcontroller/Pin.h"
29-
#include "supervisor/shared/board.h"
30-
#include "hal/include/hal_gpio.h"
3128

32-
void board_init(void) {
33-
}
34-
35-
bool board_requests_safe_mode(void) {
36-
return false;
37-
}
38-
39-
void reset_board(void) {
40-
}
41-
42-
void board_deinit(void) {
43-
}
29+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/adafruit_slide_trinkey_m0/board.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,8 @@
2929
#include "supervisor/shared/board.h"
3030
#include "hal/include/hal_gpio.h"
3131

32-
void board_init(void) {
33-
}
34-
35-
bool board_requests_safe_mode(void) {
36-
return false;
37-
}
38-
3932
void reset_board(void) {
4033
board_reset_user_neopixels(&pin_PA04, 2);
4134
}
4235

43-
void board_deinit(void) {
44-
}
36+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/aloriumtech_evo_m51/board.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,4 @@ void board_init(void) {
5050
}
5151
}
5252

53-
bool board_requests_safe_mode(void) {
54-
return false;
55-
}
56-
57-
void reset_board(void) {
58-
}
59-
60-
void board_deinit(void) {
61-
}
53+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/arduino_mkr1300/board.c

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,5 @@
2525
*/
2626

2727
#include "supervisor/board.h"
28-
#include "mpconfigboard.h"
29-
#include "hal/include/hal_gpio.h"
3028

31-
void board_init(void) {
32-
}
33-
34-
bool board_requests_safe_mode(void) {
35-
return false;
36-
}
37-
38-
void reset_board(void) {
39-
}
40-
41-
void board_deinit(void) {
42-
}
29+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/arduino_mkrzero/board.c

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,5 @@
2525
*/
2626

2727
#include "supervisor/board.h"
28-
#include "mpconfigboard.h"
29-
#include "hal/include/hal_gpio.h"
3028

31-
void board_init(void) {
32-
}
33-
34-
bool board_requests_safe_mode(void) {
35-
return false;
36-
}
37-
38-
void reset_board(void) {
39-
}
40-
41-
void board_deinit(void) {
42-
}
29+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/arduino_nano_33_iot/board.c

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,5 @@
2525
*/
2626

2727
#include "supervisor/board.h"
28-
#include "mpconfigboard.h"
29-
#include "hal/include/hal_gpio.h"
3028

31-
void board_init(void) {
32-
}
33-
34-
bool board_requests_safe_mode(void) {
35-
return false;
36-
}
37-
38-
void reset_board(void) {
39-
}
40-
41-
void board_deinit(void) {
42-
}
29+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/arduino_zero/board.c

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,5 @@
2525
*/
2626

2727
#include "supervisor/board.h"
28-
#include "mpconfigboard.h"
29-
#include "hal/include/hal_gpio.h"
3028

31-
void board_init(void) {
32-
}
33-
34-
bool board_requests_safe_mode(void) {
35-
return false;
36-
}
37-
38-
void reset_board(void) {
39-
}
40-
41-
void board_deinit(void) {
42-
}
29+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/bast_pro_mini_m0/board.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,4 @@
2626

2727
#include "supervisor/board.h"
2828

29-
void board_init(void) {
30-
}
31-
32-
bool board_requests_safe_mode(void) {
33-
return false;
34-
}
35-
36-
void reset_board(void) {
37-
}
38-
39-
void board_deinit(void) {
40-
}
29+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/bdmicro_vina_d21/board.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,4 @@ void board_init(void) {
3939
// port_pin_set_output_level(MICROPY_HW_LED_RX, true);
4040
}
4141

42-
bool board_requests_safe_mode(void) {
43-
return false;
44-
}
45-
46-
void reset_board(void) {
47-
}
48-
49-
void board_deinit(void) {
50-
}
42+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/bdmicro_vina_d51/board.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,4 @@
2828
#include "mpconfigboard.h"
2929
#include "hal/include/hal_gpio.h"
3030

31-
void board_init(void) {
32-
}
33-
34-
bool board_requests_safe_mode(void) {
35-
return false;
36-
}
37-
38-
void reset_board(void) {
39-
}
40-
41-
void board_deinit(void) {
42-
}
31+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/bdmicro_vina_d51_pcb7/board.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,4 @@ void board_init(void) {
3939
// port_pin_set_output_level(MICROPY_HW_LED_RX, true);
4040
}
4141

42-
bool board_requests_safe_mode(void) {
43-
return false;
44-
}
45-
46-
void reset_board(void) {
47-
}
48-
49-
void board_deinit(void) {
50-
}
42+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/blm_badge/board.c

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,5 @@
2525
*/
2626

2727
#include "supervisor/board.h"
28-
#include "supervisor/shared/board.h"
2928

30-
void board_init(void) {
31-
}
32-
33-
bool board_requests_safe_mode(void) {
34-
return false;
35-
}
36-
37-
void reset_board(void) {
38-
board_reset_user_neopixels(&pin_PA05, 10);
39-
}
40-
41-
void board_deinit(void) {
42-
}
29+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/capablerobot_usbhub/board.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,4 @@
2929
#include "hal/include/hal_gpio.h"
3030
#include "common-hal/microcontroller/Pin.h"
3131

32-
void board_init(void) {
33-
}
34-
35-
bool board_requests_safe_mode(void) {
36-
return false;
37-
}
38-
39-
void reset_board(void) {
40-
}
41-
42-
void board_deinit(void) {
43-
}
32+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/catwan_usbstick/board.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,4 @@
2626

2727
#include "supervisor/board.h"
2828

29-
void board_init(void) {
30-
}
31-
32-
bool board_requests_safe_mode(void) {
33-
return false;
34-
}
35-
36-
void reset_board(void) {
37-
}
38-
39-
void board_deinit(void) {
40-
}
29+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/circuitbrains_basic_m0/board.c

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,5 @@
2626
*/
2727

2828
#include "supervisor/board.h"
29-
#include "mpconfigboard.h"
30-
#include "hal/include/hal_gpio.h"
3129

32-
void board_init(void) {
33-
}
34-
35-
bool board_requests_safe_mode(void) {
36-
return false;
37-
}
38-
39-
void reset_board(void) {
40-
}
41-
42-
void board_deinit(void) {
43-
}
30+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/circuitbrains_deluxe_m4/board.c

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,5 @@
2626
*/
2727

2828
#include "supervisor/board.h"
29-
#include "mpconfigboard.h"
30-
#include "hal/include/hal_gpio.h"
3129

32-
void board_init(void) {
33-
}
34-
35-
bool board_requests_safe_mode(void) {
36-
return false;
37-
}
38-
39-
void reset_board(void) {
40-
}
41-
42-
void board_deinit(void) {
43-
}
30+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/circuitplayground_express/board.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
#include "supervisor/shared/board.h"
3232
#include "hal/include/hal_gpio.h"
3333

34-
void board_init(void) {
35-
}
36-
3734
// Check the status of the two buttons on CircuitPlayground Express. If both are
3835
// pressed, then boot into user safe mode.
3936
bool board_requests_safe_mode(void) {
@@ -55,5 +52,4 @@ void reset_board(void) {
5552
board_reset_user_neopixels(&pin_PB23, 10);
5653
}
5754

58-
void board_deinit(void) {
59-
}
55+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/circuitplayground_express_crickit/board.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
#include "hal/include/hal_gpio.h"
3232
#include "supervisor/shared/board.h"
3333

34-
void board_init(void) {
35-
}
36-
3734
// Check the status of the two buttons on CircuitPlayground Express. If both are
3835
// pressed, then boot into user safe mode.
3936
bool board_requests_safe_mode(void) {
@@ -55,5 +52,4 @@ void reset_board(void) {
5552
board_reset_user_neopixels(&pin_PB23, 10);
5653
}
5754

58-
void board_deinit(void) {
59-
}
55+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/atmel-samd/boards/circuitplayground_express_displayio/board.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
#include "hal/include/hal_gpio.h"
3232
#include "supervisor/shared/board.h"
3333

34-
void board_init(void) {
35-
}
36-
3734
// Check the status of the two buttons on CircuitPlayground Express. If both are
3835
// pressed, then boot into user safe mode.
3936
bool board_requests_safe_mode(void) {
@@ -55,5 +52,4 @@ void reset_board(void) {
5552
board_reset_user_neopixels(&pin_PB23, 10);
5653
}
5754

58-
void board_deinit(void) {
59-
}
55+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

0 commit comments

Comments
 (0)