stm32: don't generate adc4 for g4
This commit is contained in:
parent
fd22f4fac5
commit
f4601af2a4
@ -104,6 +104,7 @@ foreach_peripheral!(
|
|||||||
impl crate::adc::Instance for peripherals::ADC3 {}
|
impl crate::adc::Instance for peripherals::ADC3 {}
|
||||||
};
|
};
|
||||||
(adc, ADC4) => {
|
(adc, ADC4) => {
|
||||||
|
#[cfg(not(any(stm32g4x1, stm32g4x2, stm32g4x3, stm32g4x4)))]
|
||||||
impl crate::adc::sealed::Instance for peripherals::ADC4 {
|
impl crate::adc::sealed::Instance for peripherals::ADC4 {
|
||||||
fn regs() -> crate::pac::adc::Adc {
|
fn regs() -> crate::pac::adc::Adc {
|
||||||
crate::pac::ADC4
|
crate::pac::ADC4
|
||||||
@ -123,6 +124,7 @@ foreach_peripheral!(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(any(stm32g4x1, stm32g4x2, stm32g4x3, stm32g4x4)))]
|
||||||
impl crate::adc::Instance for peripherals::ADC4 {}
|
impl crate::adc::Instance for peripherals::ADC4 {}
|
||||||
};
|
};
|
||||||
(adc, $inst:ident) => {
|
(adc, $inst:ident) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user