refactor: add aliases
This commit is contained in:
parent
af4fed51ae
commit
3c3066afe2
3 changed files with 9 additions and 6 deletions
|
@ -3,3 +3,6 @@ target = "thumbv6m-none-eabi"
|
|||
|
||||
[target.thumbv6m-none-eabi]
|
||||
runner = 'probe-rs run --chip STM32L053R8'
|
||||
|
||||
[alias]
|
||||
cflash = "flash --chip STM32L053R8"
|
||||
|
|
10
Cargo.toml
10
Cargo.toml
|
@ -5,10 +5,10 @@ edition = "2024"
|
|||
|
||||
|
||||
[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"
|
||||
panic-halt = "1.0.0"
|
||||
stm32l0xx-hal = { version = "0.10.0", features = [
|
||||
"mcu-STM32L053R8Hx",
|
||||
"rt",
|
||||
] } # mcu-STM32L053R8Hx or mcu-STM32L053R8Tx not sure
|
||||
cortex-m = "0.7.7"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
extern crate panic_halt;
|
||||
|
||||
use cortex_m_rt::entry;
|
||||
use stm32l0xx_hal::{pac, prelude::*, rcc::Config};
|
||||
use hal::{pac, prelude::*, rcc::Config};
|
||||
|
||||
#[entry]
|
||||
fn main() -> ! {
|
||||
|
|
Loading…
Add table
Reference in a new issue