Обновление
This commit is contained in:
parent
662e0b43a3
commit
82beb2ab69
|
|
@ -15,13 +15,19 @@
|
||||||
#define GPIO_PIN_NOREVERSE false
|
#define GPIO_PIN_NOREVERSE false
|
||||||
#define GPIO_PIN_REVERSE true
|
#define GPIO_PIN_REVERSE true
|
||||||
|
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
GPIO_OPEN_DRAIN = 0,
|
||||||
|
GPIO_PUSH_PULL = 1
|
||||||
|
} eType_PUSH_PULL_OPEN_DARIN;
|
||||||
|
|
||||||
tGpioPin vInitGpioPinPull(
|
tGpioPin vInitGpioPinPull(
|
||||||
GPIO_InstanceType port,
|
GPIO_InstanceType port,
|
||||||
uint32_t pinMask,
|
uint32_t pinMask,
|
||||||
GPIO_PinDirectionType direction,
|
GPIO_PinDirectionType direction,
|
||||||
bool reverse,
|
bool reverse,
|
||||||
GPIO_PinLevelType ePinLevel,
|
GPIO_PinLevelType ePinLevel,
|
||||||
bool bPullEn,
|
eType_PUSH_PULL_OPEN_DARIN bPullEn,
|
||||||
PORT_PullStatusType ePullSel
|
PORT_PullStatusType ePullSel
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ tGpioPin vInitGpioPinPull(
|
||||||
GPIO_PinDirectionType direction,
|
GPIO_PinDirectionType direction,
|
||||||
bool reverse,
|
bool reverse,
|
||||||
GPIO_PinLevelType ePinLevel,
|
GPIO_PinLevelType ePinLevel,
|
||||||
bool bPullEn,
|
eType_PUSH_PULL_OPEN_DARIN bPullEn,
|
||||||
PORT_PullStatusType ePullSel
|
PORT_PullStatusType ePullSel
|
||||||
) {
|
) {
|
||||||
PORT_InitType tInitStruct = {0};
|
PORT_InitType tInitStruct = {0};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue