Fix DMA
This commit is contained in:
parent
6214f30054
commit
c4294d97ff
@ -130,11 +130,10 @@ for chip in chips.values():
|
||||
|
||||
if block_mod == 'dma':
|
||||
custom_singletons = True
|
||||
inst_num = int(name[3:])
|
||||
for ch_num in range(8):
|
||||
channel = f'{name}_CH{ch_num}'
|
||||
peripheral_names.append(channel)
|
||||
f.write(f'impl_dma_channel!({channel}, {inst_num}, {ch_num});')
|
||||
f.write(f'impl_dma_channel!({channel}, {name}, {ch_num});')
|
||||
|
||||
if not custom_singletons:
|
||||
peripheral_names.append(name)
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x40020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, 1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, 1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, 1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, 1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, 1, 7);
|
||||
impl_dma_channel!(DMA1_CH0, DMA1, 0);
|
||||
impl_dma_channel!(DMA1_CH1, DMA1, 1);
|
||||
impl_dma_channel!(DMA1_CH2, DMA1, 2);
|
||||
impl_dma_channel!(DMA1_CH3, DMA1, 3);
|
||||
impl_dma_channel!(DMA1_CH4, DMA1, 4);
|
||||
impl_dma_channel!(DMA1_CH5, DMA1, 5);
|
||||
impl_dma_channel!(DMA1_CH6, DMA1, 6);
|
||||
impl_dma_channel!(DMA1_CH7, DMA1, 7);
|
||||
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
|
||||
impl_dma_channel!(DMA2_CH0, 2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, 2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, 2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, 2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, 2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, 2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, 2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 2, 7);
|
||||
impl_dma_channel!(DMA2_CH0, DMA2, 0);
|
||||
impl_dma_channel!(DMA2_CH1, DMA2, 1);
|
||||
impl_dma_channel!(DMA2_CH2, DMA2, 2);
|
||||
impl_dma_channel!(DMA2_CH3, DMA2, 3);
|
||||
impl_dma_channel!(DMA2_CH4, DMA2, 4);
|
||||
impl_dma_channel!(DMA2_CH5, DMA2, 5);
|
||||
impl_dma_channel!(DMA2_CH6, DMA2, 6);
|
||||
impl_dma_channel!(DMA2_CH7, DMA2, 7);
|
||||
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
|
||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user