Hi,
I want to use the LPUART with the RTS signal, which can be configured in LPUART0_MODIR register.
But when using KDSK 2.0.0, I can not find any information how to configure.
Can anyone explain, how to configure this register?
Thanks!
解決済! 解決策の投稿を見る。
Sebastian,
The MODIR register support is not provided in the SDK 2.0 LPUART driver. If you're interested in adding this capability, you can augment the current LPUART_Init functionality with the following.
Available RTS flags, choose those required for your application:
LPUART_MODIR_TXRTSE_MASK
LPUART_MODIR_TXRTSPOL_MASK
LPUART_MODIR_RXRTSE_MASK
example code:
base->MODIR = LPUART_MODIR_TXRTSE_MASK | LPUART_MODIR_TXRTSPOL_MASK;
Jason
Hi Jason,
thanks for your answer! Your example code was the hint I needed!
Thanks!
Sebastian,
The MODIR register support is not provided in the SDK 2.0 LPUART driver. If you're interested in adding this capability, you can augment the current LPUART_Init functionality with the following.
Available RTS flags, choose those required for your application:
LPUART_MODIR_TXRTSE_MASK
LPUART_MODIR_TXRTSPOL_MASK
LPUART_MODIR_RXRTSE_MASK
example code:
base->MODIR = LPUART_MODIR_TXRTSE_MASK | LPUART_MODIR_TXRTSPOL_MASK;
Jason