30 lines
676 B
C
30 lines
676 B
C
//
|
|
// Created by cfif on 16.05.23.
|
|
//
|
|
|
|
#ifndef GONEC_FULL_MODEM_TIMER_H
|
|
#define GONEC_FULL_MODEM_TIMER_H
|
|
#include "ModemMain.h"
|
|
|
|
typedef struct {
|
|
tModemMain *modemMain;
|
|
tSerialPortIO *io;
|
|
tFileLogger *flog;
|
|
tLoggerInterface *logger;
|
|
tGpios *gpios;
|
|
|
|
struct {
|
|
osThreadId_t id;
|
|
uint32_t stack[2048];
|
|
StaticTask_t controlBlock;
|
|
osThreadAttr_t attr;
|
|
} thread;
|
|
} tModemTimer;
|
|
|
|
extern volatile uint32_t timeModemStuckGetMs;
|
|
|
|
void ModemTimer_Init(tModemTimer *env, tModemMain *modemMain, tSerialPortIO *io, tFileLogger *flog, tGpios *gpios);
|
|
void ModemTimer_StartThread(tModemTimer *env);
|
|
|
|
#endif //GONEC_FULL_MODEM_TIMER_H
|