Introduction: This blog mainly describes the process of coding my own RTOS and the problems I encountered, comparing my RTOS with examples and then reflecting on it. Our RTOS : After learning about the specific process of RTOS last week, I plan to create my own RTOS. This RTOS program primarily creates a simple on/off control system. It allows users to control LEDs to turn on and off via serial port input commands or button presses, while simultaneously displaying the current status on an LCD. The program divides different functions into multiple RTOS tasks, allowing the system to handle different tasks concurrently. First is the input section. The system has two input sources. The first is serial port input, where the user can input `on`, `off`, or `toggle` in the PuTTY. When Enter is pressed, it's considered a command input complete, and the command is then handed over to the kernel task for processing. The second input is the buttons on the board. The program checks...
Comments
Post a Comment