GpioPin_Flagchip_FC7240/Inc/GpioPin.h

32 lines
636 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
tGpioPin vInitGpioPinPull(
GPIO_InstanceType port,
uint32_t pinMask,
GPIO_PinDirectionType direction,
bool reverse,
GPIO_PinLevelType gpio_pull
);
void GpioPinSet(tGpioPin *pin, bool value);
bool GpioPinGet(tGpioPin *pin);
#endif //HVAC_M7_GPIOPIN_H