Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
Clock_KHz
Clock_MHz
SetFuncCall
106
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Specifics
mikroPASCAL PRO for AVR
CHAPTER 3
Prototype
function Clock_KHz(): word;
Returns
Device clock in KHz, rounded to the nearest integer.
Description
Function returns device clock in KHz, rounded to the nearest integer.
This is an “inline” routine; code is generated in the place of the call, so the call
doesn’t count against the nested call limit.
Requires
Nothing.
Example
clk := Clock_kHz();
Prototype
function Clock_MHz(): byte;
Returns
Device clock in MHz, rounded to the nearest integer.
Description
Function returns device clock in MHz, rounded to the nearest integer.
This is an “inline” routine; code is generated in the place of the call, so the call
doesn’t count against the nested call limit.
Requires
Nothing.
Example
clk := Clock_MHz();
Prototype
procedure SetFuncCall(FuncName: string);
Returns
Nothing.
Description
Function informs the linker about a specific routine being called. SetFuncCall
has to be called in a routine which accesses another routine via a pointer.
Function prepares the caller tree, and informs linker about the procedure usage,
making it possible to link the called routine. 
Requires
Nothing.
Example
procedure first(p, q: byte);
begin
...
SetFuncCall(second); // let linker know that we will call the
routine 'second'
...
end