|
9 | 9 | #include "mpconfigboard.h" |
10 | 10 | #include "max32_port.h" |
11 | 11 |
|
12 | | -// Board-level setup for MAX32690 |
13 | | -mxc_gpio_regs_t *gpio_ports[NUM_GPIO_PORTS] = |
14 | | -{MXC_GPIO0, MXC_GPIO1, MXC_GPIO2, MXC_GPIO3, MXC_GPIO4}; |
15 | | - |
16 | | -// clang-format off |
17 | | -const mxc_gpio_cfg_t pb_pin[] = { |
18 | | - { MXC_GPIO1, MXC_GPIO_PIN_27, MXC_GPIO_FUNC_IN, MXC_GPIO_PAD_NONE, MXC_GPIO_VSSEL_VDDIOH, MXC_GPIO_DRVSTR_0}, |
19 | | -}; |
20 | | -const int num_pbs = (sizeof(pb_pin) / sizeof(mxc_gpio_cfg_t)); |
21 | | - |
22 | | -const mxc_gpio_cfg_t led_pin[] = { |
23 | | - { MXC_GPIO2, MXC_GPIO_PIN_1, MXC_GPIO_FUNC_OUT, MXC_GPIO_PAD_NONE, MXC_GPIO_VSSEL_VDDIO, MXC_GPIO_DRVSTR_0 }, |
24 | | - { MXC_GPIO0, MXC_GPIO_PIN_11, MXC_GPIO_FUNC_OUT, MXC_GPIO_PAD_NONE, MXC_GPIO_VSSEL_VDDIO, MXC_GPIO_DRVSTR_0 }, |
25 | | - { MXC_GPIO0, MXC_GPIO_PIN_12, MXC_GPIO_FUNC_OUT, MXC_GPIO_PAD_NONE, MXC_GPIO_VSSEL_VDDIO, MXC_GPIO_DRVSTR_0 }, |
26 | | -}; |
27 | | -const int num_leds = (sizeof(led_pin) / sizeof(mxc_gpio_cfg_t)); |
28 | | -// clang-format on |
29 | | - |
| 12 | +/***** OPTIONAL BOARD-SPECIFIC FUNCTIONS from supervisor/board.h *****/ |
30 | 13 | // DEFAULT: Using the weak-defined supervisor/shared/board.c functions |
31 | 14 |
|
32 | | -/***** OPTIONAL BOARD-SPECIFIC FUNCTIONS from supervisor/board.h *****/ |
| 15 | +// Initializes board related state once on start up. |
| 16 | +void board_init(void) { |
| 17 | +} |
| 18 | + |
33 | 19 | // Returns true if the user initiates safe mode in a board specific way. |
34 | 20 | // Also add BOARD_USER_SAFE_MODE in mpconfigboard.h to explain the board specific |
35 | 21 | // way. |
36 | 22 | // bool board_requests_safe_mode(void); |
37 | 23 |
|
38 | | -volatile uint32_t system_ticks = 0; |
39 | | - |
40 | | -void SysTick_Handler(void) { |
41 | | - system_ticks++; |
42 | | -} |
43 | | - |
44 | | -// Initializes board related state once on start up. |
45 | | -void board_init(void) { |
46 | | -} |
47 | | - |
48 | 24 | // Reset the state of off MCU components such as neopixels. |
49 | 25 | // void reset_board(void); |
50 | 26 |
|
|
0 commit comments