// // Created by cfif on 14.04.23. // #ifndef GONEC_GSM_US_H #define GONEC_GSM_US_H #include "Gpios.h" #include "file_logger.h" #include "ModemMain.h" typedef struct { bool pwrStatus; // bool prevPwrStatus; tGpios *gpios; tFs *fs; tRtcIO *rtcIo; tDeviceStorageIni *storage; tModemMain *ModemMain; // uint32_t startStuckGetMs; // uint32_t timeStuckGetMs; tLoggerInterface *logger; struct { osThreadId_t id; uint32_t stack[2048 * 2]; StaticTask_t controlBlock; osThreadAttr_t attr; } thread; } tUs; void Us_Init(tUs *env, tGpios *gpios, tFs *fs, tRtcIO *rtcIo, tDeviceStorageIni *storage, tModemMain *ModemMain); void Us_StartThread(tUs *env); #endif //GONEC_GSM_US_H