kopia lustrzana https://github.com/OpenRTX/OpenRTX
Module17: set threshold for detection of hardware rev 0.1e to 3V
rodzic
933d291154
commit
6d58230c8c
|
@ -82,10 +82,10 @@ void platform_init()
|
|||
/*
|
||||
* Hardware version is set using a voltage divider on PA3.
|
||||
* - 0V: rev. 0.1d or lower
|
||||
* - 2.6V: rev 0.1e
|
||||
* - 3.3V: rev 0.1e
|
||||
*/
|
||||
uint16_t ver = adc1_getMeasurement(ADC_HWVER_CH);
|
||||
if(ver >= 2500)
|
||||
if(ver >= 3000)
|
||||
hwInfo.hw_version = 1;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue