Jump to content
Sign in to follow this  
jelodavid

Proper Preprocessor Directives And Configs

Recommended Posts

hello and g'day to all!

i just wanna ask what's the proper syntax for preprocessor directives and device configuration on boostc?

 

 

here's the partial part of the program:

 

#include <system.h>

#pragma CLOCK_FREQ 4000000

 

 

asm

{

list p=16F84A

__config 0x3ff9

}

 

 

..and i always got this errors:

 

REPEL.c(7): error: error in built-in assembly

REPEL.c(8): error: error in built-in assembly

failure

Share this post


Link to post
Share on other sites

jelodavid,

 

When using BoostC compiler you need to use:

 

#pragma DATA _CONFIG, _CP_OFF & _XT_OSC & _WDT_ON (I just randomly made this up)

 

or

 

#pragma DATA _CONFIG, 0x3FF9

 

Regards

Dave

Share this post


Link to post
Share on other sites

jelodavid,

 

Sorry can't help with the GALEP 4 programmer.

Please create another topic with a request for this.

 

BTW:

 

#pragma DATA

usage is covered in the BoostC help file :blink:

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...