Page 1 of 1

CF2 UART2 RX to recieve

Posted: Mon Sep 03, 2018 12:59 pm
by kimberly
Hi all,

I am currently working on my own expansion deck, where I would like to use both UART1 and UART2 on the CrazyFlie 2.0.

I noticed in the code in the current master, that the driver for UART1 (uart1.c) contains functions for both TX and RX ( uart1GetDataWithTimout(), uart1SendData(), uart1Putchar(), uart1Getchar()). However, UART2 (uart2.c) only contains functions for TX, so only to transmit data (only uart2SendData(), uart2Putchar()).

For my ends, I would like to use the RX on both uart1 and uart2. Would this still be possible with duplicating the RX functions of UART1 or is the RX for UART2 purposed for something else?

Thanks in advance.

Re: CF2 UART2 RX to recieve

Posted: Thu Jan 31, 2019 9:38 am
by sstroobants
I just noticed that I asked exactly the same question in another topic (Developer Questions). Did you actually manage to get the UART2 port to receive data?