Skip to content

Commit

Permalink
Adds nrf52 support
Browse files Browse the repository at this point in the history
  • Loading branch information
benbrittain committed Sep 9, 2022
1 parent fb0b872 commit 4cd3f7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/flash/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ fn flashcmd(
let f3 = regex::Regex::new(r"find target/stm32f3").unwrap();
let f4 = regex::Regex::new(r"find target/stm32f4").unwrap();
let g0 = regex::Regex::new(r"find target/stm32g0").unwrap();
let nr = regex::Regex::new(r"find target/nrf52").unwrap();

let mut c: Option<String> = None;

Expand All @@ -305,6 +306,10 @@ fn flashcmd(
c = Some("STM32G030C6Tx".to_string());
break;
}
if nr.is_match(s) {
c = Some("nrf52840_xxAA".to_string());
break;
}
}

if c.is_none() {
Expand Down

0 comments on commit 4cd3f7d

Please sign in to comment.