GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / cfe / cfe / arch / mips / board / p6064 / include / hd2532.h
blobd2cb438d2a487f3d9feb76f2cdbad2e3ec8dd4ea
1 /*
2 * p6032/hd2532.h: HD2532 alphanumeric display definitions
4 * Copyright (c) 2000-2001, Algorithmics Ltd. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the "Free MIPS" License Agreement, a copy of
8 * which is available at:
10 * http://www.algor.co.uk/ftp/pub/doc/freemips-license.txt
12 * You may not, however, modify or remove any part of this copyright
13 * message if this program is redistributed or reused in whole or in
14 * part.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * "Free MIPS" License for more details.
22 #ifndef HD2532_STRIDE
23 #define HD2532_STRIDE 4
24 #endif
25 #ifndef HD2532_FLASH_OFFSET
26 #define HD2532_FLASH_OFFSET 0
27 #define HD2532_NFLASH_OFFSET 0x80
28 #endif
30 #define HD2532_FLASH(x) (HD2532_FLASH_OFFSET+((x)*HD2532_STRIDE)
31 #define HD2532_UDCAR (HD2532_NFLASH_OFFSET
32 #define HD2532_UDCRAM(x) (HD2532_NFLASH_OFFSET+(0x08*HD2532_STRIDE)+((x)*HD2532_STRIDE))
33 #define HD2532_CW (HD2532_NFLASH_OFFSET+(0x10*HD2532_STRIDE))
34 #define HD2532_CRAM (HD2532_NFLASH_OFFSET+(0x18*HD2532_STRIDE))
35 #define HD2532_CHAR(x) ((x)*HD2532_STRIDE)
37 #define HD2532_CW_C 0x80 /* clear FLASH and CRAM */
38 #define HD2532_CW_S 0x40 /* start self test */
39 #define HD2532_CW_OK 0x20 /* self test passed */
40 #define HD2532_CW_BL 0x10 /* blink enable */
41 #define HD2532_CW_F 0x08 /* flash enable */
42 #define HD2532_CW_B(x) ((x)&7) /* Brightness */
43 #define HD2532_CW_BMASK 0x07 /* Brightness 100% */
44 #define HD2532_CW_B100 0x00 /* Brightness 100% */
45 #define HD2532_CW_B80 0x01 /* Brightness 80% */
46 #define HD2532_CW_B53 0x02 /* Brightness 53% */
47 #define HD2532_CW_B40 0x03 /* Brightness 40% */
48 #define HD2532_CW_B27 0x04 /* Brightness 27% */
49 #define HD2532_CW_B20 0x05 /* Brightness 20% */
50 #define HD2532_CW_B13 0x06 /* Brightness 13% */
51 #define HD2532_CW_B0 0x07 /* Brightness 0% */