User manual

Table Of Contents
154
mikoC PRO for PIC32
MikroElektronika
Prototype
unsigned int Get_Fosc_Per_Cyc();
Description Function returns device’s clock per cycle, rounded to the nearest integer.
Note that Get_Fosc_Per_Cyc is library function rather than a built-in routine; it is presented in this
topic for the sake of convenience.
Parameters None.
Returns Device’s clock per cycle, rounded to the nearest integer.
Requires Nothing.
Example
unsigned int clk_per_cyc;
...
clk_per_cyc = Get_Fosc_Per_Cyc();
Notes None.
Get_Fosc_Per_Cyc
Prototype
unsigned long KVA0_TO_KVA1(const unsigned long Address);
Description Function converts virtual address from KSEG0 to the virtual address in the KSEG1.
Parameters Desired Virtual address in the KSEG0.
Returns Virtual address in the KSEG1.
Requires Nothing.
Example
KVA0_TO_KVA1(0x9FC00000);
Notes None.
KVA0_TO_KVA1
Prototype
unsigned long KVA1_TO_KVA0(const unsigned long Address);
Description Function converts virtual address from KSEG1 to the virtual address in the KSEG0.
Parameters Desired Virtual address in the KSEG1.
Returns Virtual address in the KSEG0.
Requires Nothing.
Example
KVA1_TO_KVA0(0xBFC00000);
Notes None.
KVA1_TO_KVA0