Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).
|
I like to control AIC in EVM5409 from Spectrum Digital (AD50). I found some example code in asm file to do that and now I like to call those functions from 'C' file. In example source code, many initializations are done using .set command at the beginning of code like IMR .set 000h I_SPCR1 . set 00020h p0_serialflag .set 060h I tried substituting those code with STM asm command like 'STM #000h, IMR' but c compiler(CC1.2) don't know some of those registers' name and gives compile time error.(But it produces object file which I can't understand as well) and of course the resulting object code doesn't work correctly. I think those initialization must be done before the use of AIC. welcome any comments and advice. Thank you |
|
|
|
On Sat, 27 Jan 2001 22:31:26 +0900, you wrote:
>IMR .set 000h >I_SPCR1 . set 00020h >p0_serialflag .set 060h > >I tried substituting those code with STM asm command like 'STM #000h, IMR' The .set assembly directive is the equivelant of the 'c' #define directive. It is setting up the memory locations for those registers. Brian ----------------------------------------------------- Brian C. Lane Programmer www.shinemicro.com RF & Microcontroller Design |