26 lines
1006 B
C
26 lines
1006 B
C
//
|
|
// Created by cfif on 25.10.22.
|
|
//
|
|
|
|
#ifndef GPIOPIN_GPIOPIN_H
|
|
#define GPIOPIN_GPIOPIN_H
|
|
|
|
#include "GpioPinInterface.h"
|
|
#include "n32g45x.h"
|
|
|
|
#define GPIO_PIN_NOREVERSE false
|
|
#define GPIO_PIN_REVERSE true
|
|
|
|
void GpioPin_InitRccConfigOnly(GPIO_Module *port, uint32_t pinMask, GPIO_ModeType mode, GPIO_SpeedType speed, uint32_t clock);
|
|
#define GpioPin_InitConfigOnly(PORT, MASK, MODE, SPEED) \
|
|
GpioPin_InitRccConfigOnly(PORT, MASK, MODE, SPEED, RCC_APB2_PERIPH_##PORT)
|
|
|
|
tGpioPin GpioPin_InitRcc(GPIO_Module *port, uint32_t pinMask, GPIO_ModeType mode, GPIO_SpeedType speed, bool reverse, uint32_t clock);
|
|
#define GpioPin_Init(PORT, MASK, MODE, SPEED, REVERSE) \
|
|
GpioPin_InitRcc(PORT, MASK, MODE, SPEED, REVERSE, RCC_APB2_PERIPH_##PORT)
|
|
|
|
//tGpioPin InitGpioPin(GPIO_Module *port, uint32_t pinMask, GPIO_ModeType mode, GPIO_SpeedType speed, bool reverse);
|
|
//void InitGpioPinConfigOnly(GPIO_Module *port, uint32_t pinMask, GPIO_ModeType mode, GPIO_SpeedType speed);
|
|
|
|
#endif //UVEOS_DEMO_ON_NIIET_MCU_GPIOPIN_H
|