20
"C" Programming Guide For Optimus S/R
3.1 System
3.1.1 General
ChangeSpeed
Purpose
To change the CPU running speed.
Syntax
void ChangeSpeed (int speed);
Example
ChangeSpeed (4);
Description
When high speed operation is not necessary, selecting slower CPU speed can
save battery power. The parameter
speed
is set to one of the following values:
1
Sixteenth
2
Eighth
3
Quarter
4
Half
5
Full
Return
None
CheckWakeUp
Optimus S
Purpose
To check the wakeup event.
Syntax
int CheckWakeUp (void);
Example
event = CheckWakeUp();
Description
This routine checks on the wakeup event.
Return
The return value can be one of the following:
POWER_KEY_PRESSED (1)
The POWER key is pressed.
CHARGE_OK (2)
Charging is completed.
TIME_IS_UP (3)
The alarm time is up.
_KeepAlive__
Purpose
To let the user program keep on running and prevent it from being
automatically shut down by the system.
Syntax
void _KeepAlive__ (void);
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...