Commit e03e4b7312f0da424550e6b06f1964332aac1c09
Committed by
Wolfgang Denk
1 parent
8f54dd4f13
Exists in
master
and in
54 other branches
led_display: remove unused DISPLAY_MARK define
DISPLAY_MARK subcommand of display_set() is not used anywhere so we can remove it safely. Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Showing 2 changed files with 0 additions and 2 deletions Inline Diff
doc/README.LED_display
1 | LED display internal API | 1 | LED display internal API |
2 | ======================================= | 2 | ======================================= |
3 | 3 | ||
4 | This README describes the LED display API. | 4 | This README describes the LED display API. |
5 | 5 | ||
6 | The API is defined by the include file include/led-display.h | 6 | The API is defined by the include file include/led-display.h |
7 | 7 | ||
8 | The first step in to define CONFIG_CMD_DISPLAY in the board config file. | 8 | The first step in to define CONFIG_CMD_DISPLAY in the board config file. |
9 | Then you need to provide the following functions to access LED display: | 9 | Then you need to provide the following functions to access LED display: |
10 | 10 | ||
11 | void display_set(int cmd); | 11 | void display_set(int cmd); |
12 | 12 | ||
13 | This function should control the state of the LED display. Argument is | 13 | This function should control the state of the LED display. Argument is |
14 | an ORed combination of the following values: | 14 | an ORed combination of the following values: |
15 | DISPLAY_CLEAR -- clear the display | 15 | DISPLAY_CLEAR -- clear the display |
16 | DISPLAY_HOME -- set the position to the beginning of display | 16 | DISPLAY_HOME -- set the position to the beginning of display |
17 | DISPLAY_MARK -- enable mark (decimal point), if implemented | ||
18 | 17 | ||
19 | int display_putc(char c); | 18 | int display_putc(char c); |
20 | 19 | ||
21 | This function should display it's parameter on the LED display in the | 20 | This function should display it's parameter on the LED display in the |
22 | current position. Returns the displayed character on success or -1 in | 21 | current position. Returns the displayed character on success or -1 in |
23 | case of failure. | 22 | case of failure. |
24 | 23 | ||
25 | With this functions defined 'display' command will display it's | 24 | With this functions defined 'display' command will display it's |
26 | arguments on the LED display (or clear the display if called without | 25 | arguments on the LED display (or clear the display if called without |
27 | arguments). | 26 | arguments). |
28 | 27 |
include/led-display.h
1 | /* | 1 | /* |
2 | * (C) Copyright 2005-2010 | 2 | * (C) Copyright 2005-2010 |
3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. | 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
4 | * | 4 | * |
5 | * (C) Copyright 2010 | 5 | * (C) Copyright 2010 |
6 | * Sergei Poselenov, Emcraft Systems, sposelenov@emcraft.com. | 6 | * Sergei Poselenov, Emcraft Systems, sposelenov@emcraft.com. |
7 | * | 7 | * |
8 | * See file CREDITS for list of people who contributed to this | 8 | * See file CREDITS for list of people who contributed to this |
9 | * project. | 9 | * project. |
10 | * | 10 | * |
11 | * This program is free software; you can redistribute it and/or | 11 | * This program is free software; you can redistribute it and/or |
12 | * modify it under the terms of the GNU General Public License as | 12 | * modify it under the terms of the GNU General Public License as |
13 | * published by the Free Software Foundation; either version 2 of | 13 | * published by the Free Software Foundation; either version 2 of |
14 | * the License, or (at your option) any later version. | 14 | * the License, or (at your option) any later version. |
15 | * | 15 | * |
16 | * This program is distributed in the hope that it will be useful, | 16 | * This program is distributed in the hope that it will be useful, |
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | * GNU General Public License for more details. | 19 | * GNU General Public License for more details. |
20 | * | 20 | * |
21 | * You should have received a copy of the GNU General Public License | 21 | * You should have received a copy of the GNU General Public License |
22 | * along with this program; if not, write to the Free Software | 22 | * along with this program; if not, write to the Free Software |
23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, | 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
24 | * MA 02111-1307 USA | 24 | * MA 02111-1307 USA |
25 | */ | 25 | */ |
26 | #ifndef _led_display_h_ | 26 | #ifndef _led_display_h_ |
27 | #define _led_display_h_ | 27 | #define _led_display_h_ |
28 | 28 | ||
29 | /* Display Commands */ | 29 | /* Display Commands */ |
30 | #define DISPLAY_CLEAR 0x1 /* Clear the display */ | 30 | #define DISPLAY_CLEAR 0x1 /* Clear the display */ |
31 | #define DISPLAY_HOME 0x2 /* Set cursor at home position */ | 31 | #define DISPLAY_HOME 0x2 /* Set cursor at home position */ |
32 | #define DISPLAY_MARK 0x4 /* Enable the decimal point led, if implemented */ | ||
33 | 32 | ||
34 | void display_set(int cmd); | 33 | void display_set(int cmd); |
35 | int display_putc(char c); | 34 | int display_putc(char c); |
36 | #endif | 35 | #endif |
37 | 36 |