Adding WIP update to use HAL

This commit is contained in:
Ryan Summers 2020-04-18 10:54:55 +02:00
parent 507b721c4e
commit ce9ae48f2a
7 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
runner = "gdb-multiarch -q -x openocd.gdb"
runner = "gdb-multiarch -q -x bmp.gdb"
rustflags = ["-C", "link-arg=-Tlink.x"]
[build]

View File

@ -35,7 +35,7 @@ panic-halt = "0.2"
serde = { version = "1.0", features = ["derive"], default-features = false }
heapless = "0.5"
serde-json-core = "0.1"
stm32h7 = { version = "0.10", features = ["stm32h743", "rt"] }
stm32h7 = { version = "0.10", features = ["stm32h743v", "rt"] }
cortex-m-rtfm = "0.5"
smoltcp = { version = "0.6", features = ["ethernet", "proto-ipv4", "socket-tcp"], default-features = false }

View File

@ -1,5 +1,5 @@
use super::i2c;
use stm32h7::stm32h743 as pac;
use stm32h7::stm32h743v as pac;
const I2C_ADDR: u8 = 0xa0;

View File

@ -3,7 +3,7 @@ use smoltcp::phy;
use smoltcp::time::Instant;
use smoltcp::wire::EthernetAddress;
use smoltcp::Result;
use stm32h7::stm32h743 as pac;
use stm32h7::stm32h743v as pac;
#[allow(dead_code)]
mod phy_consts {

View File

@ -1,4 +1,4 @@
use stm32h7::stm32h743 as pac;
use stm32h7::stm32h743v as pac;
// Adapted from stm32h7xx embedded-hal

View File

@ -33,7 +33,7 @@ use core::fmt::Write;
use cortex_m_rt::exception;
use heapless::{consts::*, String, Vec};
use rtfm::cyccnt::{Instant, U32Ext as _};
use stm32h7::stm32h743 as pac;
use stm32h7::stm32h743v as pac;
use smoltcp as net;
@ -94,7 +94,7 @@ macro_rules! create_socket {
};
}
#[rtfm::app(device = stm32h7::stm32h743, peripherals = true, monotonic = rtfm::cyccnt::CYCCNT)]
#[rtfm::app(device = stm32h7::stm32h743v, peripherals = true, monotonic = rtfm::cyccnt::CYCCNT)]
const APP: () = {
struct Resources {
spi: (pac::SPI1, pac::SPI2, pac::SPI4, pac::SPI5),

View File

@ -1,4 +1,4 @@
source [find interface/stlink.cfg]
source [find interface/stlink-v2.cfg]
transport select hla_swd
source [find target/stm32h7x_dual_bank.cfg]