STM32 USART register
Posted: Wed Nov 01, 2023 11:14 am
I'm trying to use a library written for Atmel chip.
When I try to build it on platformio, it says UDR0 was not declared. I'm using STM32L432KC board. I want to port that code for STM32.
Code: Select all
commandStartNewFrame(UART_PIXEL_FORMAT_RGB565);
for (uint16_t j=0; j<lineCount; j++) {
for (uint16_t i=0; i<lineLength; i++) {
waitForPreviousUartByteToBeSent();
UDR0 = formatRgbPixelByteH(colorH);
waitForPreviousUartByteToBeSent();
UDR0 = formatRgbPixelByteL(colorL);
}
}
}