beautypg.com

Nonstandard i/o functions

Page 207

background image

UM017105-0511

Run-Time Library

Zilog Developer Studio II – ZNEO™

User Manual

179

<

zneo.h

> has the macro definitions for all ZNEO microcontroller peripheral registers.

For example:

Refer to the ZNEO product specifications for the list of peripheral registers supported.

<

zneo.h

> also has the macro definition for the ZNEO Flash option bytes:

<

zneo.h

> also has the macro definition for interrupt vector addresses:

Refer to the ZNEO product specifications for the list of interrupt vectors supported.

Functions

Nonstandard I/O Functions

This header contains nonstandard ZNEO-specific input/output functions.

T0H

Expands to (*(unsigned char volatile near*)0xE300)

FLASH_OPTION0

Expands to a _Rom char at address 0x0.

FLASH_OPTION1

Expands to a _Rom char at address 0x1.

FLASH_OPTION2

Expands to a _Rom char at address 0x2.

FLASH_OPTION3

Expands to a _Rom char at address 0x3.

RESET

Expands to address of Reset vector.

intrinsic void EI(void);

Enable interrupts.

intrinsic void DI(void);

Disable interrupts.

intrinsic void RI(unsigned short istat);

Restores interrupts.

intrinsic void SET_VECTOR(int vectnum,void
(*hndlr)(void));

Specifies the address of an
interrupt handler for an inter-
rupt vector.

intrinsic unsigned short TDI(void);

Tests and disables interrupts.

_DEFFREQ

Expands to unsigned long default frequency.

_DEFBAUD

Expands to unsigned long default baud rate.

_UART0

Expands to an integer indicating UART0.

_UART1

Expands to an integer indicating UART1.

This manual is related to the following products: