From dfcbb6d9e9f31781d17bcc3abafc29bdba1f2d7f Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Tue, 9 Oct 2012 10:55:50 -0700 Subject: [PATCH] AP_Semaphore_test: bugfix to extern semaphore, add Makefile for builds. --- .../examples/AP_Semaphore_test/AP_Semaphore_test.pde | 2 +- libraries/AP_Semaphore/examples/AP_Semaphore_test/Makefile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 libraries/AP_Semaphore/examples/AP_Semaphore_test/Makefile diff --git a/libraries/AP_Semaphore/examples/AP_Semaphore_test/AP_Semaphore_test.pde b/libraries/AP_Semaphore/examples/AP_Semaphore_test/AP_Semaphore_test.pde index 577667bc49..059506051f 100644 --- a/libraries/AP_Semaphore/examples/AP_Semaphore_test/AP_Semaphore_test.pde +++ b/libraries/AP_Semaphore/examples/AP_Semaphore_test/AP_Semaphore_test.pde @@ -42,7 +42,7 @@ void loop(void) bool ret; // quick test of spi semaphore - ret = AP_Semaphore_spi.get(&dummy3); + ret = AP_Semaphore_spi3.get(&dummy3); Serial.print("dummy3 gets SPI semaphore: "); print_true_false(ret); diff --git a/libraries/AP_Semaphore/examples/AP_Semaphore_test/Makefile b/libraries/AP_Semaphore/examples/AP_Semaphore_test/Makefile new file mode 100644 index 0000000000..a5d5e7918b --- /dev/null +++ b/libraries/AP_Semaphore/examples/AP_Semaphore_test/Makefile @@ -0,0 +1,2 @@ +BOARD = mega2560 +include ../../../AP_Common/Arduino.mk