Skip to content

Instantly share code, notes, and snippets.

@jamesmunns
Created January 13, 2019 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesmunns/a699b441a57b48e419b2e900ff60149f to your computer and use it in GitHub Desktop.
Save jamesmunns/a699b441a57b48e419b2e900ff60149f to your computer and use it in GitHub Desktop.
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