OpenCores
URL https://opencores.org/ocsvn/openmsp430/openmsp430/trunk

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [fpga/] [actel_m1a3pl_dev_kit/] [software/] [spacewar/] [spacewar.h] - Diff between revs 80 and 82

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 80 Rev 82
Line 15... Line 15...
#define collide 256         // size of rocket for a collision
#define collide 256         // size of rocket for a collision
#define fire_bit 1          // fire button is pressed
#define fire_bit 1          // fire button is pressed
#define time_tick 1         // 10 ms timer tick for system time
#define time_tick 1         // 10 ms timer tick for system time
 
 
#define MY_DAC_X_      0x0190
#define MY_DAC_X_      0x0190
sfrb (MY_DAC_X,MY_DAC_X_);
sfrw (MY_DAC_X,MY_DAC_X_);
#define MY_DAC_X_STAT_ 0x0192
#define MY_DAC_X_STAT_ 0x0192
sfrb (MY_DAC_X_STAT,MY_DAC_X_STAT_);
sfrw (MY_DAC_X_STAT,MY_DAC_X_STAT_);
#define MY_CNTRL1_     0x0194
#define MY_CNTRL1_     0x0194
sfrb (MY_CNTRL1,MY_CNTRL1_);
sfrw (MY_CNTRL1,MY_CNTRL1_);
#define MY_CNTRL2_     0x0196
#define MY_CNTRL2_     0x0196
sfrb (MY_CNTRL2,MY_CNTRL2_);
sfrw (MY_CNTRL2,MY_CNTRL2_);
#define MY_DAC_Y_      0x01A0
#define MY_DAC_Y_      0x01A0
sfrb (MY_DAC_Y,MY_DAC_Y_);
sfrw (MY_DAC_Y,MY_DAC_Y_);
#define MY_DAC_Y_STAT_ 0x01A2
#define MY_DAC_Y_STAT_ 0x01A2
sfrb (MY_DAC_Y_STAT,MY_DAC_Y_STAT_);
sfrw (MY_DAC_Y_STAT,MY_DAC_Y_STAT_);
 
 
/* Description:
/* Description:
The structure contain all the data for each rocket.  Two of these structures
The structure contain all the data for each rocket.  Two of these structures
are defined in main, rkt1 and rkt2.  The xdisp, ydisp is the 12 bit position of
are defined in main, rkt1 and rkt2.  The xdisp, ydisp is the 12 bit position of
the rocket.  The xvel, yvel is the velocity if the rocket. xvel, yvel is added
the rocket.  The xvel, yvel is the velocity if the rocket. xvel, yvel is added

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.