//This must be the first module to be initialized! void systemInit(void) { if(isInit) return; canStartMutex = xSemaphoreCreateMutex(); xSemaphoreTake(canStartMutex, portMAX_DELAY); configblockInit(); workerInit(); //adcInit(); ledseqInit(); pmInit(); isInit = true; }
//This must be the first module to be initialized! void systemInit(void) { if(isInit) return; canStartMutex = xSemaphoreCreateMutex(); xSemaphoreTake(canStartMutex, portMAX_DELAY); configblockInit(); workerInit(); /* adcInit(); ignore ADC by jannson */ ledseqInit(); /* pmInit(); ignore power management by jannson */ isInit = true; }