1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Initial ADC support for AT32 (#12356)

Reads internal and external ADC channels.
Internal Vref and temperature tested, external Vbat tested.
Expect temperature to be inaccurate as the AT chips don't come with
per chip calibration.
External current and the generic 'external' channels haven't been tested.
This commit is contained in:
James 2023-02-14 15:40:00 -05:00 committed by GitHub
parent 3598f3e41a
commit 4019369ec0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 309 additions and 130 deletions

View file

@ -181,8 +181,10 @@ extern const timerHardware_t fullTimerHardware[];
#else
#ifdef USABLE_TIMER_CHANNEL_COUNT
#define TIMER_CHANNEL_COUNT USABLE_TIMER_CHANNEL_COUNT
#define TIMER_HARDWARE timerHardware
#endif
#endif // USE_TIMER_MGMT