Subversion Repositories FlightCtrl

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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