Skip to content

Commit 785fadf

Browse files
Silence "unused" warnings on platforms without ADC
Co-authored-by: Mathias Koch <smilykoch@gmail.com>
1 parent 1ad84e7 commit 785fadf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rcc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ pub struct CCIPR {
160160
}
161161

162162
impl CCIPR {
163+
#[allow(dead_code)]
163164
pub(crate) fn ccipr(&mut self) -> &rcc::CCIPR {
164165
// NOTE(unsafe) this proxy grants exclusive access to this register
165166
unsafe { &(*RCC::ptr()).ccipr }

0 commit comments

Comments
 (0)