mirror of
https://github.com/akuker/RASCSI.git
synced 2026-10-25 12:02:59 +00:00
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.
30 lines
710 B
C++
30 lines
710 B
C++
//---------------------------------------------------------------------------
|
|
//
|
|
// SCSI Target Emulator PiSCSI
|
|
// for Raspberry Pi
|
|
//
|
|
// Powered by XM6 TypeG Technology.
|
|
// Copyright (C) 2016-2020 GIMONS
|
|
// Copyright (C) 2026 Daniel Markstedt <daniel@mindani.net>
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
|
|
#include "hal/connection_profile.h"
|
|
#include "sasidump/sasidump_core.h"
|
|
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
vector<char*> args(argv, argv + argc);
|
|
string error;
|
|
if (!ConfigureConnectionType(args, error)) {
|
|
cerr << error << '\n';
|
|
return EXIT_FAILURE;
|
|
}
|
|
|
|
return SasiDump().run(args);
|
|
}
|