Conditional Compilation directives list

Discuss the Firewing language

Conditional Compilation directives list

Postby Timbo » Mon Jun 01, 2015 3:37 pm

Hi,

Is there a list of the system directives

I see code like

#if _clock = 3 Or _clock = 4 Or _clock = 8 Or _clock = 10

Really at this time I'm looking how to do conditional code for the Firewing18 and Firewing24 boards but cannot find the _device xxx constant eg:-

#If _FireWIng18 then

#Else

#End if
Timbo
 
Posts: 93
Joined: Fri May 03, 2013 7:51 pm

Re: Conditional Compilation directives list

Postby Jerry Messina » Mon Jun 01, 2015 4:48 pm

You could directly check for the '_device' , ie
Code: Select all
#if (_device = 18F26K22)
#elseif (_device = 24HJ128GP504)
#endif

or to pick between pic18/pic24 you could just check for the '_core' type
Code: Select all
#if (_core = 18)      // pic18
#elseif (_core = 24)  //pic24
#elseif (_core = 32)  // pic32
#endif
Jerry Messina
 
Posts: 280
Joined: Thu Feb 14, 2013 10:16 am


Return to Language

Who is online

Users browsing this forum: No registered users and 3 guests

cron

x