1
0
forked from me/IronOS

Updated cold junction temp curve

* Disabled the hack off on temp as we dont need it for MHP30
* faster ADC on MHP30
This commit is contained in:
Ben V. Brown
2021-05-02 15:45:45 +10:00
parent 018b984665
commit 7a5c0ad20f
9 changed files with 191 additions and 33 deletions

View File

@@ -15,12 +15,15 @@
* runs again
*/
void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc) {
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
static uint8_t counter = 0;
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
if (hadc == &hadc1) {
if (pidTaskNotification) {
vTaskNotifyGiveFromISR(pidTaskNotification, &xHigherPriorityTaskWoken);
portYIELD_FROM_ISR(xHigherPriorityTaskWoken);
counter++;
if (counter % 4 == 0) {
if (pidTaskNotification) {
vTaskNotifyGiveFromISR(pidTaskNotification, &xHigherPriorityTaskWoken);
portYIELD_FROM_ISR(xHigherPriorityTaskWoken);
}
}
}
}