User manual
6 OnRISC Hardware API
Group nr. Pins
0 0-3
1 4-5
2 6-7
Table 4: Digital I/O Groups
6.2. Buzzer for KS8695 based Devices
The OnRISC provides a buzzer for acoustic signaling. You can manipulate it via the IOCTL-calls
or via the Proc-Filesystem. Following IOCTL commands are defined in the onrisc.h to control the
buzzer:
• GPIO_CMD_GET_BUZZER/GPIO_CMD_SET_BUZZER - turn on/off the buzzer
(reflected in /proc/vscom/buzzer)
• GPIO_CMD_GET_BUZZER_FRQ/GPIO_CMD_SET_BUZZER_FRQ - get/set the modulated signal de-
lay. So that the buzzer will be turned on for the delay specified and the it will be turned off
for the same delay and so on till this mode will be turned off
(reflected in /proc/vscom/buzzer_frq)
6.3. LEDs for KS8695 based Devices
The OnRISC provides three configurable LEDs:
• red LED (power LED)
• blue LED (can be used to signal WLAN link)
• green LED (user LED)
• WLAN button LED (OnRISC Alekto LAN only)
Following IOCTL commands are defined in the onrisc.h to control the LEDs:
• GPIO_CMD_GET_LEDS/GPIO_CMD_SET_LEDS - get/set LED combination
(reflected in /proc/vscom/leds)
• GPIO_CMD_SET_LED_POWER - turn on/off the power LED
• GPIO_CMD_SET_LED_BLUE - turn on/off the blue LED
• GPIO_CMD_SET_LED_GREEN - turn on/off the green LED
• GPIO_CMD_SET_LED_BTN_WLAN - turn on/off the WLAN button LED (OnRISC Alekto LAN
only)
May 2014 OnRISC User Manual 41