https://github.com/recursiveerror/zig-multitask
a simple example of a multitasking system for ARM Cortex-M3 made in Zig for SMT32F103
https://github.com/recursiveerror/zig-multitask
Last synced: 3 months ago
JSON representation
a simple example of a multitasking system for ARM Cortex-M3 made in Zig for SMT32F103
- Host: GitHub
- URL: https://github.com/recursiveerror/zig-multitask
- Owner: RecursiveError
- Created: 2025-01-27T22:53:14.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-30T20:09:27.000Z (5 months ago)
- Last Synced: 2025-02-05T11:51:19.085Z (5 months ago)
- Language: Zig
- Size: 86.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
a simple example of a multitasking system for ARM Cortex-M3 made in Zig for SMT32F103
Zig: v0.14.0
This example contains:
- context switching between tasks using PendSV
- a basic syscall with SVCall
multitask functions:
- `create_task`: creates a task and adds it to the task pool
- `yield`: switch to next task
- `task_sleep`: suspends the current task for a period of time
- `exit`: removes the current task from the task pool
- `suspend_task`: suspends a current task until it is resumed by another task
- `resume_task`: resume a suspended task