stm32: allow some unused.
This commit is contained in:
parent
623d3ec306
commit
a14319f51e
2 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,7 @@ trait SealedInstance {
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
fn regs() -> crate::pac::adc::Adc;
|
fn regs() -> crate::pac::adc::Adc;
|
||||||
#[cfg(not(any(adc_f1, adc_v1, adc_l0, adc_f3_v2, adc_f3_v1_1, adc_g0)))]
|
#[cfg(not(any(adc_f1, adc_v1, adc_l0, adc_f3_v2, adc_f3_v1_1, adc_g0)))]
|
||||||
|
#[allow(unused)]
|
||||||
fn common_regs() -> crate::pac::adccommon::AdcCommon;
|
fn common_regs() -> crate::pac::adccommon::AdcCommon;
|
||||||
#[cfg(any(adc_f1, adc_f3, adc_v1, adc_l0, adc_f3_v1_1))]
|
#[cfg(any(adc_f1, adc_f3, adc_v1, adc_l0, adc_f3_v1_1))]
|
||||||
fn state() -> &'static State;
|
fn state() -> &'static State;
|
||||||
|
|
|
@ -47,6 +47,7 @@ trait SealedInstance {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Enable global interrupt
|
/// Enable global interrupt
|
||||||
|
#[allow(unused)]
|
||||||
fn enable_irq(&self) {
|
fn enable_irq(&self) {
|
||||||
Self::regs().csr().modify(|v| v.set_ien(true))
|
Self::regs().csr().modify(|v| v.set_ien(true))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue