fixcing the init-routines!
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -52,7 +52,7 @@ int SoftReset(APTR *BaseAddress){
|
||||
{
|
||||
WRITEREG(BaseAddress,EUDAST, w);
|
||||
v=READREG(BaseAddress, EUDAST);
|
||||
printf("Read 0x%x at register 0x%x (should be 0x%x)\n",v,EUDAST,w);
|
||||
printf("Read 0x%x at register 0x%lx (should be 0x%x)\n",v,(volatile BYTE *)(BaseAddress)+(EUDAST),w);
|
||||
} while(v != w);
|
||||
|
||||
// Issue a reset and wait for it to complete
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
#define VERSION_STRING "1.1"
|
||||
#define CIA_TST (*(volatile BYTE *)(0XBFE301)) //cia call 1.4micro sec
|
||||
#define CHP_TST (*(volatile WORD *)(0X000004)) //chip mem call 400ns
|
||||
#define WRITEREG(a,b,c) (*(volatile WORD *)((a)+(b)))=((WORD)(c))
|
||||
#define READREG(a,b) ((WORD)(*(volatile WORD *)((a)+(b))))
|
||||
#define SETREG(a,b,c) (*(volatile WORD *)((a)+(b)+(SET_OFFSET)))=((WORD)(c))
|
||||
#define CLRREG(a,b,c) (*(volatile WORD *)((a)+(b)+(CLR_OFFSET)))=((WORD)(c))
|
||||
#define WRITEREG(a,b,c) (*(volatile WORD *)((volatile BYTE *)(a)+(b)))=((WORD)(c))
|
||||
#define READREG(a,b) ((WORD)(*(volatile WORD *)((volatile BYTE *)(a)+(b))))
|
||||
#define SETREG(a,b,c) (*(volatile WORD *)((volatile BYTE *)(a)+(b)+(SET_OFFSET)))=((WORD)(c))
|
||||
#define CLRREG(a,b,c) (*(volatile WORD *)((volatile BYTE *)(a)+(b)+(CLR_OFFSET)))=((WORD)(c))
|
||||
|
||||
|
||||
struct Library *ExpansionBase=NULL;
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user