RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Portable_Speed2

Programmer's Reference Manuals
» Part 15 – SWI Calls
» Portable
» Portable_Speed2

Portable_Speed2

(SWI &42FCE)
Entry
R0 Reason code
All other registers are dependent on reason code
Exit
All registers dependent on reason code

Use

The purpose of this call is to provide extra functionality not available through Portable_Speed.

Notes

The action performed depends on the reason code value in R0.

Reason Codes

# Hex # Action
00 &00 Report current CPU speed in MHz
01 &01 Report min & max CPU speed in MHz
02 &02 Set 'slow' and 'fast' speeds in MHz
03 &03 Report current 'slow' and 'fast' speeds in MHz
04 &04 Report number of CPU speeds available
05 &05 Convert speed index to MHz
06 &06 Convert MHz to index
07 &07 Report current CPU speed as index
08 &08 Set 'slow' and 'fast' speeds using indices
09 &09 Report current 'slow' and 'fast' speed indices

See also

  • Portable SWI Calls
  • Portable_Speed
Created on March 19, 2011 20:11:22 by Jeffrey Lee (213) (91.84.11.161)
Edit | Views: Print | Source | Linked from: Portable_Speed, Portable_Speed2 1, Portable_Speed2 5, Portable_Speed2 4, Portable_Speed2 6, Portable_Speed2 0, Portable_Speed2 7, Portable_Speed2 2, Portable_Speed2 8, Portable_Speed2 3, Portable_Speed2 9, HALDeviceSysPeri_CPUClk, Portable Feature Matrix, Portable SWI Calls

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys