Files

39 lines
802 B
C
Raw Permalink Normal View History

#include <stdint.h>
2019-09-22 13:26:43 -07:00
#include "armSideCode.h"
#include "armDefines.h"
#include "armControl.h"
#include "armTests.h"
2019-09-22 13:26:43 -07:00
USED unsigned long runTest(const void* emulStateP, void* userData68KP, /*Call68KFuncType*/void* call68KFuncP){
uint32_t oldInts;
uint32_t* args = (uint32_t*)userData68KP;
2019-09-22 13:26:43 -07:00
uint32_t test;
uint32_t returnArgCount;
test = args[0];
args++;
2019-09-22 13:26:43 -07:00
oldInts = disableInts();
switch(test){
2019-09-22 14:25:09 -07:00
case ARM_TEST_DATA_EXCHANGE:
returnArgCount = testArmDataExchange(args);
break;
2019-09-22 13:26:43 -07:00
case ARM_TEST_TSC2101_READ_ADC_VALUES:
returnArgCount = readAllTsc2101AdcValues(args);
break;
default:
2019-09-22 13:26:43 -07:00
returnArgCount = 0;
break;
2019-09-22 13:26:43 -07:00
}
enableInts(oldInts);
return returnArgCount;
}
2019-09-21 19:35:05 -07:00
2019-09-22 13:26:43 -07:00
ENTRYPOINT("runTest")