Add STM32WL55 examples to CI (#361)

* Add STM32WL55 examples to CI and fix warnings
This commit is contained in:
Ulf Lilleengen 2021-08-18 09:35:08 +02:00 committed by GitHub
parent 5c5cb1a8ce
commit 919cdfe8c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 2 deletions

View file

@ -88,6 +88,8 @@ jobs:
target: thumbv6m-none-eabi
- package: examples/stm32wb55
target: thumbv7em-none-eabihf
- package: examples/stm32wl55
target: thumbv7em-none-eabihf
- package: examples/stm32f0
target: thumbv6m-none-eabi

View file

@ -0,0 +1,21 @@
[unstable]
build-std = ["core"]
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
# replace your chip as listed in `probe-run --list-chips`
runner = "probe-run --chip STM32WLE5JCIx"
rustflags = [
# LLD (shipped with the Rust toolchain) is used as the default linker
"-C", "link-arg=--nmagic",
"-C", "link-arg=-Tlink.x",
"-C", "link-arg=-Tdefmt.x",
# Code-size optimizations.
"-Z", "trap-unreachable=no",
"-C", "inline-threshold=5",
"-C", "no-vectorize-loops",
]
[build]
target = "thumbv7em-none-eabihf"

View file

@ -9,7 +9,6 @@ mod example_common;
use embassy_stm32::{
dbgmcu::Dbgmcu,
gpio::{Input, Level, Output, Pull, Speed},
rcc::*,
};
use embedded_hal::digital::v2::{InputPin, OutputPin};
use example_common::*;
@ -20,7 +19,7 @@ use cortex_m_rt::entry;
fn main() -> ! {
info!("Hello World!");
let mut p = embassy_stm32::init(Default::default());
let p = embassy_stm32::init(Default::default());
unsafe { Dbgmcu::enable_all() };