44 #include "sw/modules/types/src/types.h"
66 #define GPIO_BASE_ADDR (0x00006F80)
71 #define GPIO_GPMUX_CONFIG_BITS (3 << 0)
72 #define GPIO_GPMUX_NUMGPIOS_PER_REG 16
79 #define GPIO_GPxQSELy_GPIOx_BITS 3
83 #define GPIO_GPxQSELx_NUMGPIOS_PER_REG 16
88 #define GPIO_GPxCTRL_QUALPRDx_BITS 0xFF
92 #define GPIO_GPxCTRL_QUALPRDx_NUMBITS_PER_REG 8
494 extern GPIO_Handle
GPIO_init(
void *pMemory,
const size_t numBytes);
582 #endif // end of _GPIO_H_ definition
void GPIO_setQualification(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber, const GPIO_Qual_e qualification)
Sets the qualification for the specified general purpose I/O (GPIO)
Denotes a SPISIMOB function.
Denotes a general purpose function.
Denotes a SPISOMIB function.
Denotes a EQEP2I function.
Denotes a EQEP1A function.
Denotes a EPWM3A function.
Denotes a general purpose function.
Denotes a EPWM3B function.
Denotes a SPISOMIA function.
GPIO_Mode_e
Enumeration to define the general purpose I/O (GPIO) modes for each pin.
Denotes a COMP2OUT function.
Denotes a EPWM8B function.
Denotes a reserved function.
volatile uint32_t AIOCLEAR
Analog I/O Clear Register.
Denotes a MFSXA function.
bool GPIO_getData(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber)
Returns the data value present on a pin (either input or output)
Denotes a SPISTEA_NOT function.
Denotes a general purpose function.
Denotes a SPICLKB function.
Denotes a reserved function.
Denotes a reserved function.
Denotes a reserved function.
Denotes a EQEP2S function.
volatile uint32_t GPAQSEL1
GPIO A Qualifier Select 1 Register.
Denotes a general purpose function.
Denotes a EQEP2S function.
Denotes a reserved function.
Denotes a EQEP2A function.
Denotes a ECAP2 function.
Denotes a TZ3_NOT function.
Denotes a EPWM2B function.
Denotes a COMP1OUT function.
Denotes a general purpose function.
Denotes a general purpose function.
volatile uint16_t rsvd_5[2]
Reserved.
Denotes a general purpose function.
Denotes a SPICLKA function.
Denotes a general purpose function.
Denotes a ECAP1 function.
Denotes a general purpose function.
volatile uint16_t rsvd_8[5]
Reserved.
void GPIO_setHigh(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber)
Sets the specified general purpose I/O (GPIO) signal high.
Denotes a COMP2OUT function.
volatile uint32_t GPADIR
GPIO A Direction Register.
Denotes a EPWM7A function.
struct _GPIO_Obj_ GPIO_Obj
Defines the General Purpose I/O (GPIO) object.
volatile uint32_t GPASET
GPIO A Set Register.
Denotes a general purpose function.
Denotes an input direction.
Denotes a ECAP1 function.
volatile uint32_t GPBDIR
GPIO B Direction Register.
Denotes a EQEP1A function.
Denotes a SCITXDB function.
Denotes a general purpose function.
Denotes a reserved function.
Denotes a reserved function.
Denotes a reserved function.
Denotes a TZ1_NOT function.
Denotes a COMP3OUT function.
Denotes a general purpose function.
Denotes a SCITXDB function.
Denotes a general purpose function.
Denotes a general purpose function.
GPIO_Handle GPIO_init(void *pMemory, const size_t numBytes)
Initializes the general purpose I/O (GPIO) object handle.
Denotes a general purpose function.
Denotes a SPISOMIA function.
Denotes a general purpose function.
volatile uint32_t AIODIR
Analog, I/O Direction Register.
Denotes a general purpose function.
Denotes a pullup disabled.
Denotes a ECAP3 function.
volatile uint32_t AIODAT
Analog I/O Data Register.
Denotes a reserved function.
volatile uint16_t rsvd_6[4]
Reserved.
Denotes a general purpose function.
Denotes a general purpose function.
Denotes a reserved function.
void GPIO_setQualificationPeriod(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber, const uint_least8_t period)
Sets the qualification period for the specified general purpose I/O block (8 I/O's per block) ...
Denotes a general purpose function.
Denotes a EQEP2I function.
Denotes a TZ2_NOT function.
Denotes a SPISIMOA function.
Denotes a EPWM7A function.
Denotes a reserved function.
Denotes a reserved function.
Denotes a SCIRXDB function.
Denotes a ECAP2 function.
Denotes a EQEP1B function.
Denotes an output direction.
Denotes a TZ2_NOT function.
Denotes a EPWM6B function.
Denotes a ECAP1 function.
volatile uint32_t GPBQSEL2
GPIO B Qualifier Select 2 Register.
Denotes a SPICLKB function.
Denotes a reserved function.
Denotes a SCITXDA function.
Denotes a general purpose function.
Denotes a reserved function.
Denotes a general purpose function.
Denotes a reserved function.
Denotes a TZ2_NOT function.
Denotes a EQEP2B function.
Denotes a ADCSICAO_NOT function.
Denotes a reserved function.
Denotes input is asynchronous.
Denotes input is qualified with 6 samples.
Denotes a EPWM2A function.
Denotes a general purpose function.
Denotes a general purpose function.
GPIO_Direction_e
Enumeration to define the general purpose I/O (GPIO) directions.
volatile uint32_t GPBSET
GPIO B Set Register.
Denotes a general purpose function.
Denotes a SPISTEB_NOT function.
Denotes input is qualified with 3 samples.
Denotes a JTAG_TCK function.
Denotes a general purpose function.
Denotes a reserved function.
volatile uint32_t GPBCLEAR
GPIO B Clear Register.
Denotes a SPISIMOB function.
Denotes a SCIRXDB function.
Denotes a SCIRXDA function.
volatile uint32_t GPAPUD
GPIO A Pull Up Disable Register.
volatile uint32_t GPACTRL
GPIO A Control Register.
Denotes a SCITXDA function.
Denotes a general purpose function.
Denotes a general purpose function.
Denotes a general purpose function.
volatile uint32_t GPIOLPMSEL
GPIO Low Power Mode Wakeup Select Register.
volatile uint32_t GPBTOGGLE
GPIO B Toggle Register.
Denotes a general purpose function.
Denotes a EPWM8A function.
Denotes a general purpose function.
Denotes a general purpose function.
Denotes a general purpose function.
GPIO_Pullup_e
Enumeration to define the general purpose I/O (GPIO) pullups.
Denotes a EQEP2I function.
bool GPIO_read(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber)
Reads the specified general purpose I/O (GPIO)
Denotes a CANTXA function.
Defines the General Purpose I/O (GPIO) object.
Denotes a EPWM6A function.
Denotes a SPISTEA_NOT function.
Denotes a SCITXDB function.
Denotes a EPWM1A function.
Denotes a reserved function.
Denotes a reserved function.
Denotes a EPWMSYNCI function.
Denotes a general purpose function.
volatile uint32_t AIOTOGGLE
Analog I/O Toggle Register.
volatile uint32_t GPBQSEL1
GPIO B Qualifier Select 1 Register.
Denotes a EQEP2S function.
void GPIO_setPullup(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber, const GPIO_Pullup_e pullup)
Sets the general purpose I/O (GPIO) pullup disable.
void GPIO_setDirection(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber, const GPIO_Direction_e direction)
Sets the general purpose I/O (GPIO) signal direction.
Denotes a EPWM5A function.
Denotes a EQEP1S function.
volatile uint32_t GPBDAT
GPIO B Data Register.
volatile uint32_t GPBMUX1
GPIO B MUX 1 Register.
Denotes a SCIRXDB function.
Denotes a EQEP1I function.
Denotes a TZ2_NOT function.
Denotes a reserved function.
Denotes a COMP1OUT function.
Denotes a reserved function.
Denotes a reserved function.
Denotes a general purpose function.
Denotes a SPISTEB function.
Denotes a SCITXDB function.
Denotes a SPISOMIA function.
Denotes a reserved function.
Denotes a reserved function.
Denotes a TZ3_NOT function.
void GPIO_setLow(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber)
Sets the specified general purpose I/O (GPIO) signal low.
Denotes a TZ2_NOT function.
Denotes a ECAP1 function.
uint16_t GPIO_getPortData(GPIO_Handle gpioHandle, const GPIO_Port_e gpioPort)
Returns the data value present on a GPIO port.
volatile uint16_t rsvd_4[24]
Reserved.
Denotes a XCLKOUT function.
Denotes a EPWM7B function.
Denotes a MFSXA function.
volatile uint32_t GPBCTRL
GPIO B Control Register.
Denotes a TZ1_NOT function.
Contains public interface to various functions related to the central processing unit (CPU) object...
Denotes a EQEP1I function.
Denotes a EPWMSYNCI function.
Denotes a general purpose function.
Denotes a general purpose function.
volatile uint32_t GPAMUX1
GPIO A MUX 1 Register.
Denotes a SCIRXDA function.
Denotes a COMP1OUT function.
Denotes a general purpose function.
Denotes a TZ3_NOT function.
void GPIO_setPortData(GPIO_Handle gpioHandle, const GPIO_Port_e gpioPort, const uint16_t data)
Sets data output on a given GPIO port.
Denotes a EPWM7A function.
Denotes a general purpose function.
Denotes a HRCAP1 function.
volatile uint16_t rsvd_7[8]
Reserved.
Denotes a CANRXA function.
Denotes a general purpose function.
Denotes a general purpose function.
volatile uint32_t GPATOGGLE
GPIO A Toggle Register.
Denotes a EQEP1S function.
Denotes input will be synchronized to SYSCLK.
Denotes a reserved function.
Denotes a EQEP2B function.
void GPIO_toggle(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber)
Toggles the specified general purpose I/O (GPIO) signal.
Denotes a EPWM8A function.
Denotes a HRCAP2 function.
CPU_ExtIntNumber_e
Enumeration to define the external interrupt numbers.
Denotes a ECAP2 function.
volatile uint32_t GPBMUX2
GPIO B MUX 2 Register.
Denotes a pullup enabled.
Denotes a SCITXDB function.
Denotes a EPWMSYNCO function.
Denotes a reserved function.
struct _GPIO_Obj_ * GPIO_Handle
Defines the general purpose I/O (GPIO) handle.
Denotes a EQEP2A function.
volatile uint32_t GPBPUD
GPIO B Pull Up Disable Register.
volatile uint32_t GPACLEAR
GPIO A Clear Register.
Denotes a reserved function.
Denotes a general purpose function.
Denotes a general purpose function.
Denotes a HRCAP2 function.
Denotes a general purpose function.
GPIO_Qual_e
Enumeration to define the general purpose I/O (GPIO) qualification.
Denotes a EPWM4A function.
volatile uint32_t GPAMUX2
GPIO A MUX 2 Register.
Denotes a EPWMSYNCO function.
Denotes a SCIRXDB function.
Denotes a HRCAP3 function.
Denotes a JTAG_TMS function.
Denotes a MCLKRA function.
Denotes a general purpose function.
Denotes a general purpose function.
volatile uint32_t AIOSET
Analog I/O Data Set Register.
volatile uint32_t GPADAT
GPIO A Data Register.
volatile uint32_t GPAQSEL2
GPIO A Qualifier Select 2 Register.
void GPIO_setMode(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber, const GPIO_Mode_e mode)
Sets the mode for the specified general purpose I/O (GPIO) signal.
Denotes a JTAG_TDO function.
Denotes a ECAP3 function.
Denotes a general purpose function.
Denotes a MCLKXA function.
Denotes a COMP2OUT function.
Denotes a SPISIMOA function.
Denotes a MFSRA function.
Denotes a reserved function.
Denotes a EPWM5B function.
Denotes a reserved function.
Denotes a general purpose function.
Denotes a SCITXDB function.
Denotes a EQEP1B function.
Denotes a general purpose function.
Denotes a COMP2OUT function.
Denotes a EPWM4B function.
Denotes a general purpose function.
Denotes a SPICLKA function.
Denotes a MCLKXA function.
Denotes a reserved function.
Denotes a TZ1_NOT function.
void GPIO_lpmSelect(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber)
Selects a gpio pin to wake up device from STANDBY and HALT LPM.
Denotes a SPISOMIA function.
Denotes a ADCSOCBO_NOT function.
void GPIO_setExtInt(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber, const CPU_ExtIntNumber_e intNumber)
Sets the general purpose I/O (GPIO) external interrupt number.
volatile uint16_t GPIOXINTnSEL[3]
XINT1-3 Source Select Registers.
GPIO_Number_e
Enumeration to define the general purpose I/O (GPIO) numbers.
Denotes a reserved function.
Denotes a SCIRXDB function.
Denotes a SPISOMIB function.
Denotes a ADCSOCBO_NOT function.
GPIO_Port_e
Enumeration to define the general purpose I/O (GPIO) ports.
Denotes a TZ3_NOT function.
volatile uint16_t rsvd_1[2]
Reserved.
Denotes a EPWM1B function.
Denotes a JTAG_TDI function.
Denotes a SCIRXDB function.
volatile uint32_t AIOMUX1
Analog, I/O Mux 1 Register.
Denotes a ADCSOCAO_NOT function.
Denotes a EPWM7B function.
Denotes a HRCAP4 function.