Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #include <dev/term.h>
00042 #include <sys/timer.h>
00043
00044 #include <stdlib.h>
00045 #include <string.h>
00046
00047 #ifndef LCD_ROWS
00048 #define LCD_ROWS 2
00049 #endif
00050 #ifndef LCD_COLS
00051 #define LCD_COLS 16
00052 #endif
00053
00054
00059
00060 static void LcdWriteData(uint8_t ch)
00061 {
00062 }
00063
00064 static void LcdWriteCmd(uint8_t cmd, uint8_t xt)
00065 {
00066 }
00067
00068 static void LcdSetCursor(uint8_t pos)
00069 {
00070 }
00071
00072 static void LcdCursorHome(void)
00073 {
00074 }
00075
00076 static void LcdCursorLeft(void)
00077 {
00078 }
00079
00080 static void LcdCursorRight(void)
00081 {
00082 }
00083
00084 static void LcdClear(void)
00085 {
00086 }
00087
00088 static void LcdCursorMode(uint8_t on)
00089 {
00090 }
00091
00092 static int LcdInit(NUTDEVICE *dev)
00093 {
00094 return 0;
00095 }
00096
00100 static TERMDCB dcb_term = {
00101 LcdInit,
00102 LcdWriteData,
00103 LcdWriteCmd,
00104 LcdClear,
00105 LcdSetCursor,
00106 LcdCursorHome,
00107 LcdCursorLeft,
00108 LcdCursorRight,
00109 LcdCursorMode,
00110 0,
00111 0,
00112 LCD_ROWS,
00113 LCD_COLS,
00114 LCD_COLS,
00115 0,
00116 0,
00117 0
00118 };
00119
00123 NUTDEVICE devSpiMegaLcd = {
00124 0,
00125 {'l', 'c', 'd', 0, 0, 0, 0, 0, 0},
00126 IFTYP_STREAM,
00127 0,
00128 0,
00129 0,
00130 &dcb_term,
00131 TermInit,
00132 TermIOCtl,
00133 0,
00134 TermWrite,
00135 #ifdef __HARVARD_ARCH__
00136 TermWrite_P,
00137 #endif
00138 TermOpen,
00139 TermClose,
00140 0
00141 };
00142