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:
3djc
2023-07-14 18:25:59 +10:00
committed by GitHub
parent 1791bbd354
commit b1609eb484
8 changed files with 5 additions and 250 deletions
@@ -21,6 +21,7 @@
#include "hal/serial_port.h"
#include "stm32_serial_driver.h"
#include "stm32_gpio_driver.h"
#include "board.h"
#include "dataconstants.h"
@@ -35,6 +36,7 @@
#if defined(AUX_SERIAL_PWR_GPIO) || defined(AUX2_SERIAL_PWR_GPIO)
static void _aux_pwr(GPIO_TypeDef *GPIOx, uint32_t pin, uint8_t on)
{
stm32_gpio_enable_clock(GPIOx);
LL_GPIO_InitTypeDef pinInit;
LL_GPIO_StructInit(&pinInit);
pinInit.Pin = pin;