Merge pull request #171 from bobmcwhirter/spi_checkpoint
Spi checkpoint
This commit is contained in:
commit
ee869efcb5
72
embassy-stm32-examples/src/bin/spi.rs
Normal file
72
embassy-stm32-examples/src/bin/spi.rs
Normal file
@ -0,0 +1,72 @@
|
||||
#![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::{Input, Level, Output, Pull};
|
||||
use embedded_hal::digital::v2::{InputPin, OutputPin};
|
||||
use example_common::*;
|
||||
|
||||
use cortex_m_rt::entry;
|
||||
use stm32f4::stm32f429 as pac;
|
||||
//use stm32l4::stm32l4x5 as pac;
|
||||
use embassy_stm32::spi::{ByteOrder, Config, Spi, MODE_0};
|
||||
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();
|
||||
let p = embassy_stm32::init(Default::default());
|
||||
|
||||
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);
|
||||
|
||||
loop {
|
||||
let mut buf = [0x0A; 4];
|
||||
cs.set_low();
|
||||
spi.transfer(&mut buf);
|
||||
cs.set_high();
|
||||
info!("xfer {=[u8]:x}", buf);
|
||||
}
|
||||
}
|
@ -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",]
|
||||
@ -189,24 +189,24 @@ stm32l422cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_r
|
||||
stm32l422kb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l422rb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l422tb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l431cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l431cc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l431kb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l431kc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l431rb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l431rc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l431vc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l432kb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l432kc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l433cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l433cc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l433rb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l433rc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l433vc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l442kc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l443cc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l443rc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l443vc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l431cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l431cc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l431kb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l431kc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l431rb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l431rc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l431vc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l432kb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l432kc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l433cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l433cc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l433rb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l433rc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l433vc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l442kc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l443cc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l443rc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l443vc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l451cc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l451ce = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l451rc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
@ -257,67 +257,67 @@ stm32l486qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_r
|
||||
stm32l486rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l486vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l486zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496ae = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496qe = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496re = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496ve = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496wg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496ze = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l4a6ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l4a6qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l4a6rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l4a6vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l4a6zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l4p5ae = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5ce = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5cg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5qe = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5re = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5ve = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5ze = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4q5ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4q5cg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4q5qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4q5rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4q5vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4q5zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r5ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r5ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r5qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r5qi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r5vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r5vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r5zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r5zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r7ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r7vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r7zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r9ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r9ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r9vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r9vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r9zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r9zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s5ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s5qi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s5vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s5zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s7ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s7vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s7zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s9ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s9vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s9zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l496ae = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496qe = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496re = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496ve = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496wg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496ze = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l496zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l4a6ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l4a6qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l4a6rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l4a6vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l4a6zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||
stm32l4p5ae = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5ce = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5cg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5qe = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5re = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5ve = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5ze = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4p5zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4q5ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4q5cg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4q5qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4q5rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4q5vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4q5zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r5ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r5ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r5qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r5qi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r5vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r5vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r5zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r5zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r7ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r7vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r7zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r9ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r9ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r9vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r9vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r9zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4r9zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s5ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s5qi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s5vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s5zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s7ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s7vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s7zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s9ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s9vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s9zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
_dma = []
|
||||
_dma_v1 = []
|
||||
_dma_v2 = []
|
||||
@ -327,6 +327,9 @@ _gpio = []
|
||||
_gpio_v2 = []
|
||||
_rng = [ "rand_core",]
|
||||
_rng_v1 = []
|
||||
_spi = []
|
||||
_spi_v1 = []
|
||||
_spi_v2 = []
|
||||
_stm32f4 = []
|
||||
_stm32l4 = []
|
||||
_stm32l4p = []
|
||||
|
@ -113,7 +113,22 @@ 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']
|
||||
f.write(f'impl_spi!({name}, {clock});')
|
||||
for pin, funcs in af.items():
|
||||
if pin in pins:
|
||||
if func := funcs.get(f'{name}_SCK'):
|
||||
f.write(f'impl_spi_pin!({name}, SckPin, {pin}, {func});')
|
||||
if func := funcs.get(f'{name}_MOSI'):
|
||||
f.write(f'impl_spi_pin!({name}, MosiPin, {pin}, {func});')
|
||||
if func := funcs.get(f'{name}_MISO'):
|
||||
f.write(f'impl_spi_pin!({name}, MisoPin, {pin}, {func});')
|
||||
|
||||
if block_mod == 'gpio':
|
||||
custom_singletons = True
|
||||
|
@ -228,6 +228,16 @@ impl AnyPin {
|
||||
pub unsafe fn steal(pin_port: u8) -> Self {
|
||||
Self { pin_port }
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn _port(&self) -> u8 {
|
||||
self.pin_port / 16
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn block(&self) -> gpio::Gpio {
|
||||
pac::GPIO(self._port() as _)
|
||||
}
|
||||
}
|
||||
|
||||
impl_unborrow!(AnyPin);
|
||||
|
@ -17,12 +17,18 @@ pub mod exti;
|
||||
pub mod gpio;
|
||||
#[cfg(feature = "_rng")]
|
||||
pub mod rng;
|
||||
#[cfg(feature = "_spi")]
|
||||
pub mod spi;
|
||||
#[cfg(feature = "_usart")]
|
||||
pub mod usart;
|
||||
|
||||
// This must go LAST so that it sees the `impl_foo!` macros
|
||||
mod pac;
|
||||
pub mod time;
|
||||
|
||||
pub use embassy_macros;
|
||||
pub use embassy_macros::interrupt;
|
||||
pub use embassy_macros::interrupt as irq;
|
||||
pub use pac::{interrupt, peripherals, Peripherals};
|
||||
|
||||
// workaround for svd2rust-generated code using `use crate::generic::*;`
|
||||
|
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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, MosiPin, PA10, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PA12, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, MosiPin, PA10, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PA12, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, MosiPin, PA10, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PA12, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, MosiPin, PA10, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PA12, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, MosiPin, PA10, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PA12, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, MosiPin, PA10, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PA12, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, MosiPin, PA10, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PA12, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, MosiPin, PA10, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PA12, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, MosiPin, PA10, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PA12, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, MosiPin, PA10, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PA12, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, MosiPin, PA10, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PA12, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, MosiPin, PA10, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PA12, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, MosiPin, PA10, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PA12, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, MosiPin, PA10, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PA12, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, MosiPin, PA10, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PA12, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PC7, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB12, 7);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, MosiPin, PA1, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PA11, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PB13, 6);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PA10, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PA12, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PB0, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PB8, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE12, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE13, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, PE14, 6);
|
||||
impl_spi_pin!(SPI5, SckPin, PE2, 6);
|
||||
impl_spi_pin!(SPI5, MisoPin, PE5, 6);
|
||||
impl_spi_pin!(SPI5, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x40015400 as _);
|
||||
impl_spi!(SPI6, APB2);
|
||||
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, 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, SckPin, PA5, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||
impl_spi!(SPI2, APB1);
|
||||
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||
impl_spi!(SPI3, APB1);
|
||||
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PB5, 6);
|
||||
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||
impl_spi!(SPI4, APB2);
|
||||
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||
impl_spi!(SPI5, APB2);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||
impl_spi_pin!(SPI5, MisoPin, 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 {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user