2021-07-03 09:25:35 +08:00
|
|
|
// ******************** Prototypes ********************
|
2022-11-30 14:55:10 +08:00
|
|
|
void print(const char *a){ UNUSED(a); }
|
2021-07-03 09:25:35 +08:00
|
|
|
void puth(uint8_t i){ UNUSED(i); }
|
|
|
|
void puth2(uint8_t i){ UNUSED(i); }
|
2021-09-26 12:46:19 +08:00
|
|
|
void puth4(uint8_t i){ UNUSED(i); }
|
2022-11-10 10:46:20 +08:00
|
|
|
void hexdump(const void *a, int l){ UNUSED(a); UNUSED(l); }
|
2021-07-03 09:25:35 +08:00
|
|
|
typedef struct board board;
|
|
|
|
typedef struct harness_configuration harness_configuration;
|
2021-07-14 05:12:07 +08:00
|
|
|
void pwm_init(TIM_TypeDef *TIM, uint8_t channel);
|
|
|
|
void pwm_set(TIM_TypeDef *TIM, uint8_t channel, uint8_t percentage);
|
2022-11-18 00:59:11 +08:00
|
|
|
// No UART support in bootloader
|
|
|
|
typedef struct uart_ring {} uart_ring;
|
|
|
|
uart_ring uart_ring_som_debug;
|
|
|
|
void uart_init(uart_ring *q, int baud) { UNUSED(q); UNUSED(baud); }
|
2021-07-03 09:25:35 +08:00
|
|
|
|
|
|
|
// ********************* Globals **********************
|
|
|
|
uint8_t hw_type = 0;
|
2024-03-25 03:38:25 +08:00
|
|
|
board *current_board;
|