mirror of
https://github.com/cccriscv/mini-riscv-os.git
synced 2025-11-16 04:24:33 +00:00
17 lines
246 B
C
17 lines
246 B
C
#ifndef __TASK_H__
|
|
#define __TASK_H__
|
|
|
|
#include "riscv.h"
|
|
#include "sys.h"
|
|
|
|
#define MAX_TASK 10
|
|
#define STACK_SIZE 1024
|
|
|
|
extern int taskTop;
|
|
|
|
extern int task_create(void (*task)(void));
|
|
extern void task_go(int i);
|
|
extern void task_os();
|
|
|
|
#endif
|