#include "inc/hw_types.h"
#include "driverlib/5xx_6xx/debug.h"
#include "driverlib/5xx_6xx/gpio.h"
#include "deprecated/CCS/msp430xgeneric.h"
Functions | |
void | GPIO_setAsOutputPin (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins) |
void | GPIO_setAsInputPin (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins) |
void | GPIO_setAsPeripheralModuleFunctionOutputPin (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins) |
void | GPIO_setAsPeripheralModuleFunctionInputPin (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins) |
void | GPIO_setOutputHighOnPin (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins) |
void | GPIO_setOutputLowOnPin (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins) |
void | GPIO_toggleOutputOnPin (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins) |
void | GPIO_setAsInputPinWithPullDownresistor (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins) |
void | GPIO_setAsInputPinWithPullUpresistor (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins) |
unsigned short | GPIO_getInputPinValue (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins) |
void | GPIO_enableInterrupt (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins) |
void | GPIO_disableInterrupt (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins) |
void | GPIO_disbleInterrupt (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins) |
unsigned int | GPIO_getInterruptStatus (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins) |
void | GPIO_clearInterruptFlag (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins) |
void | GPIO_interruptEdgeSelect (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins, unsigned char edgeSelect) |
void | GPIO_setDriveStrength (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins, unsigned char driveStrength) |
void GPIO_setAsOutputPin | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins | ||
) |
This function configures the selected Pin as output pin
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4, GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7, GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15 Modified registers are PxSEL and PxDIR. |
References ASSERT, GPIO_PIN0, GPIO_PIN1, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PORT_P1, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4, GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7, GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ, HWREG, and HWREGB.
void GPIO_setAsInputPin | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins | ||
) |
This function configures the selected Pin as input pin
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4, GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7, GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15 Modified registers are PxSEL, PxREN and PxDIR. |
References ASSERT, GPIO_PIN0, GPIO_PIN1, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PORT_P1, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4, GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7, GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ, HWREG, and HWREGB.
void GPIO_setAsPeripheralModuleFunctionOutputPin | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins | ||
) |
This function configures the peripheral module function in output direction for the selected pin.
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4,GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7,GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7,GPIO_PIN8,GPIO_PIN9,GPIO_PIN10, GPIO_PIN11,GPIO_PIN12,GPIO_PIN13,GPIO_PIN14, GPIO_PIN15 Modified registers are PxSEL and PxDIR. |
References ASSERT, GPIO_PIN0, GPIO_PIN1, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PORT_P1, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4, GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7, GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ, HWREG, and HWREGB.
void GPIO_setAsPeripheralModuleFunctionInputPin | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins | ||
) |
This function configures the peripheral module function in input direction for the selected pin.
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4,GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7,GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7,GPIO_PIN8,GPIO_PIN9,GPIO_PIN10, GPIO_PIN11,GPIO_PIN12,GPIO_PIN13,GPIO_PIN14, GPIO_PIN15 Modified registers are PxSEL and PxDIR. |
References ASSERT, GPIO_PIN0, GPIO_PIN1, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PORT_P1, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4, GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7, GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ, HWREG, and HWREGB.
void GPIO_setOutputHighOnPin | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins | ||
) |
This function sets output HIGH on the selected Pin
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4,GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7,GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7,GPIO_PIN8,GPIO_PIN9,GPIO_PIN10, GPIO_PIN11,GPIO_PIN12,GPIO_PIN13,GPIO_PIN14, GPIO_PIN15 Modified registers are PxOUT. |
References ASSERT, GPIO_PIN0, GPIO_PIN1, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PORT_P1, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4, GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7, GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ, HWREG, and HWREGB.
void GPIO_setOutputLowOnPin | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins | ||
) |
This function sets output LOW on the selected Pin
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4,GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7,GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7,GPIO_PIN8,GPIO_PIN9,GPIO_PIN10, GPIO_PIN11,GPIO_PIN12,GPIO_PIN13,GPIO_PIN14, GPIO_PIN15 Modified registers are PxOUT. |
References ASSERT, GPIO_PIN0, GPIO_PIN1, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PORT_P1, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4, GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7, GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ, HWREG, and HWREGB.
void GPIO_toggleOutputOnPin | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins | ||
) |
This function toggles the output on the selected Pin
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4,GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7,GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7,GPIO_PIN8,GPIO_PIN9,GPIO_PIN10, GPIO_PIN11,GPIO_PIN12,GPIO_PIN13,GPIO_PIN14, GPIO_PIN15 Modified registers are PxOUT. |
References ASSERT, GPIO_PIN0, GPIO_PIN1, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PORT_P1, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4, GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7, GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ, HWREG, and HWREGB.
void GPIO_setAsInputPinWithPullDownresistor | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins | ||
) |
This function sets the selected Pin in input Mode wuth Pull Down resistor
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4,GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7,GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7,GPIO_PIN8,GPIO_PIN9,GPIO_PIN10, GPIO_PIN11,GPIO_PIN12,GPIO_PIN13,GPIO_PIN14, GPIO_PIN15 Modified registers are PxREN, PxOUT and PxDIR. |
References ASSERT, GPIO_PIN0, GPIO_PIN1, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PORT_P1, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4, GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7, GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ, HWREG, and HWREGB.
void GPIO_setAsInputPinWithPullUpresistor | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins | ||
) |
This function sets the selected Pin in input Mode wuth Pull Up resistor
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4,GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7,GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7,GPIO_PIN8,GPIO_PIN9,GPIO_PIN10, GPIO_PIN11,GPIO_PIN12,GPIO_PIN13,GPIO_PIN14, GPIO_PIN15 Modified registers are PxREN, PxOUT and PxDIR. |
References ASSERT, GPIO_PIN0, GPIO_PIN1, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PORT_P1, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4, GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7, GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ, HWREG, and HWREGB.
unsigned short GPIO_getInputPinValue | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins | ||
) |
This function gets the input value on the selected pin
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4,GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7,GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7,GPIO_PIN8,GPIO_PIN9,GPIO_PIN10, GPIO_PIN11,GPIO_PIN12,GPIO_PIN13,GPIO_PIN14, GPIO_PIN15 Modified registers are PxIN. |
References ASSERT, GPIO_INPUT_PIN_HIGH, GPIO_INPUT_PIN_LOW, GPIO_PIN0, GPIO_PIN1, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PORT_P1, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4, GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7, GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ, HWREG, and HWREGB.
void GPIO_enableInterrupt | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins | ||
) |
This function enables the port interrupt on the selected pin. Note that only Port 1,2, A have this capability
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_PA |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7,GPIO_PIN8,GPIO_PIN9,GPIO_PIN10, GPIO_PIN11,GPIO_PIN12,GPIO_PIN13,GPIO_PIN14, GPIO_PIN15 Modified registers are PxIE. |
References ASSERT, GPIO_PIN0, GPIO_PIN1, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_PA, HWREG, and HWREGB.
void GPIO_disableInterrupt | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins | ||
) |
This function disables the port interrupt on the selected pin. Note that only Port 1,2, A have this capability
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_PA |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7,GPIO_PIN8,GPIO_PIN9,GPIO_PIN10, GPIO_PIN11,GPIO_PIN12,GPIO_PIN13,GPIO_PIN14, GPIO_PIN15 Modified registers are PxIE. |
References ASSERT, GPIO_PIN0, GPIO_PIN1, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_PA, HWREG, and HWREGB.
Referenced by GPIO_disbleInterrupt().
void GPIO_disbleInterrupt | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins | ||
) |
DEPRECATED - Spelling Error Fixed This function disables the port interrupt on the selected pin. Note that only Port 1,2, A have this capability
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_PA |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7,GPIO_PIN8,GPIO_PIN9,GPIO_PIN10, GPIO_PIN11,GPIO_PIN12,GPIO_PIN13,GPIO_PIN14, GPIO_PIN15 Modified registers are PxIE. |
References GPIO_disableInterrupt().
unsigned int GPIO_getInterruptStatus | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins | ||
) |
This function gets the interrupt status of the selected pin. Note that only Port 1,2, A have this capability
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_PA |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7,GPIO_PIN8,GPIO_PIN9,GPIO_PIN10, GPIO_PIN11,GPIO_PIN12,GPIO_PIN13,GPIO_PIN14, GPIO_PIN15 Modified registers are PxIFG. |
References ASSERT, GPIO_PIN0, GPIO_PIN1, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_PA, HWREG, and HWREGB.
void GPIO_clearInterruptFlag | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins | ||
) |
This function clears the interrupt flag on the selected pin. Note that only Port 1,2, A have this capability
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_PA |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7,GPIO_PIN8,GPIO_PIN9,GPIO_PIN10, GPIO_PIN11,GPIO_PIN12,GPIO_PIN13,GPIO_PIN14, GPIO_PIN15 Modified registers are PxIFG. |
References ASSERT, GPIO_PIN0, GPIO_PIN1, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_PA, HWREG, and HWREGB.
void GPIO_interruptEdgeSelect | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins, | ||
unsigned char | edgeSelect | ||
) |
This function selects on what edge the port interrupt flag should be set for a transition Note that only Port 1,2, A have this capability
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_PA, GPIO_PORT_PB |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7 |
edgeSelect | specifies what tranistion sets the interrupt flag Valid values are GPIO_HIGH_TO_LOW_TRANSITION, GPIO_LOW_TO_HIGH_TRANSITION Modified registers are PxIES. |
References ASSERT, GPIO_HIGH_TO_LOW_TRANSITION, GPIO_LOW_TO_HIGH_TRANSITION, GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PORT_P1, GPIO_PORT_P2, and HWREGB.
void GPIO_setDriveStrength | ( | unsigned int | baseAddress, |
unsigned char | selectedPort, | ||
unsigned int | selectedPins, | ||
unsigned char | driveStrength | ||
) |
This function sets the drive strength for the selected port pin.
baseAddress | is the base address of the GPIO Port Register |
selectedPort | is the selected port. Valid values are GPIO_PORT_P1, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4, GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7, GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ |
selectedPins | is the specified pin in the selected port. Valid values are GPIO_PIN0, GPIO_PIN1, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15 |
driveStrength | specifies what tranistion sets the interrupt flag Valid values are GPIO_REDUCED_OUTPUT_DRIVE_STRENGTH, GPIO_FULL_OUTPUT_DRIVE_STRENGTH Modified registers are PxIES. |
References ASSERT, GPIO_FULL_OUTPUT_DRIVE_STRENGTH, GPIO_PIN0, GPIO_PIN1, GPIO_PIN10, GPIO_PIN11, GPIO_PIN12, GPIO_PIN13, GPIO_PIN14, GPIO_PIN15, GPIO_PIN2, GPIO_PIN3, GPIO_PIN4, GPIO_PIN5, GPIO_PIN6, GPIO_PIN7, GPIO_PIN8, GPIO_PIN9, GPIO_PORT_P1, GPIO_PORT_P10, GPIO_PORT_P11, GPIO_PORT_P2, GPIO_PORT_P3, GPIO_PORT_P4, GPIO_PORT_P5, GPIO_PORT_P6, GPIO_PORT_P7, GPIO_PORT_P8, GPIO_PORT_P9, GPIO_PORT_PA, GPIO_PORT_PB, GPIO_PORT_PC, GPIO_PORT_PD, GPIO_PORT_PE, GPIO_PORT_PF, GPIO_PORT_PJ, GPIO_REDUCED_OUTPUT_DRIVE_STRENGTH, and HWREGB.