I’m trying to write an application where I need communication over 2 UARTs (one to receive messages from MIDI or other Daisies, and one to get messages from a Raspberry Pi Pico handling connection to other peripherals).
In libDaisy it looks like UartHandler in uart.h only works with USART1. I’ve looked at modifying it to allow uhandle.huart1.Instance to take other values than USART1, but then realized that there’s a lot of other code in there such as in HAL_UART_RxCpltCallback() and HAL_UART_MspInit() that appear to only be implemented to handle USART1.
Looks like quite a lot of scary looking stuff in there such as what DMA stream to use!
Is there a way of getting another UART working with libDaisy?