Rev 41 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 41 | Rev 203 | ||
---|---|---|---|
1 | #ifndef _PRINTF_P_H_ |
1 | #ifndef _PRINTF_P_H_ |
2 | #define _PRINTF_P_H_ |
2 | #define _PRINTF_P_H_ |
- | 3 | ||
- | 4 | // function pointer to external callback put character function |
|
- | 5 | typedef void (*pVoidFnctChar) (char ); |
|
3 | 6 | ||
4 | - | ||
5 | - | ||
6 | void _printf_P (char const *fmt0, ...); |
- | |
7 | - | ||
8 | - | ||
9 | #define printf_P(format, args...) _printf_P(format , ## args) |
- | |
10 | #define LCD_printfxy(x,y,format, args...) { DispPtr = y * 20 + x; _printf_P(format , ## args);} |
7 | void _printf_P (pVoidFnctChar pPutchar, char const *fmt0, ...); |
11 | #define LCD_printf(format, args...) { _printf_P(format , ## args);} |
8 | |
12 | 9 | #endif //_PRINTF_P_H_ |
|
13 | #endif |
10 | |
14 | 11 |