AnsweredAssumed Answered

ADSP BF548 codec problems

Question asked by s3377971 on May 8, 2014
Latest reply on May 13, 2014 by s3377971

Hello everyone, First time poster here so I'm not sure if I'm in the right place. I was recently given a program to work on. I loaded into into VisualDSP++ 5.00 and tried to build it. I kept getting this error:

[quote]

----------------Configuration: DSP_Based_Spectrum_Analyzer - Debug----------------

.\adi_ac97.c

".\adi_ac97.c", line 631: cc0020:  error: identifier

          "ADI_AC97_MODE_CODEC_DATAFLOW_ENABLED" is undefined

                          pAC97->DriverMode = ADI_AC97_MODE_CODEC_DATAFLOW_ENABLED;

                                              ^

 

".\adi_ac97.c", line 642: cc0020:  error: identifier

          "ADI_AC97_MODE_CODEC_DATAFLOW_DISABLED" is undefined

                          pAC97->DriverMode = ADI_AC97_MODE_CODEC_DATAFLOW_DISABLED;

                                              ^

 

".\adi_ac97.c", line 792: cc0020:  error: identifier

          "ADI_AC97_MODE_CODEC_DATAFLOW_ENABLED" is undefined

          if (pAC97->DriverMode == ADI_AC97_MODE_CODEC_DATAFLOW_ENABLED)

                                   ^

 

".\adi_ac97.c", line 1200: cc0020:  error: identifier

          "ADI_AC97_MODE_CODEC_DATAFLOW_DISABLED" is undefined

          else if(pAC97->DriverMode == ADI_AC97_MODE_CODEC_DATAFLOW_DISABLED)

                                       ^

 

4 errors detected in the compilation of ".\adi_ac97.c".

cc3089: fatal error: Compilation failed

Tool failed with exit/exception code: 1.

Build was unsuccessful.

 

 

[/quote]

So apparently I have 2 undefined variables. I've been searching all over the google regarding what their actual values are.Can anyone please help me out here. I'll also include a pastebin of the entire source code for this c file: http://pastebin.com/JLz3N7Ny

Outcomes