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_KbdScanInterrupt

Hardware Abstraction Layer
HAL entry points from RISC OS
» HAL_KbdScanInterrupt

HAL_KbdScanInterrupt

(HAL entry #104)
int HAL_KbdScanInterrupt(int devno)
Entry
devno Device number which is generating the interrupt
Exit
- Return -1 if the interrupt was handled, else return devno

Use

This is an internal call for OS use only and should not be used by user software.

Attached to the processor IRQ hardware vector – called whenever an IRQ occurs between the calls to HAL_KbdScanSetup and HAL_KbdScanFinish. Uses standard HAL calling conventions; will be in SVC mode with IRQs disabled. Interrupts can be re-enabled if desired, but should be disabled again on return to the caller.

If the keyboard scan handler recognises the cause of the interrupt then it must service the device (including calling HAL_IRQClear if necessary) and return -1. If the device is unrecognised then devno must be returned unaltered so that the OS can pass the request onto any other interrupt handlers.

See also

  • HAL keyboard API
Information source: HAL.Tungsten.doc.KbdScan in CVS
Revised on February 9, 2012 13:37:52 by Jeffrey Lee (213) (195.72.173.130)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: HAL entry points from RISC OS, HAL entry points by number, HAL keyboard API

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