stm32: allow some unused.

This commit is contained in:
Dario Nieuwenhuis 2024-05-13 00:00:36 +02:00
parent 623d3ec306
commit a14319f51e
2 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,7 @@ trait SealedInstance {
#[allow(unused)]
fn regs() -> crate::pac::adc::Adc;
#[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;
#[cfg(any(adc_f1, adc_f3, adc_v1, adc_l0, adc_f3_v1_1))]
fn state() -> &'static State;

View File

@ -47,6 +47,7 @@ trait SealedInstance {
}
/// Enable global interrupt
#[allow(unused)]
fn enable_irq(&self) {
Self::regs().csr().modify(|v| v.set_ien(true))
}