Fix for issue #3383 - SAMD51 microcontroller.cpu.voltage

This commit is contained in:
root 2021-06-05 16:17:14 -05:00
parent d79d68705b
commit b2dea8ae0d

View File

@ -292,6 +292,7 @@ float common_hal_mcu_processor_get_voltage(void) {
#endif
#ifdef SAM_D5X_E5X
hri_supc_clear_VREF_ONDEMAND_bit(SUPC);
hri_supc_set_VREF_SEL_bf(SUPC, SUPC_VREF_SEL_1V0_Val);
hri_supc_set_VREF_VREFOE_bit(SUPC);