Subversion Repositories FlightCtrl

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2100 - 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
void _printf_P (char, char const *fmt0, ...);
10
extern char PrintZiel;
11
 
12
#define printf_P(format, args...)   _printf_P(OUT_V24,format , ## args)
13
#define printf(format, args...)     _printf_P(OUT_V24,PSTR(format) , ## args)
14
#define LCD_printfxy(x,y,format, args...)  { dispPtr = y * 20 + x; _printf_P(OUT_LCD,PSTR(format) , ## args);}
15
#define LCD_printf(format, args...)  {  _printf_P(OUT_LCD,PSTR(format) , ## args);}
16
 
17
#endif