From 7e031eaee31436e7963dd6b3372f43a86ff14bf3 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Tue, 6 Oct 2020 11:23:57 +0200 Subject: [PATCH] gpio: change `Input` to `Disconnected`. --- nrf-hal-common/src/gpio.rs | 96 +++++++++++++++++++------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/nrf-hal-common/src/gpio.rs b/nrf-hal-common/src/gpio.rs index 7cc2c360..b862a8a6 100644 --- a/nrf-hal-common/src/gpio.rs +++ b/nrf-hal-common/src/gpio.rs @@ -552,58 +552,58 @@ macro_rules! gpio { // 32-bit GPIO port (P0) // =========================================================================== gpio!(P0, p0, p0, Port::Port0, [ - P0_00: (p0_00, 0, Input), - P0_01: (p0_01, 1, Input), - P0_02: (p0_02, 2, Input), - P0_03: (p0_03, 3, Input), - P0_04: (p0_04, 4, Input), - P0_05: (p0_05, 5, Input), - P0_06: (p0_06, 6, Input), - P0_07: (p0_07, 7, Input), - P0_08: (p0_08, 8, Input), - P0_09: (p0_09, 9, Input), - P0_10: (p0_10, 10, Input), - P0_11: (p0_11, 11, Input), - P0_12: (p0_12, 12, Input), - P0_13: (p0_13, 13, Input), - P0_14: (p0_14, 14, Input), - P0_15: (p0_15, 15, Input), - P0_16: (p0_16, 16, Input), - P0_17: (p0_17, 17, Input), - P0_18: (p0_18, 18, Input), - P0_19: (p0_19, 19, Input), - P0_20: (p0_20, 20, Input), - P0_21: (p0_21, 21, Input), - P0_22: (p0_22, 22, Input), - P0_23: (p0_23, 23, Input), - P0_24: (p0_24, 24, Input), - P0_25: (p0_25, 25, Input), - P0_26: (p0_26, 26, Input), - P0_27: (p0_27, 27, Input), - P0_28: (p0_28, 28, Input), - P0_29: (p0_29, 29, Input), - P0_30: (p0_30, 30, Input), - P0_31: (p0_31, 31, Input), + P0_00: (p0_00, 0, Disconnected), + P0_01: (p0_01, 1, Disconnected), + P0_02: (p0_02, 2, Disconnected), + P0_03: (p0_03, 3, Disconnected), + P0_04: (p0_04, 4, Disconnected), + P0_05: (p0_05, 5, Disconnected), + P0_06: (p0_06, 6, Disconnected), + P0_07: (p0_07, 7, Disconnected), + P0_08: (p0_08, 8, Disconnected), + P0_09: (p0_09, 9, Disconnected), + P0_10: (p0_10, 10, Disconnected), + P0_11: (p0_11, 11, Disconnected), + P0_12: (p0_12, 12, Disconnected), + P0_13: (p0_13, 13, Disconnected), + P0_14: (p0_14, 14, Disconnected), + P0_15: (p0_15, 15, Disconnected), + P0_16: (p0_16, 16, Disconnected), + P0_17: (p0_17, 17, Disconnected), + P0_18: (p0_18, 18, Disconnected), + P0_19: (p0_19, 19, Disconnected), + P0_20: (p0_20, 20, Disconnected), + P0_21: (p0_21, 21, Disconnected), + P0_22: (p0_22, 22, Disconnected), + P0_23: (p0_23, 23, Disconnected), + P0_24: (p0_24, 24, Disconnected), + P0_25: (p0_25, 25, Disconnected), + P0_26: (p0_26, 26, Disconnected), + P0_27: (p0_27, 27, Disconnected), + P0_28: (p0_28, 28, Disconnected), + P0_29: (p0_29, 29, Disconnected), + P0_30: (p0_30, 30, Disconnected), + P0_31: (p0_31, 31, Disconnected), ]); // The p1 types are present in the p0 module generated from the // svd, but we want to export them in a p1 module from this crate. #[cfg(any(feature = "52833", feature = "52840"))] gpio!(P1, p0, p1, Port::Port1, [ - P1_00: (p1_00, 0, Input), - P1_01: (p1_01, 1, Input), - P1_02: (p1_02, 2, Input), - P1_03: (p1_03, 3, Input), - P1_04: (p1_04, 4, Input), - P1_05: (p1_05, 5, Input), - P1_06: (p1_06, 6, Input), - P1_07: (p1_07, 7, Input), - P1_08: (p1_08, 8, Input), - P1_09: (p1_09, 9, Input), - P1_10: (p1_10, 10, Input), - P1_11: (p1_11, 11, Input), - P1_12: (p1_12, 12, Input), - P1_13: (p1_13, 13, Input), - P1_14: (p1_14, 14, Input), - P1_15: (p1_15, 15, Input), + P1_00: (p1_00, 0, Disconnected), + P1_01: (p1_01, 1, Disconnected), + P1_02: (p1_02, 2, Disconnected), + P1_03: (p1_03, 3, Disconnected), + P1_04: (p1_04, 4, Disconnected), + P1_05: (p1_05, 5, Disconnected), + P1_06: (p1_06, 6, Disconnected), + P1_07: (p1_07, 7, Disconnected), + P1_08: (p1_08, 8, Disconnected), + P1_09: (p1_09, 9, Disconnected), + P1_10: (p1_10, 10, Disconnected), + P1_11: (p1_11, 11, Disconnected), + P1_12: (p1_12, 12, Disconnected), + P1_13: (p1_13, 13, Disconnected), + P1_14: (p1_14, 14, Disconnected), + P1_15: (p1_15, 15, Disconnected), ]);