Tool/software:
Dear TI,
I was trying to read the GPIO PA25 pin which is configured as INPUT, but I see here when I give 3.3 Volt, I get register decimal value instead of HIGH or LOW.
my question is there any why to get pin value as HIGH or LOW instead of HIGH or LOW.
/** * @brief Set a group of GPIO pins * * @param[in] gpio Pointer to the register overlay for the peripheral * @param[in] pins Pins to set high. Bitwise OR of @ref DL_GPIO_PIN. */
__STATIC_INLINE void DL_GPIO_setPins(GPIO_Regs* gpio, uint32_t pins)
{
gpio->DOUTSET31_0 = pins;
}
__STATIC_INLINE uint32_t DL_GPIO_readPins(GPIO_Regs* gpio, uint32_t pins)
{
return (gpio->DIN31_0 & pins);
}
Best regards
thank you,
best regard