Add SPIv1, use cfg_attr to pick correct impl.
Add IRQ to impl_rng!() to accomodate RNG vs HASH_RNG split.
This commit is contained in:
parent
07db3ed7c1
commit
9e93a0999f
94
embassy-stm32-examples/src/bin/spi.rs
Normal file
94
embassy-stm32-examples/src/bin/spi.rs
Normal file
@ -0,0 +1,94 @@
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
#![feature(trait_alias)]
|
||||
#![feature(min_type_alias_impl_trait)]
|
||||
#![feature(impl_trait_in_bindings)]
|
||||
#![feature(type_alias_impl_trait)]
|
||||
|
||||
#[path = "../example_common.rs"]
|
||||
mod example_common;
|
||||
|
||||
use embassy_stm32::gpio::{Level, Output, Input, Pull};
|
||||
use embedded_hal::digital::v2::{OutputPin, InputPin};
|
||||
use example_common::*;
|
||||
|
||||
use cortex_m_rt::entry;
|
||||
use stm32f4::stm32f429 as pac;
|
||||
//use stm32l4::stm32l4x5 as pac;
|
||||
use embassy_stm32::spi::{Spi, MODE_0, ByteOrder, Config};
|
||||
use embassy_stm32::time::Hertz;
|
||||
use embedded_hal::blocking::spi::Transfer;
|
||||
|
||||
#[entry]
|
||||
fn main() -> ! {
|
||||
info!("Hello World, dude!");
|
||||
|
||||
let pp = pac::Peripherals::take().unwrap();
|
||||
|
||||
pp.DBGMCU.cr.modify(|_, w| {
|
||||
w.dbg_sleep().set_bit();
|
||||
w.dbg_standby().set_bit();
|
||||
w.dbg_stop().set_bit()
|
||||
});
|
||||
pp.RCC.ahb1enr.modify(|_, w| w.dma1en().set_bit());
|
||||
|
||||
pp.RCC.apb1enr.modify(|_, w| {
|
||||
w.spi3en().enabled();
|
||||
w
|
||||
});
|
||||
|
||||
pp.RCC.ahb1enr.modify(|_, w| {
|
||||
w.gpioaen().enabled();
|
||||
w.gpioben().enabled();
|
||||
w.gpiocen().enabled();
|
||||
w.gpioden().enabled();
|
||||
w.gpioeen().enabled();
|
||||
w.gpiofen().enabled();
|
||||
w
|
||||
});
|
||||
|
||||
let rc = pp.RCC.cfgr.read().sws().bits();
|
||||
info!("rcc -> {}", rc);
|
||||
let p = embassy_stm32::init(Default::default());
|
||||
|
||||
let mut led = Output::new(p.PA5, Level::High);
|
||||
let mut spi = Spi::new(
|
||||
Hertz(16_000_000),
|
||||
p.SPI3,
|
||||
p.PC10,
|
||||
p.PC12,
|
||||
p.PC11,
|
||||
Hertz(1_000_000),
|
||||
Config::default(),
|
||||
);
|
||||
|
||||
let mut cs = Output::new( p.PE0, Level::High);
|
||||
cs.set_low();
|
||||
|
||||
let mut rdy = Input::new(p.PE1, Pull::Down);
|
||||
let mut wake = Output::new( p.PB13, Level::Low);
|
||||
let mut reset = Output::new( p.PE8, Level::Low);
|
||||
|
||||
wake.set_high().unwrap();
|
||||
reset.set_high().unwrap();
|
||||
|
||||
loop {
|
||||
info!("loop");
|
||||
while rdy.is_low().unwrap() {
|
||||
info!("await ready")
|
||||
}
|
||||
info!("ready");
|
||||
let mut buf = [0x0A;4];
|
||||
spi.transfer(&mut buf);
|
||||
info!("xfer {=[u8]:x}", buf);
|
||||
}
|
||||
|
||||
loop {
|
||||
info!("high");
|
||||
led.set_high().unwrap();
|
||||
cortex_m::asm::delay(10_000_000);
|
||||
info!("low");
|
||||
led.set_low().unwrap();
|
||||
cortex_m::asm::delay(10_000_000);
|
||||
}
|
||||
}
|
@ -28,125 +28,125 @@ defmt-warn = [ ]
|
||||
defmt-error = [ ]
|
||||
|
||||
# BEGIN GENERATED FEATURES
|
||||
stm32f401cb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401cc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401cd = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401ce = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401rb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401rc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401rd = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401re = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401vb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401vc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401vd = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f405oe = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f405og = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f405rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f405vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f405zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f407ie = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f407ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f407ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f407vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f407ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f407zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401cb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401cc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401cd = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401ce = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401rb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401rc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401rd = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401re = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401vb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401vc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401vd = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f401ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f405oe = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f405og = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f405rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f405vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f405zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f407ie = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f407ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f407ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f407vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f407ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f407zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f410c8 = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f410cb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f410r8 = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f410rb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f410t8 = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f410tb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f411cc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f411ce = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f411rc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f411re = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f411vc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f411ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f412ce = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f412cg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f412re = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f412rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f412ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f412vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f412ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f412zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413cg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413ch = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413mg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413mh = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413rh = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413vh = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413zh = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f415og = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f415rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f415vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f415zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f417ie = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f417ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f417ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f417vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f417ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f417zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f423ch = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f423mh = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f423rh = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f423vh = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f423zh = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f427ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f427ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f427ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f427ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f427vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f427vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f427zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f427zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429be = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ie = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ne = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ng = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ni = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f437ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f437ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f437ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f437vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f437vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f437zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f437zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439ng = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439ni = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f446mc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f446me = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f446rc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f446re = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f446vc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f446ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f446zc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f446ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f411cc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f411ce = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f411rc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f411re = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f411vc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f411ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f412ce = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f412cg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f412re = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f412rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f412ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f412vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f412ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f412zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413cg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413ch = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413mg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413mh = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413rh = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413vh = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f413zh = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f415og = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f415rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f415vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f415zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f417ie = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f417ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f417ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f417vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f417ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f417zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f423ch = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f423mh = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f423rh = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f423vh = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f423zh = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f427ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f427ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f427ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f427ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f427vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f427vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f427zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f427zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429be = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ie = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ne = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ng = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ni = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f429zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f437ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f437ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f437ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f437vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f437vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f437zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f437zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439ng = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439ni = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f439zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f446mc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f446me = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f446rc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f446re = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f446vc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f446ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f446zc = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f446ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f469ae = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f469ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
stm32f469ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
@ -328,6 +328,7 @@ _gpio_v2 = []
|
||||
_rng = [ "rand_core",]
|
||||
_rng_v1 = []
|
||||
_spi = []
|
||||
_spi_v1 = []
|
||||
_spi_v2 = []
|
||||
_stm32f4 = []
|
||||
_stm32l4 = []
|
||||
|
@ -113,7 +113,10 @@ for chip in chips.values():
|
||||
f.write(f'impl_usart_pin!({name}, CkPin, {pin}, {func});')
|
||||
|
||||
if block_mod == 'rng':
|
||||
f.write(f'impl_rng!({name});')
|
||||
if 'RNG' in chip['interrupts']:
|
||||
f.write(f'impl_rng!({name}, RNG);')
|
||||
else:
|
||||
f.write(f'impl_rng!({name}, HASH_RNG);')
|
||||
|
||||
if block_mod == 'spi':
|
||||
clock = peri['clock']
|
||||
|
@ -17,6 +17,7 @@ pub mod exti;
|
||||
pub mod gpio;
|
||||
#[cfg(feature = "_rng")]
|
||||
pub mod rng;
|
||||
#[cfg(feature = "_spi")]
|
||||
pub mod spi;
|
||||
#[cfg(feature = "_usart")]
|
||||
pub mod usart;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -126,6 +126,32 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -158,6 +184,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -172,7 +199,7 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -126,6 +126,32 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -158,6 +184,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -172,7 +199,7 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -126,6 +126,32 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -158,6 +184,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -172,7 +199,7 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -126,6 +126,32 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -158,6 +184,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -172,7 +199,7 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -126,6 +126,32 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -158,6 +184,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -172,7 +199,7 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -126,6 +126,32 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -158,6 +184,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -172,7 +199,7 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -126,6 +126,32 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -158,6 +184,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -172,7 +199,7 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -126,6 +126,32 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -158,6 +184,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -172,7 +199,7 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -126,6 +126,40 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -158,6 +192,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -172,7 +207,7 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -126,6 +126,40 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -158,6 +192,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -172,7 +207,7 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -126,6 +126,40 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -158,6 +192,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -172,7 +207,7 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -126,6 +126,40 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -158,6 +192,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -172,7 +207,7 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -93,7 +93,7 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x40080000 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
|
@ -93,7 +93,7 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x40080000 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
|
@ -93,7 +93,7 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x40080000 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
|
@ -93,7 +93,7 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x40080000 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
|
@ -93,7 +93,7 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x40080000 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
|
@ -93,7 +93,7 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x40080000 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
|
@ -126,6 +126,57 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -160,6 +211,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -174,7 +226,8 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -126,6 +126,57 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -160,6 +211,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -174,7 +226,8 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -126,6 +126,57 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -160,6 +211,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -174,7 +226,8 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -126,6 +126,57 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -160,6 +211,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -174,7 +226,8 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -126,6 +126,57 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -160,6 +211,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -174,7 +226,8 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -126,6 +126,57 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -160,6 +211,7 @@ impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -174,7 +226,8 @@ peripherals!(
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7,
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SYSCFG, USART1, USART2, USART6
|
||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -93,7 +93,44 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -135,6 +172,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -147,8 +185,8 @@ peripherals!(
|
||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5,
|
||||
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5,
|
||||
SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -93,7 +93,44 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -135,6 +172,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -147,8 +185,8 @@ peripherals!(
|
||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5,
|
||||
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5,
|
||||
SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -110,7 +110,46 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -162,6 +201,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -175,7 +215,8 @@ peripherals!(
|
||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7,
|
||||
PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG,
|
||||
USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -110,7 +110,46 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -162,6 +201,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -175,7 +215,8 @@ peripherals!(
|
||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||
PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7,
|
||||
PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG,
|
||||
USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,58 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -220,6 +271,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -236,7 +288,8 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,58 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -220,6 +271,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -236,7 +288,8 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,58 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -220,6 +271,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -236,7 +288,8 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,58 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -220,6 +271,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -236,7 +288,8 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,61 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Mosi, PA10, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PA12, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PA9, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -204,6 +258,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -220,7 +275,7 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,61 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Mosi, PA10, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PA12, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PA9, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -204,6 +258,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -220,7 +275,7 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,61 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Mosi, PA10, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PA12, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PA9, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -220,6 +274,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -236,7 +291,8 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,61 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Mosi, PA10, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PA12, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PA9, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -220,6 +274,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -236,7 +291,8 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,61 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Mosi, PA10, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PA12, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PA9, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -220,6 +274,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -236,7 +291,8 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,61 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Mosi, PA10, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PA12, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PA9, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -220,6 +274,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -236,7 +291,8 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,61 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Mosi, PA10, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PA12, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PA9, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -220,6 +274,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -236,7 +291,8 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,61 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Mosi, PA10, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PA12, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PA9, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -220,6 +274,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -236,7 +291,8 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,61 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Mosi, PA10, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PA12, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PA9, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -220,6 +274,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -236,7 +291,8 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,61 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Mosi, PA10, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PA12, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PA9, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -220,6 +274,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -236,7 +291,8 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -178,7 +178,34 @@ impl_gpio_pin!(PI13, 8, 13, EXTI13);
|
||||
impl_gpio_pin!(PI14, 8, 14, EXTI14);
|
||||
impl_gpio_pin!(PI15, 8, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -232,6 +259,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -249,7 +277,7 @@ peripherals!(
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,61 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Mosi, PA10, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PA12, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PA9, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -204,6 +258,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -220,7 +275,7 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,61 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Mosi, PA10, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PA12, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PA9, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -220,6 +274,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -236,7 +291,8 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,61 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Mosi, PA10, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PA12, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PA9, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -220,6 +274,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -236,7 +291,8 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,61 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Mosi, PA10, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PA12, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PA9, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -220,6 +274,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -236,7 +291,8 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -161,7 +161,61 @@ impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Mosi, PA10, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PA12, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PA9, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PC7, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB12, 7);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Mosi, PA1, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PA11, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PB13, 6);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PA10, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PA12, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PB0, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PB8, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE12, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE13, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE14, 6);
|
||||
impl_spi_pin!(SPI5, Sck, PE2, 6);
|
||||
impl_spi_pin!(SPI5, Miso, PE5, 6);
|
||||
impl_spi_pin!(SPI5, Mosi, PE6, 6);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -220,6 +274,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -236,7 +291,8 @@ peripherals!(
|
||||
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9,
|
||||
PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10,
|
||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||
PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
|
||||
USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,52 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +311,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +331,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,52 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +311,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +331,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,44 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +303,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +323,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,44 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +303,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +323,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,52 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +311,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +331,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,52 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +311,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +331,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,44 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +303,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +323,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,44 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +303,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +323,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,44 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +303,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +323,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,52 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +311,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +331,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
@ -212,7 +212,57 @@ impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
|
||||
impl_rng!(RNG);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||
impl_spi!(SPI1, APB2);
|
||||
impl_spi_pin!(SPI1, Sck, PA5, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PA6, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PA7, 5);
|
||||
impl_spi_pin!(SPI1, Sck, PB3, 5);
|
||||
impl_spi_pin!(SPI1, Miso, PB4, 5);
|
||||
impl_spi_pin!(SPI1, Mosi, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, Sck, PB10, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PB13, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PB14, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PB15, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PC2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PC3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PD3, 5);
|
||||
impl_spi_pin!(SPI2, Sck, PI1, 5);
|
||||
impl_spi_pin!(SPI2, Miso, PI2, 5);
|
||||
impl_spi_pin!(SPI2, Mosi, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, Sck, PB3, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PB4, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PB5, 6);
|
||||
impl_spi_pin!(SPI3, Sck, PC10, 6);
|
||||
impl_spi_pin!(SPI3, Miso, PC11, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PC12, 6);
|
||||
impl_spi_pin!(SPI3, Mosi, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, Sck, PE12, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE13, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE14, 5);
|
||||
impl_spi_pin!(SPI4, Sck, PE2, 5);
|
||||
impl_spi_pin!(SPI4, Miso, PE5, 5);
|
||||
impl_spi_pin!(SPI4, Mosi, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, Mosi, PF11, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PF7, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PF8, 5);
|
||||
impl_spi_pin!(SPI5, Mosi, PF9, 5);
|
||||
impl_spi_pin!(SPI5, Sck, PH6, 5);
|
||||
impl_spi_pin!(SPI5, Miso, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, Miso, PG12, 5);
|
||||
impl_spi_pin!(SPI6, Sck, PG13, 5);
|
||||
impl_spi_pin!(SPI6, Mosi, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40013800 as _);
|
||||
pub const USART1: usart::Usart = usart::Usart(0x40011000 as _);
|
||||
impl_usart!(USART1);
|
||||
@ -266,6 +316,7 @@ pub use regs::dma_v2 as dma;
|
||||
pub use regs::exti_v1 as exti;
|
||||
pub use regs::gpio_v2 as gpio;
|
||||
pub use regs::rng_v1 as rng;
|
||||
pub use regs::spi_v1 as spi;
|
||||
pub use regs::syscfg_f4 as syscfg;
|
||||
pub use regs::usart_v1 as usart;
|
||||
mod regs;
|
||||
@ -285,7 +336,7 @@ peripherals!(
|
||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||
PK15, RNG, SYSCFG, USART1, USART2, USART3, USART6
|
||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||
);
|
||||
|
||||
pub mod interrupt {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user