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

What is difference between test program and driver ?

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



Joined: 02 May 2012
Posts: 16

View user's profile Send private message

What is difference between test program and driver ?
PostPosted: Wed May 02, 2012 9:06 am     Reply with quote

Could someone help me ? Am a beginner with CCS, I don't see the difference between the test program and and the driver code. What should I put in the PICC to compile ?

ex.
http://www.ccsinfo.com/forum/viewtopic.php?t=27988
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Wed May 02, 2012 10:49 am     Reply with quote

Hi,

They are both required. The "driver" contains functions that directly read and write to the external hardware (in this case an RTC), and the "test program" contains calls to these functions, and display routines to output the data.

I use the command line version of the PCM compiler with MPLAB IDE. I would create a working program using this code by placing both files inside the same directory, and then compiling the test program using the CCS compiler. It will automatically find the driver file (notice that it's referenced in the test program), and do everything necessary to make the block of code you would program into your PIC.

John
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