Sign in

username:

password:



Not a member?

Search motoroladsp



Search tips

Subscribe to motoroladsp



motoroladsp by Keywords

56303 | 563xx | 5680 | 56805 | 5680x | 56F80 | 56F800DEMO | 56F805 | 56f807 | 56F830 | ADC | Bootloader | Codec | CodeWarrior | CW5 | CW6 | Debugger | DSP56303 | DSP56303EVM | DSP563xx | DSP5680 | DSP56800 | DSP56807 | DSP56858 | DSP56858EVM | DSP56F803 | DSP56F805 | DSP56F807 | DSP56F80x | DSP56F826 | DSP56F827 | DSP56F8xx | EVM | FFT | Flash_over_jtag | GPIO | Interrupt | Interrupts | JTAG | LCD | Linker | MCF5307 | Metrowerks | Modulus | MSCAN | PCMaster | PWM | Quad | Rif | RTOS | SDK | SPI

Discussion Groups

Discussion Groups | Freescale DSPs | CW5.1 Predefined Macro for Target Board

Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).

  

Post a new Thread

CW5.1 Predefined Macro for Target Board - kj831ca - Nov 19 19:45:00 2003



Hi,

Does anybody know if there is a predefined macro that would allow me
to know which target board is being used in the project? I'm trying to
write my own on-chip portable code for both DSP56F805 and
DSP56F807 something like as belows :

#if (TARGET = DSP56F805)
#define TIMER_A_0_BASE 0x0D00
#endif
#if (TARGET = DSP56F807)
#define TIMER_A_0_BASE 0x1100
#endif

Best Regards
Kris





(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )

RE: CW5.1 Predefined Macro for Target Board - Leonard N. Elevich - Nov 19 21:09:00 2003

You can do this by utilizing target feature of the CodeWarrior. You can create multiple targets (one for each chip) and have different settings for each of the target. As you change target via pull-down menu, CodeWarrior will automatically change settings. As part of the settings, you can have predefined macros (in the Prefix Text of the Preprocessor settings). Using this target mechanism, you can also switch between different linker.cmd files, which you will have to do if you want to go from 56F805 to 56F807.

 

Before you start on this road however, I would like to point out that the latest CodeWarrior 6.0 and Processor Expert probably already has the software you are trying to create... you should check it out.

 

Leonard

 

 

-----Original Message-----
From: kj831ca [mailto:k...@yahoo.com]
Sent: Wednesday, November 19, 2003 12:45 PM
To: m...@yahoogroups.com
Subject: [motoroladsp] CW5.1 Predefined Macro for Target Board

 

Hi,

 

Does anybody know if there is a predefined macro that would allow me

to know which target board is being used in the project? I'm trying to

write my own on-chip portable code for both DSP56F805 and

DSP56F807 something like as belows :

 

#if  (TARGET = DSP56F805)

#define TIMER_A_0_BASE   0x0D00

#endif

#if  (TARGET = DSP56F807)

#define TIMER_A_0_BASE   0x1100

#endif

 

Best Regards

Kris

 

 

 

------------------------ Yahoo! Groups Sponsor ---------------------~-->

Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark

Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.

http://www.c1tracking.com/l.asp?cid=5511

http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/PNArlB/TM

---------------------------------------------------------------------~->

 

_____________________________________

/groups.php3

 

 





(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )