Jump to content

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





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


Link to post
Share on other sites



When using BoostC compiler you need to use:


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




#pragma DATA _CONFIG, 0x3FF9




Link to post
Share on other sites



Sorry can't help with the GALEP 4 programmer.

Please create another topic with a request for this.




#pragma DATA

usage is covered in the BoostC help file :blink:

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.

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.

  • Create New...