mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Rollover prevention
This commit is contained in:
@@ -50,6 +50,7 @@ void hardware_init() {
|
||||
gpio_set_mode(OLED_RESET_Pin, GPIO_OUTPUT_MODE);
|
||||
gpio_set_mode(KEY_A_Pin, GPIO_INPUT_PD_MODE);
|
||||
gpio_set_mode(KEY_B_Pin, GPIO_INPUT_PD_MODE);
|
||||
|
||||
gpio_set_mode(TMP36_INPUT_Pin, GPIO_HZ_MODE);
|
||||
gpio_set_mode(TIP_TEMP_Pin, GPIO_HZ_MODE);
|
||||
gpio_set_mode(VIN_Pin, GPIO_HZ_MODE);
|
||||
@@ -163,7 +164,7 @@ void setup_adc(void) {
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
#if 1
|
||||
// this sets the CVSP field (ADC conversion speed)
|
||||
{
|
||||
uint32_t regCfg2;
|
||||
|
||||
Reference in New Issue
Block a user