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

how to initialize all the ports and dont use any function?

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



Joined: 07 Mar 2011
Posts: 1
Location: iran-tabriz

View user's profile Send private message Visit poster's website Yahoo Messenger

how to initialize all the ports and dont use any function?
PostPosted: Mon Mar 07, 2011 2:58 am     Reply with quote

I'm new in c ccs, and I want to work with ports without the use of functions.

I'm writing a prototype header file for myself, and define all the things there, then include in each new project, but I face with problem even defining a name for a pin.

Can anyone guide me?
Eddy71ua



Joined: 23 Sep 2009
Posts: 55
Location: Ukraine

View user's profile Send private message Visit poster's website

PostPosted: Mon Mar 07, 2011 7:21 am     Reply with quote

For example:

#DEFINE MyInputPIN PIN_B0;
Ttelmah



Joined: 11 Mar 2010
Posts: 19541

View user's profile Send private message

PostPosted: Mon Mar 07, 2011 9:13 am     Reply with quote

At the end of the day, if there is no code, then there is no code....
You can, as Eddy has pointed out, define things, but these won't have any effect, till code is defined.

Best Wishes
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Mar 07, 2011 5:29 pm     Reply with quote

Quote:
#DEFINE MyInputPIN PIN_B0;

Except don't put a semi-colon at the end of the line.
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