1 Reply Latest reply on Aug 26, 2019 1:36 AM by OwenZ_26

    How to get 20706 PUART TX FIFO in new SDK?

    ClCh_1720121

      Dear Sir,

       

      How to get the result whether the wiced_hal_puart_synchronous_write(UINT8* buffer,UINT32 length) finished or not ? Is there any method ?

      How to get 20706 PUART TX FIFO in new SDK ? There is no API for PUART TX FIFO in the new SDK.

      Best Regards,

      Cloud Chen.

        • 1. Re: How to get 20706 PUART TX FIFO in new SDK?
          OwenZ_26

          Please use the following function to check the tx fifo:

           

          enum

          {

              P_UART_LSR_TX_FIFO_NOT_EMPTY                   = 0x0004, //'0':Data NOT available, '1':Data available

              P_UART_LSR_TX_IDLE                             = 0x0008,

              P_UART_LSR_END_DELIMETER_NOT_DONE_MASK         = 0x0010

          };

           

          #define dc_ptu_uart2_lsr_adr                           0x00352224       

          #define P_UART_LINE_STATUS_ADDR                         dc_ptu_uart2_lsr_adr

          #define P_UART_TX_FIFO_IS_EMPTY()    ( ( REG32(P_UART_LINE_STATUS_ADDR) & ( P_UART_LSR_TX_FIFO_NOT_EMPTY | P_UART_LSR_TX_IDLE ) ) == P_UART_LSR_TX_IDLE )

          1 of 1 people found this helpful