feat: compile bootloader examples for nRF91
* Add nRF91 as target in CI builds * Add example linker scripts for nrf91 * Make less nRF52 assumptions example config * Add llvm-tools-preview required for cargo objcopy example
This commit is contained in:
@ -16,11 +16,17 @@ static APP_B: &[u8] = include_bytes!("../../b.bin");
|
||||
#[embassy_executor::main]
|
||||
async fn main(_spawner: Spawner) {
|
||||
let p = embassy_nrf::init(Default::default());
|
||||
|
||||
let mut button = Input::new(p.P0_11, Pull::Up);
|
||||
let mut led = Output::new(p.P0_13, Level::Low, OutputDrive::Standard);
|
||||
|
||||
//let mut led = Output::new(p.P1_10, Level::Low, OutputDrive::Standard);
|
||||
//let mut button = Input::new(p.P1_02, Pull::Up);
|
||||
|
||||
// nRF91 DK
|
||||
// let mut led = Output::new(p.P0_02, Level::Low, OutputDrive::Standard);
|
||||
// let mut button = Input::new(p.P0_06, Pull::Up);
|
||||
|
||||
// The following code block illustrates how to obtain a watchdog that is configured
|
||||
// as per the existing watchdog. Ordinarily, we'd use the handle returned to "pet" the
|
||||
// watchdog periodically. If we don't, and we're not going to for this example, then
|
||||
|
@ -12,7 +12,10 @@ use panic_reset as _;
|
||||
async fn main(_spawner: Spawner) {
|
||||
let p = embassy_nrf::init(Default::default());
|
||||
let mut led = Output::new(p.P0_13, Level::Low, OutputDrive::Standard);
|
||||
//let mut led = Output::new(p.P1_10, Level::Low, OutputDrive::Standard);
|
||||
// let mut led = Output::new(p.P1_10, Level::Low, OutputDrive::Standard);
|
||||
|
||||
// nRF91 DK
|
||||
// let mut led = Output::new(p.P0_02, Level::Low, OutputDrive::Standard);
|
||||
|
||||
loop {
|
||||
led.set_high();
|
||||
|
Reference in New Issue
Block a user