From 82beb2ab6920ecff792252d620b7a43b07a24fd5 Mon Sep 17 00:00:00 2001 From: cfif Date: Mon, 2 Feb 2026 15:19:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Inc/GpioPin.h | 8 +++++++- Src/GpioPin.c | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Inc/GpioPin.h b/Inc/GpioPin.h index 821cc07..19f78da 100644 --- a/Inc/GpioPin.h +++ b/Inc/GpioPin.h @@ -15,13 +15,19 @@ #define GPIO_PIN_NOREVERSE false #define GPIO_PIN_REVERSE true +typedef enum +{ + GPIO_OPEN_DRAIN = 0, + GPIO_PUSH_PULL = 1 +} eType_PUSH_PULL_OPEN_DARIN; + tGpioPin vInitGpioPinPull( GPIO_InstanceType port, uint32_t pinMask, GPIO_PinDirectionType direction, bool reverse, GPIO_PinLevelType ePinLevel, - bool bPullEn, + eType_PUSH_PULL_OPEN_DARIN bPullEn, PORT_PullStatusType ePullSel ); diff --git a/Src/GpioPin.c b/Src/GpioPin.c index 7e6baf1..a020b31 100644 --- a/Src/GpioPin.c +++ b/Src/GpioPin.c @@ -9,7 +9,7 @@ tGpioPin vInitGpioPinPull( GPIO_PinDirectionType direction, bool reverse, GPIO_PinLevelType ePinLevel, - bool bPullEn, + eType_PUSH_PULL_OPEN_DARIN bPullEn, PORT_PullStatusType ePullSel ) { PORT_InitType tInitStruct = {0};