mirror of
https://github.com/dougg3/mac-rom-simm-programmer.git
synced 2024-11-29 06:49:20 +00:00
43 lines
1.5 KiB
C
43 lines
1.5 KiB
C
/*
|
|
* simm_electrical_test.h
|
|
*
|
|
* Created on: Nov 26, 2011
|
|
* Author: Doug
|
|
*
|
|
* Copyright (C) 2011-2012 Doug Brown
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*
|
|
*/
|
|
|
|
#ifndef SIMM_ELECTRICAL_TEST_H_
|
|
#define SIMM_ELECTRICAL_TEST_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#define GROUND_FAIL_INDEX 0xFF
|
|
|
|
#define FIRST_ADDRESS_LINE_FAIL_INDEX 0
|
|
#define LAST_ADDRESS_LINE_FAIL_INDEX (FIRST_ADDRESS_LINE_FAIL_INDEX + 20)
|
|
#define FIRST_DATA_LINE_FAIL_INDEX (LAST_ADDRESS_LINE_FAIL_INDEX + 1)
|
|
#define LAST_DATA_LINE_FAIL_INDEX (FIRST_DATA_LINE_FAIL_INDEX + 31)
|
|
#define CS_FAIL_INDEX (LAST_DATA_LINE_FAIL_INDEX + 1)
|
|
#define OE_FAIL_INDEX (CS_FAIL_INDEX + 1)
|
|
#define WE_FAIL_INDEX (OE_FAIL_INDEX + 1)
|
|
|
|
int SIMMElectricalTest_Run(void (*errorHandler)(uint8_t, uint8_t));
|
|
|
|
#endif /* SIMM_ELECTRICAL_TEST_H_ */
|