1 | /*
|
---|
2 | =============================================================================
|
---|
3 | fpu.h -- FPU definitions
|
---|
4 | Version 4 -- 1987-11-05 -- D.N. Lynx Crowe
|
---|
5 | =============================================================================
|
---|
6 | */
|
---|
7 |
|
---|
8 | /* preprocessor functions */
|
---|
9 |
|
---|
10 | #define FPUVAL(x) ((x) << 5)
|
---|
11 |
|
---|
12 | /* FPU data areas (word offsets) */
|
---|
13 |
|
---|
14 | #define FPU_OWST 0x00000000L /* waveshape tables */
|
---|
15 | #define FPU_OFNC 0x00002000L /* functions */
|
---|
16 | #define FPU_OINT 0x00002000L /* interrupt read address */
|
---|
17 | #define FPU_OICL 0x00003000L /* interrupt clear address */
|
---|
18 | #define FPU_OCFG 0x00002FF0L /* configuration words */
|
---|
19 | #define FPU_OSYN 0x00002FFFL /* sync word */
|
---|
20 |
|
---|
21 | /* FPU time limits */
|
---|
22 |
|
---|
23 | #define FPU_MAXT 0xFFF0 /* FPU maximum time (65520 ms) */
|
---|
24 | #define FPU_MINT 0x800F /* FPU minimum time (1 ms) */
|
---|
25 |
|
---|
26 | /* FPU value limits */
|
---|
27 |
|
---|
28 | #define VALMAX (1000 << 5)
|
---|
29 | #define VALMIN (-1000 << 5)
|
---|
30 |
|
---|
31 | /* FPU data types */
|
---|
32 |
|
---|
33 | #define FPU_TCTL 0 /* control */
|
---|
34 | #define FPU_TNV0 1 /* new value[0] -- '10' in new value select */
|
---|
35 | #define FPU_TCV1 4 /* voltage 1 */
|
---|
36 | #define FPU_TSF1 5 /* scale factor 1 */
|
---|
37 | #define FPU_TCV2 6 /* voltage 2 */
|
---|
38 | #define FPU_TSF2 7 /* scale factor 2 */
|
---|
39 | #define FPU_TCV3 8 /* voltage 3 */
|
---|
40 | #define FPU_TSF3 9 /* scale factor 3 */
|
---|
41 | #define FPU_TMNT 10 /* time mantissa */
|
---|
42 | #define FPU_TEXP 11 /* time exponent */
|
---|
43 | #define FPU_TNV1 14 /* new value[1] -- '01' in new value select */
|
---|