3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25 * Command to load a splash screen to the VFDs.
26 * NOTE that this will be controlled by a key combination when
27 * the keyboard stuff works. For now the user has to enter a
28 * bitmap number (only VFD_TEST_LOGO is supported now - 16.10.2002).
29 * Added VFD_REMOTE_LOGO (same as VFD_TEST_LOGO but a different color)
32 * This rather crudely requires that each bitmap be included as a
38 #if (CONFIG_COMMANDS & CFG_CMD_VFD)
41 #define VFD_TEST_LOGO_BMPNR 0
42 #define VFD_REMOTE_LOGO_BMPNR 1
45 extern int transfer_pic(unsigned char, unsigned char *, int, int);
47 int trab_vfd (ulong bitmap);
49 int do_vfd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
54 printf ("Usage:\n%s\n", cmdtp->usage);
58 bitmap = simple_strtoul(argv[1], NULL, 10);
60 return (trab_vfd(bitmap));
62 #endif /* CFG_CMD_VFD */
65 int trab_vfd (ulong bitmap)
69 case VFD_TEST_LOGO_BMPNR:
70 transfer_pic(1, &vfd_test_logo_bitmap[0],
71 VFD_TEST_LOGO_HEIGHT, VFD_TEST_LOGO_WIDTH);
73 case VFD_REMOTE_LOGO_BMPNR:
74 transfer_pic(1, &vfd_remote_logo_bitmap[0],
75 VFD_REMOTE_LOGO_HEIGHT, VFD_REMOTE_LOGO_WIDTH);
79 printf("Unknown bitmap %ld\n", bitmap);
84 #endif /* CONFIG_VFD */