jelodavid 0 Posted February 27, 2005 Report Share Posted February 27, 2005 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 Quote Link to post Share on other sites
Dave 0 Posted February 27, 2005 Report Share Posted February 27, 2005 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 Quote Link to post Share on other sites
jelodavid 0 Posted February 27, 2005 Author Report Share Posted February 27, 2005 thank you very much for fast reply. BTW, do you have any idea on how to invoke the GALEP 4 programmer to Sourceboost? Quote Link to post Share on other sites
Dave 0 Posted February 27, 2005 Report Share Posted February 27, 2005 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 Quote Link to post Share on other sites
Recommended Posts
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.