chore: Clean HAL (1 of many) (#3790)
* chore: clean hal (phase 1 of many) * chore: clean hal : remove KEYS_RCC_AHB1Periph * chore: clean hal : remove AUX(2)_SERIAL_RCC_AHB1Periph * chore: clean hal : remove ADC_RCC
This commit is contained in:
@@ -117,9 +117,6 @@ void delay_self(int count)
|
||||
#define RCC_AHB1PeriphOther (SD_RCC_AHB1Periph |\
|
||||
AUDIO_RCC_AHB1Periph |\
|
||||
MONITOR_RCC_AHB1Periph |\
|
||||
KEYS_RCC_AHB1Periph |\
|
||||
ADC_RCC_AHB1Periph |\
|
||||
AUX_SERIAL_RCC_AHB1Periph |\
|
||||
TELEMETRY_RCC_AHB1Periph |\
|
||||
TRAINER_RCC_AHB1Periph |\
|
||||
AUDIO_RCC_AHB1Periph |\
|
||||
@@ -141,8 +138,7 @@ void delay_self(int count)
|
||||
)
|
||||
#define RCC_APB2PeriphMinimum (LCD_RCC_APB2Periph)
|
||||
|
||||
#define RCC_APB2PeriphOther (ADC_RCC_APB2Periph |\
|
||||
HAPTIC_RCC_APB2Periph |\
|
||||
#define RCC_APB2PeriphOther (HAPTIC_RCC_APB2Periph |\
|
||||
AUDIO_RCC_APB2Periph \
|
||||
)
|
||||
|
||||
|
||||
@@ -97,20 +97,10 @@
|
||||
#define STORAGE_SWITCH_H
|
||||
|
||||
// Index of all switches / trims
|
||||
#define KEYS_RCC_AHB1Periph (RCC_AHB1Periph_GPIOB | RCC_AHB1Periph_GPIOC | RCC_AHB1Periph_GPIOD | RCC_AHB1Periph_GPIOG | RCC_AHB1Periph_GPIOH | RCC_AHB1Periph_GPIOJ)
|
||||
#define KEYS_GPIOB_PINS (GPIO_Pin_15)
|
||||
#define KEYS_GPIOC_PINS (GPIO_Pin_13)
|
||||
#define KEYS_GPIOD_PINS (GPIO_Pin_7)
|
||||
#define KEYS_GPIOG_PINS (GPIO_Pin_2 | GPIO_Pin_10 | GPIO_Pin_11)
|
||||
#define KEYS_GPIOH_PINS (GPIO_Pin_2 | GPIO_Pin_7)
|
||||
#define KEYS_GPIOJ_PINS (GPIO_Pin_0 | GPIO_Pin_12)
|
||||
|
||||
#define KEYS_GPIO_ACTIVE_HIGH
|
||||
#define TRIMS_GPIO_ACTIVE_HIGH
|
||||
|
||||
// ADC
|
||||
#define ADC_RCC_AHB1Periph (RCC_AHB1Periph_DMA2)
|
||||
#define ADC_RCC_APB2Periph 0
|
||||
|
||||
#define ADC_GPIO_PIN_STICK_LH
|
||||
#define ADC_GPIO_PIN_STICK_LV
|
||||
@@ -201,7 +191,6 @@
|
||||
|
||||
// Serial Port (DEBUG)
|
||||
// We will temporarily used the PPM and the HEARTBEAT PINS
|
||||
#define AUX_SERIAL_RCC_AHB1Periph (RCC_AHB1Periph_GPIOC | RCC_AHB1Periph_GPIOE)
|
||||
#define AUX_SERIAL_GPIO GPIOC
|
||||
#define AUX_SERIAL_GPIO_PIN_TX GPIO_Pin_6 // PC.06
|
||||
#define AUX_SERIAL_GPIO_PIN_RX GPIO_Pin_7 // PC.07
|
||||
|
||||
Reference in New Issue
Block a user