@@ -13,7 +13,6 @@ typedef enum {
1313typedef void (* board_init )(void );
1414typedef void (* board_init_bootloader )(void );
1515typedef void (* board_enable_can_transceiver )(uint8_t transceiver , bool enabled );
16- typedef void (* board_set_led )(uint8_t color , bool enabled );
1716typedef void (* board_set_can_mode )(uint8_t mode );
1817typedef bool (* board_check_ignition )(void );
1918typedef uint32_t (* board_read_voltage_mV )(void );
@@ -27,6 +26,8 @@ typedef void (*board_set_amp_enabled)(bool enabled);
2726
2827struct board {
2928 harness_configuration * harness_config ;
29+ GPIO_TypeDef * const led_GPIO [3 ];
30+ const uint8_t led_pin [3 ];
3031 const bool has_spi ;
3132 const bool has_canfd ;
3233 const uint16_t fan_max_rpm ;
@@ -37,7 +38,6 @@ struct board {
3738 board_init init ;
3839 board_init_bootloader init_bootloader ;
3940 board_enable_can_transceiver enable_can_transceiver ;
40- board_set_led set_led ;
4141 board_set_can_mode set_can_mode ;
4242 board_check_ignition check_ignition ;
4343 board_read_voltage_mV read_voltage_mV ;
@@ -64,11 +64,6 @@ struct board {
6464#define HW_TYPE_TRES 9U
6565#define HW_TYPE_CUATRO 10U
6666
67- // LED colors
68- #define LED_RED 0U
69- #define LED_GREEN 1U
70- #define LED_BLUE 2U
71-
7267// USB power modes (from cereal.log.health)
7368#define USB_POWER_NONE 0U
7469#define USB_POWER_CLIENT 1U
0 commit comments