Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nikolairuhe/svdswiftmmio
https://github.com/nikolairuhe/svdswiftmmio
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nikolairuhe/svdswiftmmio
- Owner: NikolaiRuhe
- Created: 2024-01-18T10:08:17.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-22T08:02:08.000Z (12 months ago)
- Last Synced: 2024-01-22T09:47:54.618Z (12 months ago)
- Language: Swift
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SVDSwiftMMIO
The SVDSwiftMMIO tool reads ["System View Description"](https://www.keil.com/pack/doc/CMSIS/SVD/html/index.html) (SVD) files and emits
Swift source code from the contained peripheral descriptions.The emitted code (a "Peripheral Access Package") provides access to the MCU's
memory mapped registers. It is based on [Swift MMIO](https://github.com/apple/swift-mmio).### Usage
I'm currently using the tool to generate source code for the RP2040:
> SVDSwiftMMIO $(PICO_SDK_PATH)/src/rp2040/hardware_regs/rp2040.svd ~/Desktop/RP2040MMIO
This will generate a folder "RP2040MMIO" on your Desktop containing a swift
implementation file for each of the RP2040's peripherals.