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

Declaration of delay_ms

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



Joined: 10 Dec 2018
Posts: 10

View user's profile Send private message

Declaration of delay_ms
PostPosted: Mon Dec 10, 2018 6:49 am     Reply with quote

Where is delay_ms function declared?
temtronic



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

View user's profile Send private message

PostPosted: Mon Dec 10, 2018 7:34 am     Reply with quote

My guess...

If you mean where is it located, it's just another function that CCS supplies, so it's 'declared' within the compiler itself, same as printf(), getc(), rand(), etc.
Ttelmah



Joined: 11 Mar 2010
Posts: 14622

View user's profile Send private message

PostPosted: Mon Dec 10, 2018 7:52 am     Reply with quote

It is _prototyped_ in the header file for the chip. This tells things like
debuggers it's 'nature', but the actual code as Temtronic says is 'built in' to the
compiler.
If you look at the prototypes in the chip's header, you will see these declared
as '_bif'. This is code for 'built in function'.
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