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 2

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

Portable_Speed2 2

(SWI &42FCE)
Entry  
R0 2 (Reason code)
R1 Desired ‘slow’ speed, in MHz
R2 Desired ‘fast’ speed, in MHz
Exit  
R0 Preserved
R1 New ‘slow’ speed, in MHz
R2 New ‘fast’ speed, in MHz

Use

The purpose of this call is to allow the user to select the clock speeds that are associated with Portable_Speeds ‘slow’ and ‘fast’ settings. The values the user supplies in R1 and R2 will be matched to the set of speeds that the hardware supports, and the updated values, representing the new speeds that will actually be used, will be returned to the caller.

Notes

Portable_Speed2 8 provides similar functionality to this call, but the speeds are expressed as indices into the list of available speeds, not as raw MHz values.

To read the currently configured ‘slow’ and ‘fast’ speeds, use Portable_Speed2 3.

To find out more information about the available CPU speeds, see Portable_Speed2 4 and Portable_Speed2 5. To find the current CPU speed, see Portable_Speed2 0.

See also

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

Search the Wiki

Social

Follow us on and

Commercial use

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

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

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