User manual
mikroBasic PRO for PIC32
MikroElektronika
159
Prototype
sub function PA_TO_KVA0(dim Address as longword) as longword
Description Function converts physical address to the virtual address in the KSEG0.
Parameters Desired physical address.
Returns Appropriate virtual address in the KSEG0.
Requires Nothing.
Example
address = PA_TO_KVA0(0x1D000000)
Notes None.
PA_TO_KVA0
Prototype
sub function PA_TO_KVA1(dim Address as longword) as longword
Description Function converts physical address to the virtual address in the KSEG1.
Parameters Appropriate virtual address in the KSEG1.
Returns Virtual address in the KSEG1.
Requires Nothing.
Example
address = PA_TO_KVA1(0x1D000000)
Notes None.
PA_TO_KVA1
Prototype
sub function CP0_GET(dim const register as TCP0REG) as longword
Description Function returns the value of the coprocessor register or part of the register, based upon the argument
entered.
Parameters Parameter must be a constant from the enumerated built-in constants list, which can be found at the
bottom of this page.
Returns Value of the coprocessor register or part of the register.
Requires Nothing.
Example
dim register_value as longword
register_value = CP0_GET(CP0_CONFIG)
Notes None.
CP0_GET