#define ADC_CONVERTED_DATA_BUFFER_SIZE ((uint32_t)220)
ALIGN_32BYTES(uint16_t buf_adc1_value[ADC_CONVERTED_DATA_BUFFER_SIZE]);
__IO uint32_t adc1_conversion_completed = 0;
void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc)
{
/* Invalidate Data Cache to get the updated content of the SRAM on the second half of the ADC converted data buffer: 32 bytes */
if(hadc->Instance == ADC1)
{
SCB_InvalidateDCache_by_Addr((uint32_t *) &buf_adc1_value[ADC_CONVERTED_DATA_BUFFER_SIZE/2], ADC_CONVERTED_DATA_BUFFER_SIZE);
// 转换完成标志置位
adc1_conversion_completed = 1;
}
}