commit for ADC1 config with three internal channel (Temperature Sensor, Vrefint and Vbat); Working on 32Mhz, single sequencer rank conversion mode with interrupt and overrun data written.

This commit is contained in:
2026-08-31 21:39:30 +08:00
parent dc8b4bdb5f
commit 23eb7b4e27
13 changed files with 12024 additions and 14 deletions
+15
View File
@@ -55,6 +55,7 @@
/* USER CODE END 0 */
/* External variables --------------------------------------------------------*/
extern ADC_HandleTypeDef hadc1;
extern DMA_HandleTypeDef hdma_i2c1_rx;
extern DMA_HandleTypeDef hdma_i2c2_tx;
extern I2C_HandleTypeDef hi2c1;
@@ -180,6 +181,20 @@ void DMA1_Ch4_5_DMAMUX1_OVR_IRQHandler(void)
/* USER CODE END DMA1_Ch4_5_DMAMUX1_OVR_IRQn 1 */
}
/**
* @brief This function handles ADC1 interrupt.
*/
void ADC1_IRQHandler(void)
{
/* USER CODE BEGIN ADC1_IRQn 0 */
/* USER CODE END ADC1_IRQn 0 */
HAL_ADC_IRQHandler(&hadc1);
/* USER CODE BEGIN ADC1_IRQn 1 */
/* USER CODE END ADC1_IRQn 1 */
}
/**
* @brief This function handles TIM17 global interrupt.
*/