ridhaOs/RidhaOs/Inc/ridhaOs.h
2024-12-05 15:25:54 +01:00

26 lines
538 B
C

#ifndef __R_KERNEL_H__
#define __R_KERNEL_H__
#include "RIDHAOS_CONF.h"
#include "ridhaOsScheduler.h"
/* This Struct used to restore next thread and save the running thread */
typedef struct tControlBlock
{
int32_t * stackPt;
struct tControlBlock * nextPt;
}tControlBlock_t;
/* Define typdef of static task to execute in the future */
#if (USE_STATIC_THREAD)
typedef void(*StaticTask)(void);
#endif
uint8_t ridhaOsAddThreads(StaticTask fn0, StaticTask fn1, StaticTask fn2);
void ridhaOsStart(void);
#endif /* __R_KERNEL_H__ */