https://github.com/oldrev/os-kernel-dev-demo
A simple demo to implements a Linux or Zephyr-OS like device driver management architecture.
https://github.com/oldrev/os-kernel-dev-demo
Last synced: over 1 year ago
JSON representation
A simple demo to implements a Linux or Zephyr-OS like device driver management architecture.
- Host: GitHub
- URL: https://github.com/oldrev/os-kernel-dev-demo
- Owner: oldrev
- Created: 2020-10-26T00:30:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-26T00:54:27.000Z (over 5 years ago)
- Last Synced: 2025-01-22T10:47:21.373Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# os-kernel-dev-demo
A simple demo to implements a Linux or Zephyr-OS like device driver management architecture.
## Getting Started
```bash
$ gcc -T default.lds main.c init.c -o demo
$ ./demo
```
To test it in your own STM32 project, **do not** use the `default.lds` file that included in this repository, instead you may add the following to your STM32 linker script (`*.ld/*.lds`):
```lds
._init :
{
PROVIDE_HIDDEN (__init_begin = .);
KEEP (*(SORT(._init.*)))
KEEP (*(._init*))
PROVIDE_HIDDEN (__init_end = .);
} >FLASH
.devices :
{
PROVIDE_HIDDEN (__device_begin = .);
KEEP (*(SORT(.device_.*)))
KEEP (*(.device_*))
PROVIDE_HIDDEN (__device_end = .);
} >FLASH
```