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

HAL NVRAM API

Hardware Abstraction Layer
» List of HAL APIs
» HAL NVRAM API

The HAL should provide at least 240 bytes of non-volatile memory. If no non-volatile memory is available, the HAL may provide fake NVRAM contents suitable for RISC OS – however, it is preferable that the HAL just state that NVRAM is not available, and RISC OS will act as though a CMOS reset has been performed every reset.

NVRAM is typically implemented as an IIC device, so the calls are permitted to be slow, and to enable interrupts. The HAL is not expected to cache contents.

If the HAL has no particular knowledge of NVMemory, then it may just say that “NVMemory is on IIC”, and the OS will probe for CMOS/EEPROM devices on the IIC bus.

Entry points

Items marked ¶ are internal calls for OS use only; their functionality and availability is subject to change without warning. User programs interested in using these calls should instead use the equivalent RISC OS SWI call (if available).

  • HAL_NVMemoryType ¶
  • HAL_NVMemorySize ¶
  • HAL_NVMemoryPageSize ¶
  • HAL_NVMemoryProtectedSize ¶
  • HAL_NVMemoryProtection ¶
  • HAL_NVMemoryIICAddress ¶
  • HAL_NVMemoryRead ¶
  • HAL_NVMemoryWrite ¶
Information source: Kernel.Docs.HAL.HAL_API in CVS
Revised on February 8, 2012 13:41:56 by Jeffrey Lee (213) (195.72.173.130)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: HAL entry points from RISC OS, List of HAL APIs, HAL IIC API, HAL_NVMemoryPageSize, HAL_NVMemoryProtectedSize, HAL_NVMemoryProtection, HAL_NVMemorySize, HAL_NVMemoryType, HAL_NVMemoryWrite, OS_NVMemory, OMAP3 HAL, HAL_NVMemoryIICAddress, HAL_NVMemoryRead

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