An operating system based on 51 microcontroller
Development environment:
The operating system is developed based on the 51 microcontroller, but it is not limited to this, you can transplant it to other microcontrollers, such as the STM32. Strictly speaking, it is not an operating system, it can only be considered a micro-core, but although it is small and has all the internal organs, it has basically all the time slice rotation and scheduling, preemptive and cooperative tasks, and other things that need it can be expanded by themselves. I have put the library function of the 51 microcontroller in the "library" folder. If you are not used to register development, you can use library functions instead, or use the library functions there to add the functions you want. OK, understand the code yourself.
建议代码阅读顺序:config.h SCH51.h SCH51.C main.c T0_init.h T0_init.c TASK.h task.c