continue cleaning
This commit is contained in:
31
main.c
31
main.c
@@ -28,6 +28,7 @@
|
||||
#include <3dfx.h>
|
||||
#include <glide.h>
|
||||
|
||||
#include "V2MemTest.h"
|
||||
#include "FaultSources.h"
|
||||
#include "Utils.h"
|
||||
#include "Draw.h"
|
||||
@@ -36,27 +37,12 @@
|
||||
#include "Test_Data.h"
|
||||
#include "Test_Data_Huge.h"
|
||||
|
||||
typedef enum _def_eLogLevel {
|
||||
E_LOGLEVEL_ERROR,
|
||||
E_LOGLEVEL_WARNING,
|
||||
E_LOGLEVEL_INFO,
|
||||
E_LOGLEVEL_DEBUG,
|
||||
E_LOGLEVEL_TRACE,
|
||||
}def_eLogLevel;
|
||||
|
||||
typedef struct _def_sOptions
|
||||
{
|
||||
def_eLogLevel ucLogLevel;
|
||||
unsigned char bLogStdOut;
|
||||
char szLogFileName[2048];
|
||||
char szTSVFile[2048];
|
||||
}
|
||||
|
||||
def_sOptions Options = {
|
||||
def_sOptions sOptions = {
|
||||
.ucLogLevel = E_LOGLEVEL_WARNING,
|
||||
.bLogStdOut = 1,
|
||||
.szLogFileName = {0},
|
||||
.szTSVFile = {0}
|
||||
.szTSVFile = {0},
|
||||
.usNbLoops = 1,
|
||||
};
|
||||
|
||||
|
||||
@@ -64,14 +50,17 @@ int main(int argc, char **argv)
|
||||
{
|
||||
unsigned long long ullNbErrorAll = 0;
|
||||
const FxU32 boardNum = 0;
|
||||
//const int TMU_to_test = 0;
|
||||
//const unsigned char bRandom = 1;
|
||||
|
||||
sst1DeviceInfoStruct devInfo;
|
||||
FxU32* sst;
|
||||
SstRegs *sstregs;
|
||||
|
||||
printf("3Dfx Voodoo2 TMU memory tester v1.0\n(c) ChaCha, 2026\n\n");
|
||||
printf(szTitle, V2MEMTEST__VERSION__MAJOR,
|
||||
V2MEMTEST__VERSION__MINOR,
|
||||
V2MEMTEST__VERSION__PATCH);
|
||||
putchar('\n');
|
||||
puts(szLicence);
|
||||
putchar('\n');
|
||||
|
||||
srandom(time(NULL));
|
||||
FaultSource_Reset();
|
||||
|
||||
Reference in New Issue
Block a user