Hello,
I would like to use the GIO library function [ gioToggleBit ] to toggle the LED's 10 and 11 of the DRV8301-RM48-Kit.
But I can't identify the GIO terminals capable of generating an interrupt.
I would like to know if this is possible.
Here is my function:
/** @fn void gioToggleBit(gioPORT_t *port, uint32_t bit)
* @brief Write Bit
* @param[in] port pointer to GIO port:
* - gioPORTA: PortA pointer
* - gioPORTB: PortB pointer
* @param[in] bit number 0-7 that specifies the bit to be written to.
* - 0: LSB
* - 7: MSB
*
* Toggle a value to the specified pin of the given GIO port
*/
void gioToggleBit(gioPORT_t *port, uint32_t bit)
{
/* USER CODE BEGIN (10) */
/* USER CODE END */
if ((port->DIN & (1 << bit)) != 0)
{
port->DCLR = 1 << bit;
}
else
{
port->DSET = 1 << bit;
}
}
Kind Regards