View previous topic :: View next topic |
Author |
Message |
InterruptHandler
Joined: 10 Dec 2018 Posts: 10
|
Declaration of delay_ms |
Posted: Mon Dec 10, 2018 6:49 am |
|
|
Where is delay_ms function declared? |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9232 Location: Greensville,Ontario
|
|
Posted: Mon Dec 10, 2018 7:34 am |
|
|
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: 19529
|
|
Posted: Mon Dec 10, 2018 7:52 am |
|
|
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'. |
|
|
|