User manual

Table Of Contents
mikroC PRO for PIC32
MikroElektronika
147
Built-in Routines
The mikroC PRO for PIC32 compiler provides a set of useful built-in utility functions.
The Lo, Hi, Higher, Highest, LoWord, HiWord routines are implemented as macros. If you want to use
these functions you must include built_in.h header le (located in the inlclude folder of the compiler) into your
project.
The Delay_us and Delay_ms routines are implemented as “inline”; i.e. code is generated in the place of a call, so the
call doesn’t count against the nested call limit.
The Vdelay_ms, Vdelay_advanced_ms, Delay_Cyc, Delay_Cyc_Long, Get_Fosc_kHz and Get_
Fosc_Per_Cyc are actual C routines. Their sources can be found in Delays.c le located in the uses folder of the
compiler.
- Lo
- Hi
- Higher
- Highest
- LoWord
- HiWord
- Delay_us
- Delay_ms
- Vdelay_ms
- Vdelay_Advanced_ms
- Delay_Cyc
- Delay_Cyc_Long
- Clock_kHz
- Clock_MHz
- Get_Fosc_kHz
- Get_Fosc_Per_Cyc
- KVA0_TO_KVA1
- KVA1_TO_KVA0
- KVA_TO_PA
- PA_TO_KVA0
- PA_TO_KVA1
- CP0_Get
- CP0_Set
- EnableInterrupts
- DisableInterrupts
Note: The #pragma funcall directive can help the linker to optimize function frame allocation in the compiled stack.
Related topics: Linker Directives