beautypg.com

Board support package configuration, Uart configuration – Zilog EZ80F91AZA User Manual

Page 17

background image

UM007518-1211

Board Support Package Configuration

Zilog Real-Time Kernel: eZ80

®

CPU

User Manual

7

RZK provides a very simple and generic device driver model that can be used to develop
drivers for different types of devices; RZK BSP is based on this device driver model.

The RZK device driver model contains a hardware abstraction layer called the DDF,
which provides a common interface to gain access to various devices. DDF accesses these
devices using the global device table. The driver functions are connected to this device
table. Each device is identified by its handle, which is the pointer to the device entry in the
device table

usrDevBlk

.

The RZK DDF provides APIs that perform operations on any of the drivers present in the
BSP. These APIs are briefly described in Table 2.

For details about DDF APIs, refer to the

Zilog Real-Time Kernel Reference Manual

(RM0006)

.

Board Support Package Configuration

This section discusses the available RZK BSP configurations.

UART Configuration

The configurable parameters for the UART driver are located in the

uart_conf.c

source

file that accompanies the RZK release in the following path:

\Program Files\Zilog\

ZDSII_eZ80Acclaim!_A.B.C\ZTP\ZTPX.Y.Z_Lib\RZK\Conf

To change any of the UART parameters, you must include this file in the project and set
the appropriate values, as defined in Table 3.

Table 2. RZK Device Driver Framework APIs

DDF API

Description

RZKDevAttach

Attaches the device for communication

RZKDevDetach

Detaches the device from communication

RZKDevOpen

Opens the device for communication

RZKDevRead

Reads from the device

RZKDevWrite

Writes to the device

RZKDevIOCTL

Performs I/O control operations

RZKDevClose

Closes the device for communication

Note:

This manual is related to the following products: