feat(radio): refactor of switch handling to better support customisable switches (#6095)

Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
Co-authored-by: 3djc <3djc@gh.com>
Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
philmoz
2025-07-28 12:59:22 +10:00
committed by GitHub
co-authored by philmoz 3djc elecpower
parent 28833f42e6
commit 0c8c39b134
155 changed files with 4538 additions and 2306 deletions
-13
View File
@@ -25,16 +25,6 @@
#include "hal/switch_driver.h"
// Input port expander
#define BSP_EXT_KEY1 PCA95XX_PIN_0
#define BSP_EXT_KEY2 PCA95XX_PIN_1
#define BSP_EXT_KEY3 PCA95XX_PIN_2
#define BSP_EXT_KEY4 PCA95XX_PIN_3
#define BSP_EXT_KEY5 PCA95XX_PIN_4
#define BSP_EXT_KEY6 PCA95XX_PIN_5
#define BSP_BACK_KEY1 PCA95XX_PIN_6
#define BSP_BACK_KEY2 PCA95XX_PIN_7
#define BSP_TR1U PCA95XX_PIN_8
#define BSP_TR1D PCA95XX_PIN_9
#define BSP_TR3L PCA95XX_PIN_10
@@ -63,6 +53,3 @@ void bsp_output_set(uint16_t pin);
void bsp_output_clear(uint16_t pin);
uint16_t bsp_input_get();
struct stm32_switch_t;
SwitchHwPos bsp_get_switch_position(const stm32_switch_t *sw, SwitchCategory cat, uint8_t idx);