Add stm32-metapac crate, with codegen in rust
This commit is contained in:
@ -26,7 +26,7 @@ defmt = "0.2.0"
|
||||
defmt-rtt = "0.2.0"
|
||||
|
||||
cortex-m = "0.7.1"
|
||||
cortex-m-rt = "0.6.13"
|
||||
cortex-m-rt = "0.6.14"
|
||||
embedded-hal = { version = "0.2.4" }
|
||||
panic-probe = { version = "0.2.0", features= ["print-defmt"] }
|
||||
futures = { version = "0.3.8", default-features = false, features = ["async-await"] }
|
||||
|
@ -2,6 +2,6 @@ MEMORY
|
||||
{
|
||||
/* NOTE 1 K = 1 KiBi = 1024 bytes */
|
||||
/* These values correspond to the STM32F429ZI */
|
||||
FLASH : ORIGIN = 0x08000000, LENGTH = 1024K
|
||||
RAM : ORIGIN = 0x20000000, LENGTH = 256K
|
||||
FLASH : ORIGIN = 0x08000000, LENGTH = 2048K
|
||||
RAM : ORIGIN = 0x20000000, LENGTH = 192K
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ async fn main_task() {
|
||||
let config = Config::default();
|
||||
let mut usart = Uart::new(p.USART3, p.PD9, p.PD8, config, 16_000_000);
|
||||
|
||||
for n in 0.. {
|
||||
for n in 0u32.. {
|
||||
let mut s: String<128> = String::new();
|
||||
core::write!(&mut s, "Hello DMA World {}!\r\n", n).unwrap();
|
||||
|
||||
|
Reference in New Issue
Block a user