1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-13 19:40:20 +03:00

Bsongis/adc rtc temperature (#6537)

RTC voltage + CPU temperature + RTC voltage alarm (thanks @schwabe)
This commit is contained in:
Bertrand Songis 2019-07-03 07:58:32 +02:00 committed by GitHub
parent 6ba4b84a45
commit 3a0960c1e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 568 additions and 447 deletions

View file

@ -553,6 +553,14 @@ uint16_t anaIn(uint8_t chan)
#else
else if (chan == TX_VOLTAGE)
return 1500;
#endif
#if defined(PCBTARANIS)
else if (chan == TX_INTREF)
return 826; // 3V VDD
else if (chan == TX_TEMPERATURE)
return 520;
else if (chan == TX_RTC_VOLTAGE)
return 800; // 2.34V
#endif
else
return 0;