-
-
Save jamesmunns/a699b441a57b48e419b2e900ff60149f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
james@archx1c6g ➜ testnrf git:(master) ✗ cat src/main.rs | |
#![no_std] | |
#![no_main] | |
use panic_halt; | |
use nrf52840_hal; | |
use cortex_m_rt::entry; | |
#[entry] | |
fn main() -> ! { loop { } } | |
james@archx1c6g ➜ testnrf git:(master) ✗ cat Cargo.toml | |
[package] | |
name = "testnrf" | |
version = "0.1.0" | |
authors = ["James Munns <james.munns@ferrous-systems.com>"] | |
edition = "2018" | |
[dependencies] | |
panic-halt = "*" | |
cortex-m-rt = "0.6.5" | |
[dependencies.nrf52840-hal] | |
version = "0.6" | |
james@archx1c6g ➜ testnrf git:(master) ✗ | |
james@archx1c6g ➜ testnrf git:(master) ✗ cargo build --target thumbv7em-none-eabihf | |
Finished dev [unoptimized + debuginfo] target(s) in 0.02s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment