common: lcd: extend lcd api by function lcd_get_position_cursor()
authorLukasz Majewski <l.majewski@samsung.com>
Mon, 16 Feb 2015 16:40:25 +0000 (17:40 +0100)
committerPrzemyslaw Marczak <p.marczak@samsung.com>
Thu, 14 May 2015 12:42:56 +0000 (14:42 +0200)
Changes for v2015.04-rc1:
- Moving lcd console related code to lcd_console.c

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
common/lcd_console.c
include/lcd_console.h

index bb0d7c5..2d61b2e 100644 (file)
 
 static struct console_t cons;
 
+void lcd_set_position_cursor(unsigned col, unsigned row)
+{
+       lcd_position_cursor(col, row);
+}
+
+void lcd_get_position_cursor(unsigned *col, unsigned *row)
+{
+       *col = cons.curr_col;
+       *row = cons.curr_row;
+}
+
 void lcd_set_col(short col)
 {
        cons.curr_col = col;
index 2e0f56f..be692f6 100644 (file)
@@ -104,3 +104,19 @@ void lcd_puts(const char *s);
  * @...: The arguments for the formatted string
  */
 void lcd_printf(const char *fmt, ...);
+
+/**
+ * Set the position of the text cursor
+ *
+ * @param col   Column to place cursor (0 = left side)
+ * @param row   Row to place cursor (0 = top line)
+ */
+void lcd_set_position_cursor(unsigned col, unsigned row);
+
+/**
+ * Get the position of the text cursor
+ *
+ * @param *col  Pointer to store cursor placement column (0 = left side)
+ * @param *row  Pointer to store cursor placement row (0 = top line)
+ */
+void lcd_get_position_cursor(unsigned *col, unsigned *row);