Virtual Hardware  Version 1.3.1 - beta
AVH FVP Models
 
Loading...
Searching...
No Matches

Using Virtual I/O Interface (VIO)

Using Virtual I/O Interface (VIO)

VIO API provides a general purpose implementation for simple I/O peripherals. This chapter shows how VIO can be applied in a specific use case.

./interface/vio/vio_fvp.c: implements CMSIS-Driver VIO for Arm Virtual Hardware based on the ARM_VIO_Type structure and its mapping defined in arm_vio.h.

Setup

Instructions below cover specifically setup for using CMSIS-Driver VIO in a project on Arm Fixed Virtual Platfom (FVP) as a target.

Usage example

After VIO is setup in the project, the interface can be fully used as described in CMSIS-Driver VIO documentation.

For example to control virtual LEDs:

#include "cmsis_vio.h" // ::CMSIS Driver:VIO
int main (void) {
vioInit();
vioSetSignal(vioLED0, vioLEDon);
// ...
vioSetSignal(vioLED0, vioLEDoff);
}