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 9

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

Portable_Speed2 9

(SWI &42FCE)
Entry  
R0 9 (Reason code)
Exit  
R0 Preserved
R1 Currently configured ‘slow’ speed, as index
R2 Currently configured ‘fast’ speed, as index

Use

The purpose of this call is to read the currently configured ‘slow’ and ‘fast’ speeds. These are the speeds that Portable_Speed will use when asked to switch the CPU to either the ‘slow’ or ‘fast’ speed.

Notes

Portable_Speed2 3 provides similar functionality to this call, but the speeds will be expressed as MHz values instead of speed indices.

Due to hardware restrictions or for performance reasons, most systems will only support a limited number of CPU clock rates. Portable_Speed2 4, Portable_Speed2 5, and Portable_Speed2 6 allow the user to enumerate the list of available clock rates. Index 0 is always the slowest available speed, and (return value of Portable_Speed2 4)-1 is always the highest available speed.

To set the CPU speed, see Portable_Speed2 2 or Portable_Speed2 8 (to set the desired ‘slow’ and ‘fast’ speeds), and Portable_Speed (to switch between the configured ‘slow’ and ‘fast’ speeds).

See also

  • Portable SWI Calls
  • Portable_Speed
  • Portable_Speed2
  • Portable_Speed2 2
  • Portable_Speed2 4
  • Portable_Speed2 5
  • Portable_Speed2 6
  • Portable_Speed2 8
Created on March 19, 2011 21:09:22 by Jeffrey Lee (213) (91.84.11.161)
Edit | Views: Print | Source | Linked from: Portable_Speed2, Portable_Speed2 8, Portable_Speed2 3

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