Specifications

19
MC68340.H
#ifndef __MC68340_H
#define __MC68340_H
#define MCBASE 0xFFFFF000
/**********************System Integration Module (SIM)**********************/
#define AVR *(unsigned char *) (MCBASE + 0x006)
#define RSR *(unsigned char *) (MCBASE + 0x007)
#define PORTA *(unsigned char *) (MCBASE + 0x011)
#define DDRA *(unsigned char *) (MCBASE + 0x013)
#define PPARA1 *(unsigned char *) (MCBASE + 0x015)
#define PPARA2 *(unsigned char *) (MCBASE + 0x017)
#define PORTB *(unsigned char *) (MCBASE + 0x019)
#define PORTB1 *(unsigned char *) (MCBASE + 0x01B)
#define DDRB *(unsigned char *) (MCBASE + 0x01D)
#define PPARB *(unsigned char *) (MCBASE + 0x01F)
#define SWIV *(unsigned char *) (MCBASE + 0x020)
#define SYPCR *(unsigned char *) (MCBASE + 0x021)
#define SWSR *(unsigned char *) (MCBASE + 0x027)
#define SIMMCR *(unsigned short int *) (MCBASE + 0x000)
#define SYNCR *(unsigned short int *) (MCBASE + 0x004)
#define PICR *(unsigned short int *) (MCBASE + 0x022)
#define PITR *(unsigned short int *) (MCBASE + 0x024)
#define CSAMR0 *(unsigned int *) (MCBASE + 0x040)
#define CSBAR0 *(unsigned int *) (MCBASE + 0x044)
#define CSAMR1 *(unsigned int *) (MCBASE + 0x048)
#define CSBAR1 *(unsigned int *) (MCBASE + 0x04C)
#define CSAMR2 *(unsigned int *) (MCBASE + 0x050)
#define CSBAR2 *(unsigned int *) (MCBASE + 0x054)
#define CSAMR3 *(unsigned int *) (MCBASE + 0x058)
#define CSBAR3 *(unsigned int *) (MCBASE + 0x05C)
/***************************************************************************/
/************************Direct Memory Access (DMA)*************************/
#define DMAMCR1 *(unsigned short int *) (MCBASE + 0x780)
#define INTR1 *(unsigned short int *) (MCBASE + 0x784)
#define CCR1 *(unsigned short int *) (MCBASE + 0x788)
#define CSR1 *(unsigned char *) (MCBASE + 0x78A)
#define FCR1 *(unsigned char *) (MCBASE + 0x78B)
#define SAR1 *(unsigned int *) (MCBASE + 0x78C)
#define DAR1 *(unsigned int *) (MCBASE + 0x790)
#define BTC1 *(unsigned int *) (MCBASE + 0x794)
#define DMAMCR2 *(unsigned short int *) (MCBASE + 0x7A0)
#define INTR2 *(unsigned short int *) (MCBASE + 0x7A4)
#define CCR2 *(unsigned short int *) (MCBASE + 0x7A8)
#define CSR2 *(unsigned char *) (MCBASE + 0x7AA)
#define FCR2 *(unsigned char *) (MCBASE + 0x7AB)
#define SAR2 *(unsigned int *) (MCBASE + 0x7AC)
#define DAR2 *(unsigned int *) (MCBASE + 0x7B0)
#define BTC2 *(unsigned int *) (MCBASE + 0x7B4)
/***************************************************************************/
/*****************************Serial Modules********************************/
#define SMCR *(unsigned short int *) (MCBASE + 0x700)
#define ILR *(unsgined char *) (MCBASE + 0x704)
#define IVR *(unsigned char *) (MCBASE + 0x705)
#define MR1A *(unsigned char *) (MCBASE + 0x710)
#define SRA *(unsigned char *) (MCBASE + 0x711)
#define CSRA *(unsigned char *) (MCBASE + 0x711)
#define CRA *(unsigned char *) (MCBASE + 0x712)
#define RBA *(unsigned char *) (MCBASE + 0x713)
#define TBA *(unsigned char *) (MCBASE + 0x713)










