+++ /dev/null
-/*-----------------------------------------------------------------------*/\r
-/* EZ-LCD - Generic control module include/configuration file */\r
-/*-----------------------------------------------------------------------*/\r
-\r
-#ifndef _EZ_LCD\r
-#define _EZ_LCD\r
-\r
-/*--------------------------------------------------*/\r
-/* Configuration Options */\r
-/*--------------------------------------------------*/\r
-\r
-#define _LCD_ROWS 2 /* Number of Rows (1,2 or 4) */\r
-#define _LCD_COLS 8 /* Number of Columns (8..40) */\r
-\r
-#define _USE_CURSOR 0 /* 1:Enable lcd_cursor function */\r
-#define _USE_CGRAM 0 /* 1:Enable lcd_setcg function */\r
-\r
-#define _USE_FUEL 0 /* 1:Enable lcd_put_fuel function (_USE_CGRAM must be 1) */\r
-\r
-#define _USE_BAR 0 /* 1:Enable lcd_put_bar function (_USE_CGRAM must be 1) */\r
-#define _MAX_BAR 255 /* Maximum value for lcd_put_bar function */\r
-\r
-#define _USE_POINT 0 /* 1:Enable lcd_put_point function (_USE_CGRAM must be 1) */\r
-#define _MAX_POINT 255 /* Maximum value for lcd_put_point function */\r
-\r
-#define _BASE_GRAPH 0 /* Common user character used by lcd_put_bar/lcd_put_point function (2 chars from this) */\r
-\r
-\r
-\r
-/*--------------------------------------------------*/\r
-/* API declareations */\r
-/*--------------------------------------------------*/\r
-\r
-#include <stdint.h>\r
-\r
-#ifdef __cplusplus\r
-extern "C" {\r
-#endif\r
-void lcd_init (void);\r
-void lcd_locate (uint8_t, uint8_t);\r
-void lcd_putc (uint8_t);\r
-void lcd_cursor (uint8_t);\r
-void lcd_setcg (uint8_t, uint8_t, const uint8_t*);\r
-void lcd_put_fuel (int8_t, uint8_t);\r
-void lcd_put_bar (uint16_t, uint8_t, uint8_t);\r
-void lcd_put_point (uint16_t, uint8_t, uint8_t);\r
-#ifdef __cplusplus\r
-}\r
-#endif\r
-\r
-#define CSR_OFF 0\r
-#define CSR_BLOCK 1\r
-#define CSR_UNDER 2\r
-\r
-\r
-#endif /* #ifndef _EZLCD */\r
+++ /dev/null
-#ifndef LCD_H\r
-#define LCD_H\r
-/***********************************************************************************\r
-\r
-FILE NAME lcd.h\r
-\r
-DESCRIPTION Driver for KS0066u LCD Module Controller (8 characters by 2 lines )\r
- on the Renesas RSK boards - header file\r
-\r
-Copyright : 2006 Renesas Technology Europe Ltd.\r
-Copyright : 2006 Renesas Technology Corporation.\r
-All Rights Reserved\r
-***********************************************************************************/\r
-\r
-/***********************************************************************************\r
-Revision History\r
-DD.MM.YYYY OSO-UID Description\r
-26.07.2006 RTE-MBA First Release\r
-***********************************************************************************/\r
-void InitialiseDisplay( void );\r
-void DisplayString(unsigned char position, char * string);\r
-void LCD_write(unsigned char data_or_ctrl, unsigned char value);\r
-void LCD_nibble_write(unsigned char data_or_ctrl, unsigned char value);\r
-void DisplayDelay(unsigned long int units);\r
-\r
-\r
-#define SET_BIT_HIGH (1) \r
-#define SET_BIT_LOW (0) \r
-#define SET_BYTE_HIGH (0xFF) \r
-#define SET_BYTE_LOW (0x00) \r
-\r
-struct _LCD_Params {\r
- unsigned char Line;\r
- unsigned short Speed;\r
- char *ptr_str;\r
-};\r
-\r
-void prvLCDTaskLine1( void *pvParameters );\r
-void prvLCDTaskLine2( void *pvParameters );\r
-\r
-\r
-/* RS Register Select pin */\r
-#define RS_PIN PORTJ.PODR.BIT.B1\r
-/* Display Enable pin */ \r
-#define EN_PIN PORTJ.PODR.BIT.B3\r
-/* Data bus port */\r
-#define DATA_PORT PORTH.PODR.BYTE\r
-/* Bit mask from entire port */ \r
-#define DATA_PORT_MASK 0x0F\r
-/* Number of bits data needs to shift */\r
-#define DATA_PORT_SHIFT 0\r
-\r
-\r
-#define DATA_WR 1\r
-#define CTRL_WR 0\r
-\r
-/* Set to ensure base delay of 1microS minimum */\r
-//#define DELAY_TIMING 0x2F\r
-#define DELAY_TIMING 50\r
-/* number of lines on the LCD display */\r
-#define NUMB_CHARS_PER_LINE 8\r
-/* Maximum charactors per line of LCD display. */ \r
-#define MAXIMUM_LINES 2 \r
-\r
-#define LCD_LINE1 0\r
-#define LCD_LINE2 16\r
-\r
-/**********************************************************************************/\r
-/* LCD commands - use LCD_write function to write these commands to the LCD. */\r
-/**********************************************************************************/\r
-/* Clear LCD display and home cursor */\r
-#define LCD_CLEAR 0x01\r
-/* move cursor to line 1 */\r
-#define LCD_HOME_L1 0x80\r
-/* move cursor to line 2 */ \r
-#define LCD_HOME_L2 0xC0\r
-/* Cursor auto decrement after R/W */ \r
-#define CURSOR_MODE_DEC 0x04\r
-/* Cursor auto increment after R/W */\r
-#define CURSOR_MODE_INC 0x06\r
-/* Setup, 4 bits,2 lines, 5X7 */\r
-#define FUNCTION_SET 0x28\r
-/* Display ON with Cursor */\r
-#define LCD_CURSOR_ON 0x0E\r
-/* Display ON with Cursor off */\r
-#define LCD_CURSOR_OFF 0x0C\r
-/* Display on with blinking cursor */\r
-#define LCD_CURSOR_BLINK 0x0D\r
-/*Move Cursor Left One Position */\r
-#define LCD_CURSOR_LEFT 0x10\r
-/* Move Cursor Right One Position */\r
-#define LCD_CURSOR_RIGHT 0x14\r
-\r
-#define LCD_DISPLAY_ON 0x04\r
-#define LCD_TWO_LINE 0x08\r
-\r
-#endif
\ No newline at end of file
--- /dev/null
+/*-----------------------------------------------------------------------*/\r
+/* EZ-LCD - Generic control module include/configuration file */\r
+/*-----------------------------------------------------------------------*/\r
+\r
+#ifndef _EZ_LCD\r
+#define _EZ_LCD\r
+\r
+/*--------------------------------------------------*/\r
+/* Configuration Options */\r
+/*--------------------------------------------------*/\r
+\r
+#define _LCD_ROWS 2 /* Number of Rows (1,2 or 4) */\r
+#define _LCD_COLS 8 /* Number of Columns (8..40) */\r
+\r
+#define _USE_CURSOR 0 /* 1:Enable lcd_cursor function */\r
+#define _USE_CGRAM 0 /* 1:Enable lcd_setcg function */\r
+\r
+#define _USE_FUEL 0 /* 1:Enable lcd_put_fuel function (_USE_CGRAM must be 1) */\r
+\r
+#define _USE_BAR 0 /* 1:Enable lcd_put_bar function (_USE_CGRAM must be 1) */\r
+#define _MAX_BAR 255 /* Maximum value for lcd_put_bar function */\r
+\r
+#define _USE_POINT 0 /* 1:Enable lcd_put_point function (_USE_CGRAM must be 1) */\r
+#define _MAX_POINT 255 /* Maximum value for lcd_put_point function */\r
+\r
+#define _BASE_GRAPH 0 /* Common user character used by lcd_put_bar/lcd_put_point function (2 chars from this) */\r
+\r
+\r
+\r
+/*--------------------------------------------------*/\r
+/* API declareations */\r
+/*--------------------------------------------------*/\r
+\r
+#include <stdint.h>\r
+\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+void lcd_init (void);\r
+void lcd_locate (uint8_t, uint8_t);\r
+void lcd_putc (uint8_t);\r
+void lcd_cursor (uint8_t);\r
+void lcd_setcg (uint8_t, uint8_t, const uint8_t*);\r
+void lcd_put_fuel (int8_t, uint8_t);\r
+void lcd_put_bar (uint16_t, uint8_t, uint8_t);\r
+void lcd_put_point (uint16_t, uint8_t, uint8_t);\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
+#define CSR_OFF 0\r
+#define CSR_BLOCK 1\r
+#define CSR_UNDER 2\r
+\r
+\r
+#endif /* #ifndef _EZLCD */\r
--- /dev/null
+#ifndef LCD_H\r
+#define LCD_H\r
+/***********************************************************************************\r
+\r
+FILE NAME lcd.h\r
+\r
+DESCRIPTION Driver for KS0066u LCD Module Controller (8 characters by 2 lines )\r
+ on the Renesas RSK boards - header file\r
+\r
+Copyright : 2006 Renesas Technology Europe Ltd.\r
+Copyright : 2006 Renesas Technology Corporation.\r
+All Rights Reserved\r
+***********************************************************************************/\r
+\r
+/***********************************************************************************\r
+Revision History\r
+DD.MM.YYYY OSO-UID Description\r
+26.07.2006 RTE-MBA First Release\r
+***********************************************************************************/\r
+void InitialiseDisplay( void );\r
+void DisplayString(unsigned char position, char * string);\r
+void LCD_write(unsigned char data_or_ctrl, unsigned char value);\r
+void LCD_nibble_write(unsigned char data_or_ctrl, unsigned char value);\r
+void DisplayDelay(unsigned long int units);\r
+\r
+\r
+#define SET_BIT_HIGH (1) \r
+#define SET_BIT_LOW (0) \r
+#define SET_BYTE_HIGH (0xFF) \r
+#define SET_BYTE_LOW (0x00) \r
+\r
+struct _LCD_Params {\r
+ unsigned char Line;\r
+ unsigned short Speed;\r
+ char *ptr_str;\r
+};\r
+\r
+void prvLCDTaskLine1( void *pvParameters );\r
+void prvLCDTaskLine2( void *pvParameters );\r
+\r
+\r
+/* RS Register Select pin */\r
+#define RS_PIN PORTJ.PODR.BIT.B1\r
+/* Display Enable pin */ \r
+#define EN_PIN PORTJ.PODR.BIT.B3\r
+/* Data bus port */\r
+#define DATA_PORT PORTH.PODR.BYTE\r
+/* Bit mask from entire port */ \r
+#define DATA_PORT_MASK 0x0F\r
+/* Number of bits data needs to shift */\r
+#define DATA_PORT_SHIFT 0\r
+\r
+\r
+#define DATA_WR 1\r
+#define CTRL_WR 0\r
+\r
+/* Set to ensure base delay of 1microS minimum */\r
+//#define DELAY_TIMING 0x2F\r
+#define DELAY_TIMING 50\r
+/* number of lines on the LCD display */\r
+#define NUMB_CHARS_PER_LINE 8\r
+/* Maximum charactors per line of LCD display. */ \r
+#define MAXIMUM_LINES 2 \r
+\r
+#define LCD_LINE1 0\r
+#define LCD_LINE2 16\r
+\r
+/**********************************************************************************/\r
+/* LCD commands - use LCD_write function to write these commands to the LCD. */\r
+/**********************************************************************************/\r
+/* Clear LCD display and home cursor */\r
+#define LCD_CLEAR 0x01\r
+/* move cursor to line 1 */\r
+#define LCD_HOME_L1 0x80\r
+/* move cursor to line 2 */ \r
+#define LCD_HOME_L2 0xC0\r
+/* Cursor auto decrement after R/W */ \r
+#define CURSOR_MODE_DEC 0x04\r
+/* Cursor auto increment after R/W */\r
+#define CURSOR_MODE_INC 0x06\r
+/* Setup, 4 bits,2 lines, 5X7 */\r
+#define FUNCTION_SET 0x28\r
+/* Display ON with Cursor */\r
+#define LCD_CURSOR_ON 0x0E\r
+/* Display ON with Cursor off */\r
+#define LCD_CURSOR_OFF 0x0C\r
+/* Display on with blinking cursor */\r
+#define LCD_CURSOR_BLINK 0x0D\r
+/*Move Cursor Left One Position */\r
+#define LCD_CURSOR_LEFT 0x10\r
+/* Move Cursor Right One Position */\r
+#define LCD_CURSOR_RIGHT 0x14\r
+\r
+#define LCD_DISPLAY_ON 0x04\r
+#define LCD_TWO_LINE 0x08\r
+\r
+#endif
\ No newline at end of file