https://github.com/toddtreece/tomu-llvm
A simple LED toggle example for Tomu using Clang instead of the GNU Arm Embedded Toolchain.
https://github.com/toddtreece/tomu-llvm
Last synced: 9 months ago
JSON representation
A simple LED toggle example for Tomu using Clang instead of the GNU Arm Embedded Toolchain.
- Host: GitHub
- URL: https://github.com/toddtreece/tomu-llvm
- Owner: toddtreece
- License: lgpl-3.0
- Created: 2019-02-04T01:29:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-17T13:17:12.000Z (over 7 years ago)
- Last Synced: 2025-04-03T10:26:02.021Z (about 1 year ago)
- Language: C
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tomu Clang/LLVM Hello World
This is a simple LED toggle example for [Tomu][tomu] using Clang
instead of the GNU Arm Embedded Toolchain. This example does not
use any external libraries, but it does borrow some macros from
[libopencm3][cm3].
## Setup
macOS:
```
$ brew install --with-toolchain llvm
$ brew install dfu-util
$ echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.bash_profile
```
## Usage
Build:
```
$ make
```
Clean:
```
$ make clean
```
Build & Flash:
```
$ make flash
```
## License
This example code is released under the terms of the GNU Lesser General
Public License (LGPL), version 3 or later.
See [LICENSE][license] for details.
[tomu]: https://tomu.im/
[cm3]: https://github.com/libopencm3/libopencm3
[license]: LICENSE