CF2 UART2 RX to recieve

Post here to get support
Post Reply
knmcguire
Beginner
Posts: 7
Joined: Fri Jul 06, 2018 11:13 am

CF2 UART2 RX to recieve

Post by knmcguire » Mon Sep 03, 2018 12:59 pm

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.

Post Reply