Auto stash before merge of "voltage-reading" and "origin/voltage-reading"

This commit is contained in:
Inamr 2024-03-20 16:09:16 +01:00
parent 980e6b7c5a
commit b8e2305349

View File

@ -39,4 +39,14 @@ uint16_t internal_voltage_read() {
VREF.ADC0REF = VREF_REFSEL_VDD_gc; VREF.ADC0REF = VREF_REFSEL_VDD_gc;
uint16_t diode_voltage_read(void){
/* Gets value for the diode */
uint8_t adcVal = ADC0_read();
return adcVal;
}
uint16_t internal_voltage_read(void) {
/* Gets value for the internal voltage reffreance*/
VREF.ADC0REF = VREF_REFSEL_VDD_gc;
} }