2020-05-29 05:26 PM
I want to use scanf function for usart with dma please help me for that.
I need to receive a string through scanf but the string size will differ each time .
2020-05-29 06:12 PM
You'd need to implement retargeting routines to perform the getch() type functionality.
You'd still have to do all the buffering and ownership of the USART+DMA, and it might be more efficient for you to parse the stream and use sscanf(), strtok(), atoi(), atod(), etc.