-
First I read an article @fpistm gave me: /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //HAL库调用 // 串口调用 //HAL模块声明 //ADC转换完成标志 // 定义ADC通道和DMA缓冲区 void setup() { // 初始化HAL库 // 启动ADC和DMA的时钟使能 // 配置ADC // 配置DMA //ADC和DMA链接 // 检查DMA中断 // 开始DMA传输 //分布调数助手 void loop() {
} Then this program can be compiled, but I passed the breakpoint test, found that he will be stuck in “HAL_ADC_Start_DMA(&hadc1, (uint32_t)adc_buffer, ADC_BUFFER_LENGTH);*” here, please see what the problem, thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Add: |
Beta Was this translation helpful? Give feedback.
Add:
extern "C"