Rev 1994 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1994 | Rev 1995 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | // Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist nicht von der Lizenz für den MikroKopter-Teil unterstellt |
1 | // Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist nicht von der Lizenz für den MikroKopter-Teil unterstellt |
2 | 2 | ||
3 | /* |
3 | /* |
4 | Copyright (C) 1993 Free Software Foundation |
4 | Copyright (C) 1993 Free Software Foundation |
5 | 5 | ||
6 | This file is part of the GNU IO Library. This library is free |
6 | This file is part of the GNU IO Library. This library is free |
7 | software; you can redistribute it and/or modify it under the |
7 | software; you can redistribute it and/or modify it under the |
8 | terms of the GNU General Public License as published by the |
8 | terms of the GNU General Public License as published by the |
9 | Free Software Foundation; either version 2, or (at your option) |
9 | Free Software Foundation; either version 2, or (at your option) |
10 | any later version. |
10 | any later version. |
11 | 11 | ||
12 | This library is distributed in the hope that it will be useful, |
12 | This library is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | GNU General Public License for more details. |
15 | GNU General Public License for more details. |
16 | 16 | ||
17 | You should have received a copy of the GNU General Public License |
17 | You should have received a copy of the GNU General Public License |
18 | along with this library; see the file COPYING. If not, write to the Free |
18 | along with this library; see the file COPYING. If not, write to the Free |
19 | Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 | Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
20 | 20 | ||
21 | As a special exception, if you link this library with files |
21 | As a special exception, if you link this library with files |
22 | compiled with a GNU compiler to produce an executable, this does not cause |
22 | compiled with a GNU compiler to produce an executable, this does not cause |
23 | the resulting executable to be covered by the GNU General Public License. |
23 | the resulting executable to be covered by the GNU General Public License. |
24 | This exception does not however invalidate any other reasons why |
24 | This exception does not however invalidate any other reasons why |
25 | the executable file might be covered by the GNU General Public License. */ |
25 | the executable file might be covered by the GNU General Public License. */ |
26 | 26 | ||
27 | /* |
27 | /* |
28 | * Copyright (c) 1990 Regents of the University of California. |
28 | * Copyright (c) 1990 Regents of the University of California. |
29 | * All rights reserved. |
29 | * All rights reserved. |
30 | * |
30 | * |
31 | * Redistribution and use in source and binary forms, with or without |
31 | * Redistribution and use in source and binary forms, with or without |
32 | * modification, are permitted provided that the following conditions |
32 | * modification, are permitted provided that the following conditions |
33 | * are met: |
33 | * are met: |
34 | * 1. Redistributions of source code must retain the above copyright |
34 | * 1. Redistributions of source code must retain the above copyright |
35 | * notice, this list of conditions and the following disclaimer. |
35 | * notice, this list of conditions and the following disclaimer. |
36 | * 2. Redistributions in binary form must reproduce the above copyright |
36 | * 2. Redistributions in binary form must reproduce the above copyright |
37 | * notice, this list of conditions and the following disclaimer in the |
37 | * notice, this list of conditions and the following disclaimer in the |
38 | * documentation and/or other materials provided with the distribution. |
38 | * documentation and/or other materials provided with the distribution. |
39 | * 3. [rescinded 22 July 1999] |
39 | * 3. [rescinded 22 July 1999] |
40 | * 4. Neither the name of the University nor the names of its contributors |
40 | * 4. Neither the name of the University nor the names of its contributors |
41 | * may be used to endorse or promote products derived from this software |
41 | * may be used to endorse or promote products derived from this software |
42 | * without specific prior written permission. |
42 | * without specific prior written permission. |
43 | * |
43 | * |
44 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
44 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
45 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
45 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
46 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
46 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
47 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
47 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
48 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
48 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
49 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
49 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
50 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
50 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
51 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
51 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
52 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
52 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
53 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
53 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
54 | * SUCH DAMAGE. |
54 | * SUCH DAMAGE. |
55 | */ |
55 | */ |
56 | 56 | ||
57 | /******************************************************************************/ |
57 | /******************************************************************************/ |
58 | #ifndef _PRINTF_P_H_ |
58 | #ifndef _PRINTF_P_H_ |
59 | #define _PRINTF_P_H_ |
59 | #define _PRINTF_P_H_ |
60 | 60 | ||
61 | #include <avr/pgmspace.h> |
61 | #include <avr/pgmspace.h> |
62 | 62 | ||
63 | // function pointer to external callback function |
63 | // function pointer to external callback function |
64 | typedef void (*pVoidFnctChar) (char ); |
64 | typedef void (*pVoidFnctChar) (char ); |
65 | typedef void (*pVoidFnct_pVoidFnctChar_const_fmt) (pVoidFnctChar, char const *fmt0, ...); |
65 | typedef void (*pVoidFnct_pVoidFnctChar_const_fmt) (pVoidFnctChar, char const *fmt0, ...); |
66 | extern pVoidFnct_pVoidFnctChar_const_fmt _printf_P; |
66 | extern pVoidFnct_pVoidFnctChar_const_fmt _printf_P; |
67 | 67 | ||
68 | 68 | ||
69 | #endif //_PRINTF_P_H_ |
69 | #endif //_PRINTF_P_H_ |