74 *pRegisterAddress |= (uint32_t)((uint32_t)1u << pin);
81 *pRegisterAddress &= ~(uint32_t)((uint32_t)1u << pin);
84 extern void IO_PinSet(
volatile uint32_t *pRegisterAddress, uint32_t pin) {
88 *pRegisterAddress |= (uint32_t)((uint32_t)1u << pin);
91 extern void IO_PinReset(
volatile uint32_t *pRegisterAddress, uint32_t pin) {
95 *pRegisterAddress &= ~(uint32_t)((uint32_t)1u << pin);
103 uint8_t pinState = (uint8_t)((*pRegisterAddress & ((uint32_t)1u << (pin))) >> pin);
106 if (0u == pinState) {
#define FAS_ASSERT(x)
Assertion macro that asserts that x is true.
#define NULL_PTR
Null pointer.
enum STD_PIN_STATE STD_PIN_STATE_e
#define LARGEST_PIN_NUMBER
largest pin number that exists in TMS570LC4357
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.