beautypg.com

I2c configuration, Flash drivers, I2c configuration flash drivers – Zilog EZ80F91AZA User Manual

Page 22: C configuration

background image

RZK Board Support Package

UM007518-1211

12

Zilog Real-Time Kernel: eZ80

®

CPU

User Manual

I

2

C Configuration

The configurable parameters for the I

2

C driver are located in the

i2c_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 I

2

C parameters, include this file in the project and set the appropriate

values, as defined in Table 8.

Flash Drivers

Flash drivers are implemented as simple APIs that do not operate within the constructs of
the DDF. To access these functions directly, include the device header files in the applica-
tion.

Table 8. Configurable I

2

C Drivers

Variable/Macro

Default Value

Description/Valid Values

I2C_TASK_STACK_SIZEH

1024

Stack size of the I

2

C interrupt thread.

I2C_RX_MAX_BUFF_SIZEH

100

Size of the Rx circular queue.

I2C_TASK_PRIORITYH

6

Priority of the I

2

C Interrupt thread.

i2cConfigParams

{0xB0,
0x00,0x58,
I2C_MASTER,
RZK_FALSE,
0x00,2}

i2cConfigParams currSlaveAddr

The slave address with which the master communi-
cates, for example, 0xA0.

i2cConfigParams selfAddr

The address of eZ80 when acting as a slave.

i2cConfigParams speed

The speed of the I

2

C bus, for example, 0x58.

i2cConfigParams mode

I2C_MASTER/I2C_SLAVE;
determines whether eZ80 will act as a master or
slave.

i2cConfigParams useSubAddr

RZK_TRUE/RZK_FALSE; determines whether to use
subaddresses for the slave device.

i2cConfigParams subAddr

subaddress value for the slave; used only if the use-
SubAddr Flag is set to RZK_TRUE.

i2cConfigParams addrLen

Length of subaddress; the number of subaddress
bytes sent to the slave are based on this value.

This manual is related to the following products: