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 CCS Technical Support

Global variables ??

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



Joined: 07 Oct 2012
Posts: 12

View user's profile Send private message

Global variables ??
PostPosted: Thu Oct 18, 2012 5:31 am     Reply with quote

Is there anyway to declare global variables ?
I want to change the value of a variable in main() from ext_int_isr()

an example will be very helpful !!!
jeremiah



Joined: 20 Jul 2010
Posts: 1345

View user's profile Send private message

PostPosted: Thu Oct 18, 2012 5:43 am     Reply with quote

If you google:
Code:

global variable c


You'll find that one of the first links is a wikipedia page with an example.
Ttelmah



Joined: 11 Mar 2010
Posts: 19496

View user's profile Send private message

PostPosted: Thu Oct 18, 2012 7:06 am     Reply with quote

Or just look in the manual. The very first line of the entry 'Basic Types'.

Best Wishes
mohsin_hashmi



Joined: 07 Oct 2012
Posts: 12

View user's profile Send private message

PostPosted: Thu Oct 18, 2012 8:08 am     Reply with quote

thx alot !
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