77 *pRegisterAddress |= (uint32_t)((uint32_t)1u << pin);
84 *pRegisterAddress &= ~(uint32_t)((uint32_t)1u << pin);
87 extern void IO_PinSet(
volatile uint32_t *pRegisterAddress, uint32_t pin) {
91 *pRegisterAddress |= (uint32_t)((uint32_t)1u << pin);
94 extern void IO_PinReset(
volatile uint32_t *pRegisterAddress, uint32_t pin) {
98 *pRegisterAddress &= ~(uint32_t)((uint32_t)1u << pin);
106 uint8_t pinState = (uint8_t)((*pRegisterAddress & ((uint32_t)1u << (pin))) >> pin);
109 if (pinState == 0u) {
#define FAS_ASSERT(x)
Assertion macro that asserts that x is true.
#define NULL_PTR
Null pointer.
void IO_SetPinDirectionToOutput(volatile uint32_t *pRegisterAddress, uint32_t pin)
Set pin to output by writing in pin direction register.
void IO_SetPinDirectionToInput(volatile uint32_t *pRegisterAddress, uint32_t pin)
Set pin to input by writing in pin direction register.
void IO_PinSet(volatile uint32_t *pRegisterAddress, uint32_t pin)
Set pin by writing in pin output register.
void IO_PinReset(volatile uint32_t *pRegisterAddress, uint32_t pin)
Reset pin by writing in pin output register.
STD_PIN_STATE_e IO_PinGet(const volatile uint32_t *pRegisterAddress, uint32_t pin)
Get pin state.
Header for the driver for the IO module.
Headers for the driver for the MCU module.
#define LARGEST_PIN_NUMBER
largest pin number that exists in TMS570LC4357