mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
Putting never used/constucted items behind feature flag
This commit is contained in:
parent
639acdd2a3
commit
042d234f11
@ -117,6 +117,7 @@ fn GPIOTE() {
|
||||
unsafe { handle_gpiote_interrupt() };
|
||||
}
|
||||
|
||||
#[cfg(not(any(feature = "_nrf9120")))]
|
||||
unsafe fn handle_gpiote_interrupt() {
|
||||
let g = regs();
|
||||
|
||||
@ -166,10 +167,10 @@ unsafe fn handle_gpiote_interrupt() {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "_nrf51"))]
|
||||
#[cfg(not(any(feature = "_nrf51", feature = "_nrf9120")))]
|
||||
struct BitIter(u32);
|
||||
|
||||
#[cfg(not(feature = "_nrf51"))]
|
||||
#[cfg(not(any(feature = "_nrf51", feature = "_nrf9120")))]
|
||||
impl Iterator for BitIter {
|
||||
type Item = u32;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user