Subversion Repositories FlightCtrl

Rev

Rev 1 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 304
1
#ifndef _PRINTF_P_H_
1
#ifndef _PRINTF_P_H_
2
#define _PRINTF_P_H_
2
#define _PRINTF_P_H_
3
 
3
 
4
#include <avr/pgmspace.h>
4
#include <avr/pgmspace.h>
5
 
5
 
6
#define OUT_V24   0
6
#define OUT_V24   0
7
#define OUT_LCD   1
7
#define OUT_LCD   1
8
 
8
 
9
 
9
 
10
extern void _printf_P (char, char const *fmt0, ...);
10
void _printf_P (char, char const *fmt0, ...);
11
extern char PrintZiel;
11
extern char PrintZiel;
12
 
12
 
13
 
13
 
14
#define printf_P(format, args...)   _printf_P(OUT_V24,format , ## args)
14
#define printf_P(format, args...)   _printf_P(OUT_V24,format , ## args)
15
#define printf(format, args...)     _printf_P(OUT_V24,PSTR(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);}
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);}
17
#define LCD_printf(format, args...)  {  _printf_P(OUT_LCD,PSTR(format) , ## args);}
18
 
18
 
19
#endif
19
#endif
20
 
20