Browse Source

Add additional changes needed to use ARM ADC

mcuconf.h and halconf.h were not mentioned in adc_driver.md; STM32_ADC_USE_ADC1 used for compatibility.
pull/14386/head
Kyle Chesney 2 years ago
committed by GitHub
parent
commit
3220826235
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      docs/adc_driver.md

+ 14
- 0
docs/adc_driver.md View File

@ -18,6 +18,20 @@ Then place this include at the top of your code:
#include "analog.h"
```
### ARM Usage
If using an ARM device, you will _also_ need to add the following to `mcuconf.h`:
```c
#undef STM32_ADC_USE_ADC1
#define STM32_ADC_USE_ADC1 TRUE
```
Add the following to `halconf.h`:
```c
#define HAL_USE_ADC TRUE
```
## Channels
### AVR


Loading…
Cancel
Save