refactor: add aliases

This commit is contained in:
cscherr 2025-04-24 13:14:55 +02:00
parent af4fed51ae
commit 3c3066afe2
Signed by: cscherrNT
GPG key ID: 8E2B45BC51A27EA7
3 changed files with 9 additions and 6 deletions

View file

@ -3,3 +3,6 @@ target = "thumbv6m-none-eabi"
[target.thumbv6m-none-eabi] [target.thumbv6m-none-eabi]
runner = 'probe-rs run --chip STM32L053R8' runner = 'probe-rs run --chip STM32L053R8'
[alias]
cflash = "flash --chip STM32L053R8"

View file

@ -5,10 +5,10 @@ edition = "2024"
[dependencies] [dependencies]
cortex-m = "0.7.7" hal = { package = "stm32l0xx-hal", version = "0.10.0", features = [
"mcu-STM32L053R8Hx", # mcu-STM32L053R8Hx or mcu-STM32L053R8Tx not sure
"rt",
] }
cortex-m-rt = "0.7.5" cortex-m-rt = "0.7.5"
panic-halt = "1.0.0" panic-halt = "1.0.0"
stm32l0xx-hal = { version = "0.10.0", features = [ cortex-m = "0.7.7"
"mcu-STM32L053R8Hx",
"rt",
] } # mcu-STM32L053R8Hx or mcu-STM32L053R8Tx not sure

View file

@ -4,7 +4,7 @@
extern crate panic_halt; extern crate panic_halt;
use cortex_m_rt::entry; use cortex_m_rt::entry;
use stm32l0xx_hal::{pac, prelude::*, rcc::Config}; use hal::{pac, prelude::*, rcc::Config};
#[entry] #[entry]
fn main() -> ! { fn main() -> ! {