1
0
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:
Adam Preble
2009-05-22 01:51:52 -04:00
parent b96905f5ca
commit cd1b0462c5
11 changed files with 133 additions and 7 deletions

View File

@@ -0,0 +1,7 @@
PRGameName: My Great Pin
PRDrivers:
1: driver one
2: driver two
PRSwitches:
1: switch one
2: switch two

View File

@@ -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

View File

@@ -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