beautypg.com

Getting started, Using rzk – Zilog EZ80F91AZA User Manual

Page 14

background image

Getting Started

UM007518-1211

4

Zilog Real-Time Kernel: eZ80

®

CPU

User Manual

Getting Started

RZK is automatically installed when the ZDSII_eZ80Acclaim!_A.B.C file is installed.
You can find that RZK is installed under

Program files\

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

For information about system requirements for the target and host computer, refer to the

Zilog Real-Time Kernel Quick Start Guide (QS0048)

, which is available free for down-

load from the zilog.com website. These requirements must be met before proceeding to
write or build applications based on RZK.

Using RZK

RZK is designed to be used as a C library. The RZK objects referenced in the application
software are extracted from the RZK library and combined with the application objects to
produce a target-downloadable image. This image can be downloaded to the target system
RAM or placed into ROM, EEPROM or Flash.

Observe the following procedure to use RZK in the ZDS II environment:

1. Include the following header files in the application in the sequence provided below:

a. ZSysgen.h.

b. ZTypes.h.

c.

Header files such as

ZThread.h

,

Zmemory.h

and other application header files

related to the objects used in the application.

2. Add your application code (creating the resources/threads, etc.) between the

RZK_KernelInit()

and

RZK_KernelStart()

function calls in the

main()

func-

tion shown below. The

main()

function runs at the highest priority.

int main(int argc, void *argv[])

{

RZK_KernelInit();

// Your application threads/resources creation

// code here//

RZK_KernelStart();

}

For information about the

main()

,

RZK_KernelInit()

and

RZK_KernelStart()

functions, refer to the

Zilog Real-Time Kernel Reference Manual (RM0006)

.

Note:

This manual is related to the following products: