Click here to Skip to main content
15,795,398 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: code analysis Pin
Member 1507028615-Feb-21 23:57
Member 1507028615-Feb-21 23:57 
AnswerRe: code analysis Pin
Greg Utas15-Feb-21 1:52
mveGreg Utas15-Feb-21 1:52 
GeneralRe: code analysis Pin
Member 1507028616-Feb-21 0:02
Member 1507028616-Feb-21 0:02 
Questioncallbacks in c Pin
Member 1506971810-Feb-21 6:16
Member 1506971810-Feb-21 6:16 
AnswerRe: callbacks in c Pin
Greg Utas10-Feb-21 6:34
mveGreg Utas10-Feb-21 6:34 
AnswerRe: callbacks in c Pin
k505410-Feb-21 7:35
mvek505410-Feb-21 7:35 
QuestionFunction similar to printf for software UART, without the need for a large temporary buffer? Pin
arnold_w8-Feb-21 12:20
arnold_w8-Feb-21 12:20 
AnswerRe: Function similar to printf for software UART, without the need for a large temporary buffer? Pin
Mircea Neacsu8-Feb-21 13:00
Mircea Neacsu8-Feb-21 13:00 
Quote:
Does anybody know how I can achieve this in the easiest way possible?

Not sure if easiest but one common way of doing it is to have printf call a putc-type function to send out each succesive character. In your case, the "putc" function would be the UART output function.

Quote:
Is the source code for printf available somewhere for public use so I can modify it to fit my needs?

Plenty of those. One I've used before in an embedded environment is for Rabbit microcontrollers. You can find the relevant code here: DCRabbit_10/STDIO.LIB at master · digidotcom/DCRabbit_10 · GitHub[^]
Mircea

GeneralRe: Function similar to printf for software UART, without the need for a large temporary buffer? Pin
arnold_w9-Feb-21 8:39
arnold_w9-Feb-21 8:39 
GeneralRe: Function similar to printf for software UART, without the need for a large temporary buffer? Pin
Mircea Neacsu9-Feb-21 9:22
Mircea Neacsu9-Feb-21 9:22 
AnswerRe: Function similar to printf for software UART, without the need for a large temporary buffer? Pin
CPallini8-Feb-21 21:11
mveCPallini8-Feb-21 21:11 
GeneralRe: Function similar to printf for software UART, without the need for a large temporary buffer? Pin
arnold_w9-Feb-21 9:04
arnold_w9-Feb-21 9:04 
GeneralRe: Function similar to printf for software UART, without the need for a large temporary buffer? Pin
CPallini9-Feb-21 20:57
mveCPallini9-Feb-21 20:57 
QuestionChanging gamma with multiple display setup Pin
Valentinor6-Feb-21 2:23
Valentinor6-Feb-21 2:23 
AnswerRe: Changing gamma with multiple display setup Pin
Richard MacCutchan6-Feb-21 2:30
mveRichard MacCutchan6-Feb-21 2:30 
GeneralRe: Changing gamma with multiple display setup Pin
Valentinor6-Feb-21 2:55
Valentinor6-Feb-21 2:55 
GeneralRe: Changing gamma with multiple display setup Pin
Richard MacCutchan6-Feb-21 3:10
mveRichard MacCutchan6-Feb-21 3:10 
GeneralRe: Changing gamma with multiple display setup Pin
Valentinor6-Feb-21 3:56
Valentinor6-Feb-21 3:56 
GeneralRe: Changing gamma with multiple display setup Pin
Dave Kreskowiak6-Feb-21 6:05
mveDave Kreskowiak6-Feb-21 6:05 
GeneralRe: Changing gamma with multiple display setup Pin
Valentinor6-Feb-21 22:34
Valentinor6-Feb-21 22:34 
GeneralRe: Changing gamma with multiple display setup Pin
Dave Kreskowiak7-Feb-21 5:30
mveDave Kreskowiak7-Feb-21 5:30 
GeneralRe: Changing gamma with multiple display setup Pin
Valentinor7-Feb-21 5:46
Valentinor7-Feb-21 5:46 
GeneralRe: Changing gamma with multiple display setup Pin
Dave Kreskowiak7-Feb-21 7:29
mveDave Kreskowiak7-Feb-21 7:29 
GeneralRe: Changing gamma with multiple display setup Pin
Richard MacCutchan6-Feb-21 6:11
mveRichard MacCutchan6-Feb-21 6:11 
GeneralRe: Changing gamma with multiple display setup Pin
Valentinor6-Feb-21 22:44
Valentinor6-Feb-21 22:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.