3 Replies Latest reply on Jan 19, 2014 2:16 PM by user_1377889

    Compiler #define question

    user_301665782

      Hi every one.!

         

      I'm tryinng to adapt source code from EZRadioPro from Silicon Lab.  I want to develop code right through PSoC 3 for radio tranceiver module RFM22B,( from HopeRF) which include si4430 chip.

         

       I have alrready developed code for bidirectional link with ACK and work OK with PSoc 3.

         

      Now I would like one more step and I would like FHSS modulation( frecuency hopping spread spectrum) , so I can get better answer due to signal multifading .

         

      Thera are some code from Silicon lab , but  they use   SDCC  and  compiler_defs.h. There are for some global variable declaration such as :      

         

      " # define SEGMENT_VARIABLE(name, vartype, locsegment) vartype locsegment name "

         

      My issue is  that I don't known how use the equivalent declaration in PSoc 3 .

         

      I don't want to copy the code, only I want to understand what does this declartion mean.

         

      For reference I will paste here a link to take a look  what compiler_defs.h does.

         

      http://www.keil.com/dd/docs/c51/cygnal/compiler_defs.h

         

      I hope someone can tell me how use this declaration on PSoC 3

         

       

         

      Thank you very much in advance.