mirror of
https://github.com/preble/libpinproc
synced 2026-02-24 18:25:23 +01:00
Added excruciatingly rough implementation of PRLoadDefaultsFromYAML() and related items.
This commit is contained in:
7
examples/pinproctest/Example.yaml
Normal file
7
examples/pinproctest/Example.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
PRGameName: My Great Pin
|
||||
PRDrivers:
|
||||
1: driver one
|
||||
2: driver two
|
||||
PRSwitches:
|
||||
1: switch one
|
||||
2: switch two
|
||||
@@ -2,8 +2,8 @@
|
||||
# File: Makefile for application
|
||||
#
|
||||
CC=g++
|
||||
LDFLAGS=-L../.. -L/usr/local/lib
|
||||
LIBS=-lpinproc -lusb -lftdi
|
||||
LDFLAGS=-L../.. -L/usr/local/lib -L../../../../yaml-cpp/build/bin
|
||||
LIBS=-lpinproc -lusb -lftdi -lyaml-cpp
|
||||
|
||||
SRC=pinproctest.cpp
|
||||
|
||||
|
||||
@@ -162,6 +162,7 @@ int main(const char **argv, int argc)
|
||||
return 1;
|
||||
|
||||
printf("Configuring P-ROC...\n");
|
||||
PRLoadDefaultsFromYAML(proc, "../../examples/pinproctest/Example.yaml");
|
||||
|
||||
ConfigureSwitches(proc);
|
||||
// Make Drivers the last thing to configure so watchdog doesn't expire
|
||||
|
||||
Reference in New Issue
Block a user