Visible to Intel only — GUID: mwh1416946792108
Ixiasoft
Visible to Intel only — GUID: mwh1416946792108
Ixiasoft
7.13.6. Use the Lightweight Device Driver API
The lightweight device driver API is available for character-mode devices. The following device drivers support the lightweight device driver API:
- JTAG UART
- UART
- Optrex 16207 LCD
For these devices, the lightweight device driver API conserves code space by eliminating the dynamic file descriptor table and replacing it with three static file descriptors, corresponding to stdin, stdout, and stderr. Library functions related to opening, closing, and manipulating file descriptors are unavailable, but all other library functionality is available. You can refer to stdin, stdout, and stderr as you would to any other file descriptor. You can also refer to the following predefined file numbers:
#define STDIN 0 #define STDOUT 1 #define STDERR 2
This option is appropriate if your program has a limited need for file I/O. The Intel FPGA host-based file system and the Intel FPGA read-only zip file system are not available with the reduced device driver API. You can select the reduced device drivers through BSP settings.
By default, the lightweight device driver API is disabled.
For more information about the lightweight device driver API, refer to the Developing Device Drivers for the Hardware Abstraction Layer section.