User`s manual
BL160050 s System Development
void reload
_
vec( int vector,
int (*function)() )
Loads the address of a function into the interrupt vector table.
This function is only useful during program development when Z180
Port 0 is used as the Dynamic C programming port. The compile-time
interrupt directive loads the serial service functions address in the
interrupt vector table to generate the executable code for the EPROM
or for download to RAM.
PARAMETERS: vector is the offset for the specific interrupt.
function is a pointer to the interrupt service function.
int getcrc( char *buffer, byte count, int accum )
Computes the CRC (cyclic redundancy check, or check sum) for data in
buffer. Calls to getcrc can be concatenated to compute the CRC for
a large buffer.
PARAMETERS: buffer contains the characters for which to compute
the CRC.
count is the number of characters in buffer, limited to 255, for this
function.
accum is the accumulated CRC value from previous computation.
RETURN VALUE: the integer CRC value.
void resetZ180int()
General reset function that resets, or disables, interrupts for DMA
channels, Z180 serial channels 0 and 1, PRT timers, CSI/O, INT1 and
INT2.