Compiler #define question

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
AlVa_264671
Level 5
Level 5
25 sign-ins First like given First like received

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.

0 Likes
3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

There are some memory areas within a 8051 core having special functions as xdata, bdata etc.

   

Look into the system reference guide (to be found under "Help" in Creator 3.0)

   

and into this application note: http://www.cypress.com/?rID=40986 

   

 

   

Bob

0 Likes
AlVa_264671
Level 5
Level 5
25 sign-ins First like given First like received

Thank you so much Bob !!!!

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Alex, you are always welcome!

   

 

   

Bob

0 Likes