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};