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

Specific code

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



Joined: 19 Dec 2014
Posts: 16

View user's profile Send private message

Specific code
PostPosted: Sun Apr 02, 2017 2:27 am     Reply with quote

Hi all,
Is there a document that show the full code of
Spi write
Spi read
Write eeprom
Read eeprom
?
Ttelmah



Joined: 11 Mar 2010
Posts: 19548

View user's profile Send private message

PostPosted: Sun Apr 02, 2017 5:36 am     Reply with quote

Compile the functions.
Look at the .lst file.
Shows the assembler used for the functions.

There is not actually a 1:1 answer, since the code will vary, according to what eeprom hardware the chip has, and which spi port is being used, (and if using spi_xfer, how many bytes are being sent, and whether hardware/software spi is being used).
temtronic



Joined: 01 Jul 2010
Posts: 9245
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Apr 02, 2017 6:27 am     Reply with quote

Mr. T is 100% correct ! CCS does not 'hide' anything. As he said , cut code/compile/ dump listing. It's ALL there for you to see.

Jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19548

View user's profile Send private message

PostPosted: Sun Apr 02, 2017 6:48 am     Reply with quote

By default they do hide some stuff....
Not 'to be awkward', but so the listing is only of _your_ code, to simplify debugging. So core functions like the maths are not shown, unless you remark out the #NOLIST line at the start of the processor include file.
However do this, and set the project options to generate symbolic listings, and you even get the registers 'named' for you. Very Happy
The functions though are much more complex than you may expect. They are almost invariably massively 'overloaded', so several different versions depending on a whole variety of parameters. Only the one that applies to your source, will be included in the final code.
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