Specifications

25
/* 1. 8 Bit accesses to FIFO A */
/* 2. 8 Bit accesses to FIFO B */
/* 3. 16 Bit accesses to FIFOs */
/* 4. 8 Bit WRITES and 16 Bit READS */
/* 5. 16 Bit WRITES and 8 Bit READS */
/* */
/* Reference : MC68340 & TNT4882 Application Notes */
/**************************************************************************/
/**************************************************************************/
char Programmed_IO_Test()
{
char result = FALSE;
HSSEL |= E_NODMA;
puts("\nPerforming Programmed I/O Test.\n");
CMDR = RstFIFO;
puts(" Performing 8 Bit accesses to FIFO A");
result |= Test8BitRegister(&FIFOA);
CMDR = RstFIFO;
puts(" Performing 8 Bit accesses to FIFO B");
result |= Test8BitRegister(&FIFOB);
CMDR = RstFIFO;
puts(" Performing 16 Bit accesses to FIFOs");
result |= Test16BitRegister();
CMDR = RstFIFO;
puts(" Performing 8 Bit WRITES & 16 Bit READS");
result |= Test8Write16Read();
CMDR = RstFIFO;
puts(" Performing 16 Bit WRITES & 8 BIT READS");
result |= Test16Write8Read();
return result;
}
/**************************************************************************/
/**************************************************************************/
/* Module : Interrupt_IO_Test() */
/* Parameters : NONE */
/* Return Type : char */
/* Created On : 05/04/95 */
/* Modified On : 05/15/95 */
/* Description : Performs Interrupt Driven I/O tests */
/* Checks the installation of the interrupt handler */
/* Reference : MC68340 & TNT4882 Application Notes */
/**************************************************************************/
/**************************************************************************/
char Interrupt_IO_Test()
{
unsigned int *Exception;
(unsigned int)Exception = AVECIRQ3;
puts("\nPerforming Interrupt I/O Test.\n");
puts(" Checking Interrupt Handler Installation");
if ((unsigned int)handler != *Exception)
{
puts("Interrupt Handler is not loaded properly. Interrupt Tests will not be per-










