文件名从 dualboots_Gai_youhua_anbang_tag/keil/customboot/include/drivers/mk_adc.c 修改 |
| | |
| | | { |
| | | // enable ADC |
| | | struct ADC_CFG_T vs_adc_cfg; |
| | | vs_adc_cfg.mode = ADC_MODE_SINGLE; /* Selected single conversion mode */ |
| | | vs_adc_cfg.mode = ADC_MODE_CONTINUE; /* Selected single conversion mode */ |
| | | vs_adc_cfg.clk_sel = ADC_CLK_HIGH; /* Selected 62.4M high speed clock */ |
| | | vs_adc_cfg.vref_sel = ADC_SEL_VREF_INT; /* Using internal reference voltage (1.2V)*/ |
| | | vs_adc_cfg.rate = 1000; /* ADC works at high frequency system clock, the maximum sampling rate is 2M */ |