1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 00:32:04 +02:00

video: Factor out vidconsole_put_string()

Pull the vidconsole_put_string() function from DM tests, make it
available to e.g. boards that want to display information on the
LCD on boot.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
Marek Vasut
2019-05-17 20:22:31 +02:00
committed by Anatolij Gustschin
parent b5e1a82e92
commit e63168a9ff
3 changed files with 31 additions and 10 deletions

View File

@@ -214,6 +214,22 @@ int vidconsole_set_row(struct udevice *dev, uint row, int clr);
*/
int vidconsole_put_char(struct udevice *dev, char ch);
/**
* vidconsole_put_string() - Output a string to the current console position
*
* Outputs a string to the console and advances the cursor. This function
* handles wrapping to new lines and scrolling the console. Special
* characters are handled also: \n, \r, \b and \t.
*
* The device always starts with the cursor at position 0,0 (top left). It
* can be adjusted manually using vidconsole_position_cursor().
*
* @dev: Device to adjust
* @str: String to write
* @return 0 if OK, -ve on error
*/
int vidconsole_put_string(struct udevice *dev, const char *str);
/**
* vidconsole_position_cursor() - Move the text cursor
*