Some random but useful functions.
More...
|
|
char | getCpuSpeed () __naked __z88dk_sdccdecl |
| Get the current cpu speed.
|
|
void | setCpuSpeed (char speed) __naked __z88dk_fastcall |
| Set the current cpu speed.
|
|
unsigned int | getTime () __naked __z88dk_sdccdecl |
| Get bottom bytes of realtime clock.
|
|
void | wait (unsigned char x) __naked __z88dk_fastcall |
| Wait for amount of time (1/8th of sec)
|
|
char | isqrt (unsigned int val) |
| DEPRECATED Int square root
|
|
Some random but useful functions.
Optional #defines
◆ getCpuSpeed()
◆ getTime()
◆ isqrt()
char isqrt |
( |
unsigned int | val | ) |
|
DEPRECATED Int square root
- Parameters
-
- Returns
- char value of sqrt(val)
This function is DEPRECATED and slow! Please use sqrt_rounded() in fast_math.c
◆ setCpuSpeed()
void setCpuSpeed |
( |
char | speed | ) |
|
Set the current cpu speed.
- Parameters
-
◆ wait()
void wait |
( |
unsigned char | x | ) |
|
Wait for amount of time (1/8th of sec)
- Parameters
-
[x] | Amount of time to wait in intervals of 1/8th of a secound |