DRAFT
DRAFT DRAFT DR
DRAFT DRAFT DRAFT
D
RAF
DRAFT DRAFT DRA
FT D
RAFT DR
AFT D
DRA
FT DRAFT DRAFT
D
RAFT
DRAFT
D
RAFT
DRA
UM10601
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
Preliminary user manual
Rev. 1.0 — 7 November 2012
264 of 313
NXP Semiconductors
UM10601
Chapter 22: LPC800 Power profile API ROM driver
The following definitions are needed for set_power routine calls:
/* set_power mode options */
#define
PWR_DEFAULT
0
#define
PWR_CPU_PERFORMANCE 1
#define
PWR_EFFICIENCY
2
#define
PWR_LOW_CURRENT
3
/* set_power result0 options */
#define
PWR_CMD_SUCCESS
0
#define
PWR_INVALID_FREQ
1
#define
PWR_INVALID_MODE
2
Fig 39. Power profiles usage
XVLQJSRZHUSURILOHVDQG
FKDQJLQJV\VWHPFORFN
FXUUHQWBFORFN
QHZBFORFN QHZBPRGH
XVHSRZHUURXWLQHFDOO
WRFKDQJHPRGHWR
'()$8/7
XVHHLWKHUFORFNLQJURXWLQHFDOORU
FXVWRPFRGHWRFKDQJHV\VWHPFORFN
IURPFXUUHQWBFORFNWRQHZBFORFN
XVHSRZHUURXWLQHFDOO
WRFKDQJHPRGHWR
QHZBPRGH
HQG
Table 249. set_power routine
Routine
set_power
Input
Param0:
main clock (in MHz)
Param1:
mode (PWR_DEFAULT, PWR_CPU_PERFORMANCE, PWR_
EFFICIENCY, PWR_LOW_CURRENT)
Param2:
system clock (in MHz)
Result
Result0:
PWR_CMD_SUCCESS | PWR_INVALID_FREQ |
PWR_INVALID_MODE