Skip to content

Commit 330e49f

Browse files
committed
rm pudpr from mode
1 parent 367bfd1 commit 330e49f

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/gpio/convert.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,6 @@ impl<const P: char, const N: u8, MODE: PinMode> Pin<P, N, MODE> {
212212
pub(super) fn mode<M: PinMode>(&mut self) {
213213
let offset = 2 * N;
214214
unsafe {
215-
if MODE::PUPDR != M::PUPDR {
216-
if let Some(pudpr) = M::PUPDR {
217-
(*Gpio::<P>::ptr())
218-
.pupdr
219-
.modify(|r, w| w.bits((r.bits() & !(0b11 << offset)) | (pudpr << offset)));
220-
}
221-
}
222-
223215
if MODE::OTYPER != M::OTYPER {
224216
if let Some(otyper) = M::OTYPER {
225217
(*Gpio::<P>::ptr())
@@ -372,8 +364,6 @@ pub trait PinMode: crate::Sealed {
372364
// These constants are used to implement the pin configuration code.
373365
// They are not part of public API.
374366

375-
#[doc(hidden)]
376-
const PUPDR: Option<u32> = None;
377367
#[doc(hidden)]
378368
const MODER: u32 = u32::MAX;
379369
#[doc(hidden)]
@@ -389,7 +379,6 @@ impl PinMode for Input {
389379

390380
impl crate::Sealed for Analog {}
391381
impl PinMode for Analog {
392-
const PUPDR: Option<u32> = Some(0b00);
393382
const MODER: u32 = 0b11;
394383
}
395384

src/serial.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ pub mod config {
101101

102102
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
103103
#[derive(Debug, Clone, Copy, PartialEq)]
104-
#[non_exhaustive]
105104
pub struct Config {
106105
pub baudrate: Bps,
107106
pub wordlength: WordLength,

0 commit comments

Comments
 (0)