00001 /*@{*//*@}*/ 00015 00016 /******************************************************************************/ 00017 /* Includes (#include) */ 00018 #include <avr/io.h> 00019 00020 /* Own header files */ 00021 #include "xtypes.h" 00022 #include "global.h" 00023 00024 #include "uart.h" 00025 00026 #define EXPORT 00027 #include "print.h" 00028 #undef EXPORT 00029 00030 /******************************************************************************/ 00031 /* Constants (#define) *//*@{*/ 00032 /* End: Constants (#define) *//*@}*/ 00033 /******************************************************************************/ 00034 00035 /******************************************************************************/ 00036 /* Macro definitions (#define) *//*@{*/ 00037 /* End: Macro definitions (#define) *//*@}*/ 00038 /******************************************************************************/ 00039 00040 /******************************************************************************/ 00041 /* Basic types (typedef) *//*@{*/ 00042 /* End: Basic types (typedef) *//*@}*/ 00043 /******************************************************************************/ 00044 00045 /******************************************************************************/ 00046 /* Local constants (const) *//*@{*/ 00047 /* End: Local constants (const) *//*@}*/ 00048 /******************************************************************************/ 00049 00050 /******************************************************************************/ 00051 /* Local variables *//*@{*/ 00052 /* End: Local variables *//*@}*/ 00053 /******************************************************************************/ 00054 00055 /******************************************************************************/ 00056 /* Global variables *//*@{*/ 00057 /* End: Global variables *//*@}*/ 00058 /******************************************************************************/ 00059 00060 /******************************************************************************/ 00061 /* Prototype declarations */ 00062 /* End: Prototype declarations */ 00063 /******************************************************************************/ 00064 00065 /******************************************************************************/ 00066 /* Local functions *//*@{*/ 00067 /* End: Local functions *//*@}*/ 00068 /******************************************************************************/ 00069 00070 /******************************************************************************/ 00071 /* Global functions *//*@{*/ 00072 00073 /* ****************************************************************************/ 00082 /* ****************************************************************************/ 00083 void print_Init (void) 00084 { 00085 /* connect with printf (STDOUT) */ 00086 fdevopen (print_Char, NULL); 00087 } 00088 00089 00090 /* ****************************************************************************/ 00103 /* ****************************************************************************/ 00104 INT16 print_Char (CHAR c, FILE* stream) 00105 { 00106 uart_PutChar(c); 00107 00108 return (0U); 00109 } 00110 00111 00112 /* End: Global functions *//*@}*/ 00113 /******************************************************************************/ 00114 00115 /**** Last line of code ****/ 00116 00117