amiga_boottest

diff src/hwregs.h @ 4:995d42b33974

serial output
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 23 Feb 2018 13:29:37 +0200
parents 48093e4bd99a
children
line diff
     1.1 --- a/src/hwregs.h	Thu Feb 22 14:46:32 2018 +0200
     1.2 +++ b/src/hwregs.h	Fri Feb 23 13:29:37 2018 +0200
     1.3 @@ -345,6 +345,10 @@
     1.4  #define REG_COPJMP1		REG(REGN_COPJMP1)
     1.5  #define REG_COPJMP2		REG(REGN_COPJMP2)
     1.6  
     1.7 +#define REG_SERPER		REG(REGN_SERPER)
     1.8 +#define REG_SERDATR		REG(REGN_SERDATR)
     1.9 +#define REG_SERDAT		REG(REGN_SERDAT)
    1.10 +
    1.11  /* ------ bits ------- */
    1.12  #define SETBITS(x)	((x) | 0x8000)
    1.13  #define CLRBITS(x)	(x)
    1.14 @@ -425,4 +429,16 @@
    1.15  #define CIAA_PA_FIR0	0x40
    1.16  #define CIAA_PA_FIR1	0x80
    1.17  
    1.18 +enum {
    1.19 +	SERDATR_STOP8	= 0x0100,
    1.20 +	SERDATR_STOP9	= 0x0200,
    1.21 +	SERDATR_RXD		= 0x0800,
    1.22 +	SERDATR_TSRE	= 0x1000,
    1.23 +	SERDATR_TBE		= 0x2000,
    1.24 +	SERDATR_RBF		= 0x4000,
    1.25 +	SERDATR_OVRUN	= 0x8000
    1.26 +};
    1.27 +
    1.28 +#define ADKCON_UARTBRK	0x0800
    1.29 +
    1.30  #endif	/* HWREGS_H_ */