eprintf mit irq
eprintf.h@4:5138a20c4989, 2011-07-21 (annotated)
- Committer:
- est2fe
- Date:
- Thu Jul 21 07:38:51 2011 +0000
- Revision:
- 4:5138a20c4989
- Parent:
- 3:de07cab9fc01
V03.2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
est2fe | 3:de07cab9fc01 | 1 | #ifndef __EPRINTF_H__ |
est2fe | 3:de07cab9fc01 | 2 | #define __EPRINTF_H__ |
est2fe | 2:f63032cc0c0a | 3 | |
est2fe | 4:5138a20c4989 | 4 | //#include "extdef.h" |
est2fe | 4:5138a20c4989 | 5 | //#include "globals.h" |
est2fe | 2:f63032cc0c0a | 6 | #include "rbuf.h" |
est2fe | 4:5138a20c4989 | 7 | #include "mbed.h" |
est2fe | 4:5138a20c4989 | 8 | #include <stdarg.h> |
est2fe | 4:5138a20c4989 | 9 | |
est2fe | 2:f63032cc0c0a | 10 | |
est2fe | 2:f63032cc0c0a | 11 | #define TASK_EPRINTF_ID 2 |
est2fe | 2:f63032cc0c0a | 12 | #define TASK_EPRINTF_PRIO 5 |
est2fe | 2:f63032cc0c0a | 13 | #define TASK_EPRINTF_ID_STACK_SZ 128 |
est2fe | 2:f63032cc0c0a | 14 | |
est2fe | 2:f63032cc0c0a | 15 | // Resourcen |
est2fe | 2:f63032cc0c0a | 16 | #define RESOURCE_EPRINTF 1 |
est2fe | 2:f63032cc0c0a | 17 | #define RESOURCE_EPRINTF_PRIO 70 |
est2fe | 2:f63032cc0c0a | 18 | |
est2fe | 2:f63032cc0c0a | 19 | // Events sind Bits innerhalb eines 32-Bit intgers |
est2fe | 2:f63032cc0c0a | 20 | //#define EV_KEYBOARD 4 |
est2fe | 2:f63032cc0c0a | 21 | #define EV_EPRINTF 8 |
est2fe | 2:f63032cc0c0a | 22 | //#define EV_SNIFFER 16 |
est2fe | 0:4843fcdba3cc | 23 | |
est2fe | 2:f63032cc0c0a | 24 | // Fehler |
est2fe | 2:f63032cc0c0a | 25 | #define FEHLER_RX_INT_OHNE_ZEICHEN 1 |
est2fe | 2:f63032cc0c0a | 26 | #define FEHLER_RBUF_PUT_IN_RX_INT 2 |
est2fe | 2:f63032cc0c0a | 27 | #define FEHLER_EV_KEYBOARD_OHNE_CHAR 3 |
est2fe | 2:f63032cc0c0a | 28 | #define FEHLER_TX_PUTCHAR 4 |
est2fe | 2:f63032cc0c0a | 29 | #define FEHLER_EPRINTF_TEST_RESOURCE 5 |
est2fe | 2:f63032cc0c0a | 30 | #define FEHLER_EPRINTF_LOCK_RESOURCE 6 |
est2fe | 2:f63032cc0c0a | 31 | #define FEHLER_EPRINTF_FAST_VOLL 7 |
est2fe | 2:f63032cc0c0a | 32 | #define FEHLER_EPRINTF_STRING_ZU_GROSS 8 |
est2fe | 2:f63032cc0c0a | 33 | #define FEHLER_EPRINTF_RBUF_PUT 9 |
est2fe | 2:f63032cc0c0a | 34 | |
est2fe | 2:f63032cc0c0a | 35 | // Spoolbuffergroesse fuer eprintf |
est2fe | 2:f63032cc0c0a | 36 | #define SB_GROESSE 1024 |
est2fe | 0:4843fcdba3cc | 37 | |
est2fe | 4:5138a20c4989 | 38 | // Timeout für LockResource und TestResource in [us] |
est2fe | 2:f63032cc0c0a | 39 | #define TO_LockResource 1000 |
est2fe | 2:f63032cc0c0a | 40 | |
est2fe | 2:f63032cc0c0a | 41 | void TX_irq_eprintf (void); |
est2fe | 2:f63032cc0c0a | 42 | int eprintf (char *format, ...); |
est2fe | 2:f63032cc0c0a | 43 | void task_eprintf_verarbeitung (void); |
est2fe | 2:f63032cc0c0a | 44 | |
est2fe | 2:f63032cc0c0a | 45 | #endif // __EPRINTF_H__ |