Search
lxdream.org :: lxdream/test/lib.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/lib.h
changeset 210:c356f597c896
prev190:f7653df5e832
next278:a66aaa522d31
author nkeynes
date Fri Aug 18 09:31:12 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Add float_read, float_write for fp registers
file annotate diff log raw
1.1 --- a/test/lib.h Wed Aug 02 04:13:15 2006 +0000
1.2 +++ b/test/lib.h Fri Aug 18 09:31:12 2006 +0000
1.3 @@ -16,6 +16,8 @@
1.4 #define ASIC_IRQC2 0xA05f6938
1.5 #define IRQB0_MASK 0x0007B000
1.6
1.7 +#define float_read(A) (*((volatile float*)(A)))
1.8 +#define float_write(A, V) ( (*((volatile float*)(A))) = (V) )
1.9 #define long_read(A) (*((volatile unsigned long*)(A)))
1.10 #define long_write(A, V) ( (*((volatile unsigned long*)(A))) = (V) )
1.11 #define word_read(A) (*((volatile unsigned short*)(A)))
.