From 3f2546b2ef55b661fd8dd69682b38992225e86f6 Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Mon, 29 Apr 2019 01:17:54 +0100 Subject: Initial import of qemu-2.4.1 --- roms/u-boot/doc/README.LED_display | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 roms/u-boot/doc/README.LED_display (limited to 'roms/u-boot/doc/README.LED_display') diff --git a/roms/u-boot/doc/README.LED_display b/roms/u-boot/doc/README.LED_display new file mode 100644 index 00000000..19977ea7 --- /dev/null +++ b/roms/u-boot/doc/README.LED_display @@ -0,0 +1,26 @@ +LED display internal API +======================================= + +This README describes the LED display API. + +The API is defined by the include file include/led-display.h + +The first step in to define CONFIG_CMD_DISPLAY in the board config file. +Then you need to provide the following functions to access LED display: + +void display_set(int cmd); + +This function should control the state of the LED display. Argument is +an ORed combination of the following values: + DISPLAY_CLEAR -- clear the display + DISPLAY_HOME -- set the position to the beginning of display + +int display_putc(char c); + +This function should display it's parameter on the LED display in the +current position. Returns the displayed character on success or -1 in +case of failure. + +With this functions defined 'display' command will display it's +arguments on the LED display (or clear the display if called without +arguments). -- cgit v1.2.3