40 lines
846 B
C
40 lines
846 B
C
//
|
|
// Created by cfif on 16.09.22.
|
|
//
|
|
|
|
#ifndef HVAC_M7_GPIOPIN_H
|
|
#define HVAC_M7_GPIOPIN_H
|
|
|
|
#include "GpioPinInterface.h"
|
|
#include CMSIS_device_header
|
|
#include "fc7xxx_driver_pcc.h"
|
|
#include "fc7xxx_driver_port.h"
|
|
#include "fc7xxx_driver_gpio.h"
|
|
#include "fc7xxx_driver_scg.h"
|
|
|
|
#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,
|
|
eType_PUSH_PULL_OPEN_DARIN bPullEn,
|
|
PORT_PullStatusType ePullSel
|
|
);
|
|
|
|
|
|
void GpioPinSet(tGpioPin *pin, bool value);
|
|
bool GpioPinGet(tGpioPin *pin);
|
|
void GpioPinToggle(tGpioPin *pin);
|
|
|
|
#endif //HVAC_M7_GPIOPIN_H
|