Subversion Repositories FlightCtrl

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1379 Arthur 1
#ifndef _PRINTF_P_H_
2
#define _PRINTF_P_H_
3
4
#include <avr/pgmspace.h>
5
6
#define OUT_V24   0
7
#define OUT_LCD   1
8
9
10
void _printf_P (char, char const *fmt0, ...);
11
extern char PrintZiel;
12
13
14
#define printf_P(format, args...)   _printf_P(OUT_V24,format , ## args)
15
#define printf(format, args...)     _printf_P(OUT_V24,PSTR(format) , ## args)
16
#define LCD_printfxy(x,y,format, args...)  { DispPtr = y * 20 + x; _printf_P(OUT_LCD,PSTR(format) , ## args);}
17
#define LCD_printf(format, args...)  {  _printf_P(OUT_LCD,PSTR(format) , ## args);}
18
19
#endif