Skip to content

Commit 537c89a

Browse files
committed
[PinName] Remove useless definition
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent f01162e commit 537c89a

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

cores/arduino/stm32/PinNamesTypes.h

+1-20
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ extern "C" {
3636
/* STM PIN data as used in pin_function is coded on 32 bits as below
3737
* [2:0] Function (like in MODER reg) : Input / Output / Alt / Analog
3838
* [3] Output Push-Pull / Open Drain (as in OTYPER reg)
39-
* [5:4] as in PUPDR reg: No Pull, Pull-up, Pull-Donc
39+
* [5:4] as in PUPDR reg: No Pull, Pull-up, Pull-Down
4040
* [7:6] Reserved for speed config (as in OSPEEDR), but not used yet
4141
* [14:8] Alternate Num (as in AFRL/AFRG reg)
4242
* [19:15] Channel (Analog/Timer specific)
@@ -135,25 +135,6 @@ typedef enum {
135135
#define STM_VALID_PINNAME(X) (STM_PORT(X) <= LastPort)
136136

137137
#define STM_GPIO_PIN(X) ((uint16_t)(1<<STM_PIN(X)))
138-
/* Defines to be used by application */
139-
typedef enum {
140-
PIN_INPUT = 0,
141-
PIN_OUTPUT
142-
} PinDirection;
143-
144-
typedef enum {
145-
PullNone = 0,
146-
PullUp = 1,
147-
PullDown = 2,
148-
OpenDrainPullUp = 3,
149-
OpenDrainNoPull = 4,
150-
OpenDrainPullDown = 5,
151-
PushPullNoPull = PullNone,
152-
PushPullPullUp = PullUp,
153-
PushPullPullDown = PullDown,
154-
OpenDrain = OpenDrainPullUp,
155-
PullDefault = PullNone
156-
} PinMode;
157138

158139
#ifdef __cplusplus
159140
}

0 commit comments

Comments
 (0)