CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Error does not make sense

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jameszum



Joined: 31 Jan 2012
Posts: 14

View user's profile Send private message

Error does not make sense
PostPosted: Fri Apr 11, 2014 2:36 pm     Reply with quote

Good Afternoon
I am using the CCS compiler V5.024 with MPLABX V 2.05.
Code:

    CLEAR_INTERRUPT(INT_EXT0);// if an interrupt occurred clear it
    enable_interrupts(INT_EXT0); // turn the external interrupt back on
    CLEAR_INTERRUPT(INT_EXT2);// if an interrupt occurred clear it
    enable_interrupts(INT_EXT2); // turn the external interrupts back on
------The line below  was added  -----------------
 enable_interrupts(GLOBAL);

and i now get an error
Error#12 Undefined identifier GLOBAL

is GLOBAL no longer defined in the CCS compiler ?, or is this a problem
with the MPLABX
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Apr 11, 2014 2:46 pm     Reply with quote

What PIC are you using ? All of this stuff varies, based on what PIC
and what compiler you are using.
jeremiah



Joined: 20 Jul 2010
Posts: 1322

View user's profile Send private message

PostPosted: Fri Apr 11, 2014 5:43 pm     Reply with quote

PIC24s and dsPICs for example use INTR_GLOBAL instead.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group