stm32: add stm32f103 bluepill to HIL tests.
This commit is contained in:
@ -16,6 +16,8 @@ async fn main(_spawner: Spawner, p: Peripherals) {
|
||||
|
||||
// Arduino pins D0 and D1
|
||||
// They're connected together with a 1K resistor.
|
||||
#[cfg(feature = "stm32f103c8")]
|
||||
let (mut a, mut b) = (p.PA9, p.PA10);
|
||||
#[cfg(feature = "stm32g491re")]
|
||||
let (mut a, mut b) = (p.PC4, p.PC5);
|
||||
#[cfg(feature = "stm32g071rb")]
|
||||
|
@ -15,6 +15,8 @@ use example_common::*;
|
||||
async fn main(_spawner: Spawner, p: Peripherals) {
|
||||
info!("Hello World!");
|
||||
|
||||
#[cfg(feature = "stm32f103c8")]
|
||||
let (sck, mosi, miso, tx_dma, rx_dma) = (p.PA5, p.PA7, p.PA6, p.DMA1_CH3, p.DMA1_CH2);
|
||||
#[cfg(feature = "stm32f429zi")]
|
||||
let (sck, mosi, miso, tx_dma, rx_dma) = (p.PA5, p.PA7, p.PA6, p.DMA2_CH3, p.DMA2_CH2);
|
||||
#[cfg(feature = "stm32h755zi")]
|
||||
|
@ -23,6 +23,8 @@ async fn main(_spawner: Spawner, p: Peripherals) {
|
||||
|
||||
// Arduino pins D0 and D1
|
||||
// They're connected together with a 1K resistor.
|
||||
#[cfg(feature = "stm32f103c8")]
|
||||
let (tx, rx, usart) = (p.PA9, p.PA10, p.USART1);
|
||||
#[cfg(feature = "stm32g491re")]
|
||||
let (tx, rx, usart) = (p.PC4, p.PC5, p.USART1);
|
||||
#[cfg(feature = "stm32g071rb")]
|
||||
|
@ -22,6 +22,8 @@ async fn main(_spawner: Spawner, p: Peripherals) {
|
||||
|
||||
// Arduino pins D0 and D1
|
||||
// They're connected together with a 1K resistor.
|
||||
#[cfg(feature = "stm32f103c8")]
|
||||
let (tx, rx, usart, tx_dma, rx_dma) = (p.PA9, p.PA10, p.USART1, p.DMA1_CH4, p.DMA1_CH5);
|
||||
#[cfg(feature = "stm32g491re")]
|
||||
let (tx, rx, usart, tx_dma, rx_dma) = (p.PC4, p.PC5, p.USART1, p.DMA1_CH0, p.DMA1_CH1);
|
||||
#[cfg(feature = "stm32g071rb")]
|
||||
|
Reference in New Issue
Block a user