Hello Lukas Valda:
Can you clarify what version of KSDK you have and also the SDK API manual version?
I searched in KSDV v1.2 and indeed the HAL APIs for the TX/RX inversion bits are not present, but the APIs are not mentioned in the manual either. I am not sure if these APIs were removed or omitted by mistake, but I will ask the KSDK developers.
In the meantime if you need that functionality you can implement the APIs and rebuild the KSDK platform library. The code below should work for KSDK v1.2:
static inline void UART_HAL_SetTxInversionCmd(UART_Type * base, bool enable)
{
UART_BWR_C3_TXINV(base, enable);
}
static inline void UART_HAL_SetRxInversionCmd(UART_Type * base, bool enable)
{
UART_BWR_S2_RXINV(base, enable);
}
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------