Skip to content

Commit 831d6a6

Browse files
committed
Implement into_xxx() methods for partially erased pins
1 parent 81d17bf commit 831d6a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gpio.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ impl<GPIO, INDEX, MODE> Pin<GPIO, INDEX, MODE> {
237237
impl<GPIO, INDEX, MODE> Pin<GPIO, INDEX, MODE>
238238
where
239239
GPIO: GpioStatic,
240-
INDEX: Unsigned,
240+
INDEX: Index,
241241
{
242242
/// Configures the pin to operate as a floating input pin
243243
pub fn into_floating_input(
@@ -309,7 +309,7 @@ where
309309
impl<GPIO, INDEX> Pin<GPIO, INDEX, Output<OpenDrain>>
310310
where
311311
GPIO: GpioStatic,
312-
INDEX: Unsigned,
312+
INDEX: Index,
313313
{
314314
/// Enables / disables the internal pull up
315315
pub fn internal_pull_up(&mut self, pupdr: &mut GPIO::PUPDR, on: bool) {
@@ -403,7 +403,7 @@ macro_rules! af {
403403
where
404404
Self: $IntoAfi,
405405
GPIO: GpioStatic,
406-
INDEX: Unsigned,
406+
INDEX: Index,
407407
{
408408
/// Configures the pin to operate as an alternate function pin
409409
pub fn $into_afi(

0 commit comments

Comments
 (0)