TeaThermoTimer/src/PontCoopScheduler.h

36 lines
535 B
C
Raw Normal View History

/*
* PontCoopScheduler.h
*
* Created on: 29.08.2016
* Author: wn
*/
#ifndef PONTCOOPSCHEDULER_H_
#define PONTCOOPSCHEDULER_H_
#include <stdint.h>
2016-09-08 22:51:15 +02:00
#define MAX_NUM_OF_TASKS 8
typedef struct {
2016-09-07 13:29:10 +02:00
uint32_t delay;
uint32_t period;
uint8_t run;
void (*exec)(void *handle);
void *handle;
} tTask;
void schInit();
2016-08-31 15:00:25 +02:00
void schAdd(void (*exec)(void *), void *handle, uint32_t delay, uint32_t period);
2016-09-06 15:28:28 +02:00
void schDel(void (*exec)(void *), void *handle);
void schExec();
void schUpdate();
#endif /* PONTCOOPSCHEDULER_H_ */