AnsweredAssumed Answered

Issue regarding the multiple condition preprocessor definition on VDSP++ for analog processor

Question asked by eshwarts on Jun 17, 2014
Latest reply on Jun 18, 2014 by DavidS

@Hi guys, the below code has issue@ for the multiple condition preprocessor definition. And we do provide the preprocessor definition using the tool VDSP++.

Project => compile => Pre-processor => Preprocessor_definitions

eg.  DSP_NAME=DSP_NAME_DON

for this case, DSP_ID takes the value 0x01 instead of 0x06.

Please provide any suggestions on the issue.

 

#if DSP_NAME == DSP_NAME_ART

    #define DSP_ID      0x01

    #define __ART__

#elif   DSP_NAME == DSP_NAME_BUD 

   #define DSP_ID      0x02

    #define __BUD__

#elif   DSP_NAME == DSP_NAME_BEV    

  #define DSP_ID      0x03

    #define __BEV__

#elif   DSP_NAME == DSP_NAME_CAL

  #define DSP_ID      0x04

   #define __CAL__

#elif   DSP_NAME == DSP_NAME_CHE

  #define DSP_ID      0x05

  #define __CHE__

#elif   DSP_NAME == DSP_NAME_DON

#define DSP_ID      0x06

  #define __DON__

#endif

Outcomes