Files
RASCSI/cpp/scsimon/scsimon.cpp
T
Daniel Markstedt 1ee4a320b8 replace compile-time board types with runtime profiles
Move GPIO mappings into a single module and select a board profile at process startup instead of at compile time: Build every GPIO-facing utility for every supported profile. At the same time, we remove support for the historical AIBOM board type since it's the only one using positive logic, the other three variants share the same electrical behavior.

Run piscsi, scsimon, scsiloop, scsidump, or sasidump with -C=STANDARD, FULLSPEC, or GAMERNIUM. FULLSPEC remains the default. To select a profile for the systemd service, set PISCSI_CONNECTION_TYPE and restart the service.
2026-08-31 21:55:50 +02:00

29 lines
675 B
C++

//---------------------------------------------------------------------------
//
// SCSI Target Emulator PiSCSI
// for Raspberry Pi
//
// Copyright (C) 2022 Uwe Seimet
//
//---------------------------------------------------------------------------
#include "hal/connection_profile.h"
#include "scsimon/sm_core.h"
#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
const vector<char*> args(argv, argv + argc);
vector<char*> configured_args = args;
string error;
if (!ConfigureConnectionType(configured_args, error)) {
cerr << error << '\n';
return EXIT_FAILURE;
}
return ScsiMon().run(configured_args);
}