This commit is contained in:
Mario Hüttel 2021-05-09 11:14:14 +02:00
parent 4f33816f2b
commit b9a01bcad9
2 changed files with 11 additions and 1 deletions

8
firmware/.gitignore vendored
View File

@ -1,3 +1,11 @@
*.elf
memmap.map
obj/
*.creator
*.user
*.user*
*.cflags
*.cxxflags
*.files
*.includes
*.config

View File

@ -54,6 +54,8 @@ int32_t temperature_adc_get_temp(void)
temp = ((temp_lf_s23_8 / 16) * vdd_lf_s23_8 / FLOAT_TO_S23_8(3.3)) * 16;
temp = (get_temp_sensor_cal() << 10) - temp;
temp = (temp * 10 / slope) + 300;
return temp;
}
static uint32_t get_vrefint_cal(void)
@ -99,4 +101,4 @@ void DMA_CH1_IRQHandler(void)
if (isr & DMA_ISR_TCIF1) {
process_adc_samples();
}
}
}