Standard Artesyn Functions
10-57
10.15.12 Interrupt Error
SYNOPSIS
void IntrErr(unsigned char Vector)
DESCRIPTION
When an unexpected interrupt is received, it is necessary to remove the error
condition before returning to the monitor. This function is called from the
low-level interrupt service routine, which parses the interrupt record for the
address and the vector associated with the interrupt. The device is dealt with
accordingly, and the monitor is resumed.
Because the interrupt condition might be a program that continually gener-
ates exceptions, it is necessary to abort the program and return directly to the
monitor level. This is done by calling the function
RestartMon
, which
causes the processor to return to the line editor.
10.15.13 Legal Value Check
SYNOPSIS
void IsLegal(unsigned char Type, char *Str)
DESCRIPTION
This function is used to determine if the specified character string
Str
contains
legal values to allow the string to be parsed as decimal, hex, uppercase, or
lowercase. The function
IsLegal
traverses the character string until a NULL is
reached. Each character is verified according to the
Type
argument.
The effects of specifying each type are described below:
If the character string contains legal characters, this function returns TRUE;
otherwise, it returns FALSE. The string equivalent of the character functions
isalpha(), isupper(), islower(), and isdigit() can be constructed from this func-
tion, which deals with the entire string instead of a single character.
Table 10-6.
IsLegal
Function Types
Type
Value
Legal Characters
DECIMAL
0x8
0 - 9
HEX
0x4
0 - 9, A - F, a - f
UPPER
0x2
A - Z
LOWER
0x1
a - z
ALPHA
0x3
A - Z, a - z
Summary of Contents for BajaPPC-750
Page 2: ...BajaPPC 750 PowerPC Based Single Board Computer User s Manual May 2002...
Page 4: ...BajaPPC 750 PowerPC Based Single Board Computer User s Manual May 2002...
Page 7: ......
Page 19: ...xii BajaPPC 750 Contents...
Page 57: ...3 12 BajaPPC 750 Central Processing Unit May 2002...
Page 77: ...5 12 BajaPPC 750 PMC PCI Interface May 2002...
Page 111: ...6 34 BajaPPC 750 VMEbus Interface May 2002...
Page 135: ...8 18 BajaPPC 750 Serial and Parallel I O May 2002...
Page 207: ...10 68 BajaPPC 750 Monitor May 2002...