eprintf mit irq

Committer:
est2fe
Date:
Thu Jun 23 10:21:40 2011 +0000
Revision:
0:4843fcdba3cc
Child:
1:50fdadc001ef
V 0.1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
est2fe 0:4843fcdba3cc 1 #ifndef __os_printf_c__
est2fe 0:4843fcdba3cc 2 #define __os_printf_c__
est2fe 0:4843fcdba3cc 3
est2fe 0:4843fcdba3cc 4 #include "eprintf.h"
est2fe 0:4843fcdba3cc 5
est2fe 0:4843fcdba3cc 6 void printf_verarbeitung (void)
est2fe 0:4843fcdba3cc 7 {
est2fe 0:4843fcdba3cc 8 //char c;
est2fe 0:4843fcdba3cc 9 // Den printf-Buffer leeren (ausgeben)
est2fe 0:4843fcdba3cc 10 // Das wird nur hier einzig und allein gemacht!
est2fe 0:4843fcdba3cc 11 /* while (printbuffer->anzahl)
est2fe 0:4843fcdba3cc 12 {
est2fe 0:4843fcdba3cc 13 c = getchar_from_ringbuffer (printbuffer);
est2fe 0:4843fcdba3cc 14 putchar (stderror, c);
est2fe 0:4843fcdba3cc 15 }
est2fe 0:4843fcdba3cc 16 */
est2fe 0:4843fcdba3cc 17
est2fe 0:4843fcdba3cc 18 }
est2fe 0:4843fcdba3cc 19
est2fe 0:4843fcdba3cc 20 // Definition wie printf selber
est2fe 0:4843fcdba3cc 21
est2fe 0:4843fcdba3cc 22 int eprintf (char *format, ...)
est2fe 0:4843fcdba3cc 23 { /*
est2fe 0:4843fcdba3cc 24 os.GetResource (RES_PRINTF);
est2fe 0:4843fcdba3cc 25 // "fast voll" muss um _"Warning: Printbuffer voll!\n\r"_ = 32 Zeichen groesser sein!
est2fe 0:4843fcdba3cc 26 if (!printfbuffer_fast_voll())
est2fe 0:4843fcdba3cc 27 {
est2fe 0:4843fcdba3cc 28 printf_in_buffer (format);
est2fe 0:4843fcdba3cc 29 }
est2fe 0:4843fcdba3cc 30 else
est2fe 0:4843fcdba3cc 31 {
est2fe 0:4843fcdba3cc 32 printf_in_buffer ("Warning: Printbuffer voll!\n\r");
est2fe 0:4843fcdba3cc 33 }
est2fe 0:4843fcdba3cc 34 os_ReleaseResource 8RES_PRINTF);
est2fe 0:4843fcdba3cc 35 */
est2fe 0:4843fcdba3cc 36 return 0;
est2fe 0:4843fcdba3cc 37 }
est2fe 0:4843fcdba3cc 38
est2fe 0:4843fcdba3cc 39
est2fe 0:4843fcdba3cc 40 #endif // von ifndef __os_printf_c__