hi, i am getting the error " too many arguments in macro invocation "
- i checked with the register for the mcbsp and the bits defined hold good.
- the file is an example dma file from TI. i have attached it
- i am using ccs v3.1 in win xp os
plz help me clear the errors, the error code is below, the error statements are at the end,
1.) MCBSP_SPCR1_RMK(
MCBSP_SPCR1_DLB_ON, /* DLB = 1 */
MCBSP_SPCR1_RJUST_RZF, /* RJUST = 0 */
MCBSP_SPCR1_CLKSTP_DISABLE, /* CLKSTP = 0 */
MCBSP_SPCR1_DXENA_NA, /* DXENA = 0 */
// MCBSP_SPCR1_ABIS_DISABLE, /* ABIS = 0 */
MCBSP_SPCR1_RINTM_RRDY, /* RINTM = 0 */
0, /* RSYNCER = 0 */
0, /* RFULL = 0 N/A */
0, /* RRDY = 0 N/A */
MCBSP_SPCR1_RRST_DISABLE /* RRST = 0 */ - first error is here
),
2.) MCBSP_SPCR2_RMK(
MCBSP_SPCR2_FREE_NO, /* FREE = 0 */
MCBSP_SPCR2_SOFT_NO, /* SOFT = 0 */
MCBSP_SPCR2_FRST_FSG, /* FRST = 0 */
MCBSP_SPCR2_GRST_CLKG, /* GRST = 0 */
MCBSP_SPCR2_XINTM_XRDY, /* XINTM = 0 */
0, /* XSYNCER = N/A */
0, /* XEMPTY = N/A */
0, /* XRDY = N/A */ - Second error is here
MCBSP_SPCR2_XRST_DISABLE /* XRST = 0 */
),
3.) MCBSP_PCR_RMK(
MCBSP_PCR_IDLEEN_RESET, /* IDLEEN = 0 */
MCBSP_PCR_XIOEN_SP, /* XIOEN = 0 */
MCBSP_PCR_RIOEN_SP, /* RIOEN = 0 */
MCBSP_PCR_FSXM_INTERNAL, /* FSXM = 1 */
MCBSP_PCR_FSRM_EXTERNAL, /* FSRM = 0 */
MCBSP_PCR_SCLKME_NO, /* SCLKME = 0 */
0, /* CLKSSTAT = N/A */
0, /* DXSTAT = N/A */
0, /* DRSTAT = N/A */
MCBSP_PCR_CLKXM_OUTPUT, /* CLKXM = 1 */
MCBSP_PCR_CLKRM_INPUT, /* CLKRM = 0 */
MCBSP_PCR_FSXP_ACTIVEHIGH, /* FSXP = 0 */
MCBSP_PCR_FSRP_ACTIVEHIGH, /* FSRP = 0 */
MCBSP_PCR_CLKXP_RISING, /* CLKXP = 0 */ - third error is here
MCBSP_PCR_CLKRP_FALLING /* CLKRP = 0 */
),
--------------------------- hab1_dma3.pjt - Debug ---------------------------
[main_dma3.c] "D:\CCStudio_v3.1\C5500\cgtools\bin\cl55" -g -fr"D:/Projects/hab1_dma3/Debug" -d"CHIP_5509A" -@"../../../../../../Projects/hab1_dma3/Debug.lkf" "main_dma3.c"
"main_dma3.c", line 39: error: too many arguments in macro invocation
"main_dma3.c", line 49: error: too many arguments in macro invocation
"main_dma3.c", line 104: error: too many arguments in macro invocation
"main_dma3.c", line 157: warning: nonstandard conversion between pointer to function and pointer to data
3 errors detected in the compilation of "main_dma3.c".
>> Compilation failure
- Build Complete,
3 Errors, 1 Warnings, 0 Remarks.