This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

APP_UART_FIFO_INIT?

hi, i am using the nrf51422 and trying the UART example ( in order to connect the nrf51422 and a stm32f4 using serial connection) what i didn't understand is what does the function APP_UART_FIFO_INIT do? and what does it mean by " using a FIFO together with UART"? (mentionned in the comment)

Parents
  • Depending on you IC revision, there is an internal hardware FIFO for the UART peripheral (4 or 6 bytes).

    1. You can use the UART without software FIFO by processing the received byte in the ISR context;
    2. Or you can use a software FIFO (see the FIFO API here) to copy the byte from the ISR context and processing them in the main application context, which is a good practice.

    I recommend you to use the FIFO version of the UART driver, especially if you use HWFC between the M4 and M0.

Reply
  • Depending on you IC revision, there is an internal hardware FIFO for the UART peripheral (4 or 6 bytes).

    1. You can use the UART without software FIFO by processing the received byte in the ISR context;
    2. Or you can use a software FIFO (see the FIFO API here) to copy the byte from the ISR context and processing them in the main application context, which is a good practice.

    I recommend you to use the FIFO version of the UART driver, especially if you use HWFC between the M4 and M0.

Children
No Data
Related