USB-BDI
M:/USB-BDI/USB-BDI/Firmware/MPC555-USB-BDI/include/usbpdi_regs.h
Go to the documentation of this file.
00001 /*      USB-BDI Used for programming and debugging a MPC555 over USB
00002  * 
00003  *  Copyright 2005 NTB Interstate University of Applied Sciences of Technology Buchs
00004  *
00005  *  This program is free software: you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation, either version 3 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  */
00015 
00024 #ifndef _USBPDI_REGS_H_
00025 #define _USBPDI_REGS_H_
00026 
00027 #include "fx2regs.h"
00028 #include "BDI.h"
00029 #include "usbpdi_main.h"
00031 #define ALLOCATE_EXTERN
00032 
00033 #ifdef ALLOCATE_EXTERN
00034 #define EXTERN
00035 
00036 #define _AT_(a) at a
00037 #else
00038 #define EXTERN extern
00039 #define _AT_ ;/ ## /
00040 #endif
00041 
00042 
00043 /*
00044  * development board status leds
00045  * 
00046 xdata _AT_(0x8000) volatile unsigned char LED0_ON;
00047 xdata _AT_(0x8100) volatile unsigned char LED0_OFF;
00048 
00049 xdata _AT_(0x9000) volatile unsigned char LED1_ON;
00050 xdata _AT_(0x9100) volatile unsigned char LED1_OFF;
00051 
00052 xdata _AT_(0xA000) volatile unsigned char LED2_ON;
00053 xdata _AT_(0xA100) volatile unsigned char LED2_OFF;
00054 
00055 xdata _AT_(0xB000) volatile unsigned char LED3_ON;
00056 xdata _AT_(0xB100) volatile unsigned char LED3_OFF;
00057 */
00058 
00059 /*
00060  * Configure Ports (OEx: 0 = input, 1 = output)
00061  */
00062 
00063 // Port A (bit addressable):
00064 #ifdef DEBUG_ON
00065         #define bmPORT_A_OUTPUTS  0xFF
00066 #else
00067 
00068         #define bmPORT_A_OUTPUTS  0
00069 
00070         #define bmPORT_A_INITIAL  0
00071 #endif
00072 
00073 
00074 
00076 #define bmPORT_B_OUTPUTS  0
00077 
00078 #define bmPORT_B_INITIAL  0
00079 
00081 #define bmPORT_C_OUTPUTS 0
00082 
00084 #define bmPORT_D_OUTPUTS  BDIddrInit
00085 
00086 #define bmPORT_D_INITIAL  BDIoutInit
00087 
00089 #define bmPORT_E_OUTPUTS 0
00090 
00091 #define bmPORT_E_INITIAL 0
00092 
00093 #endif 
 All Files Functions Variables Defines