spi_mlcd.c
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 void LcdInit(NUTDEVICE *dev)
00093 {
00094 }
00095
00099 static TERMDCB dcb_term = {
00100 LcdInit,
00101 LcdWriteData,
00102 LcdWriteCmd,
00103 LcdClear,
00104 LcdSetCursor,
00105 LcdCursorHome,
00106 LcdCursorLeft,
00107 LcdCursorRight,
00108 LcdCursorMode,
00109 0,
00110 0,
00111 LCD_ROWS,
00112 LCD_COLS,
00113 LCD_COLS,
00114 0,
00115 0,
00116 0
00117 };
00118
00122 NUTDEVICE devSpiMegaLcd = {
00123 0,
00124 {'l', 'c', 'd', 0, 0, 0, 0, 0, 0},
00125 IFTYP_STREAM,
00126 0,
00127 0,
00128 0,
00129 &dcb_term,
00130 TermInit,
00131 TermIOCtl,
00132 0,
00133 TermWrite,
00134 #ifdef __HARVARD_ARCH__
00135 TermWrite_P,
00136 #endif
00137 TermOpen,
00138 TermClose,
00139 0
00140 };
00141