aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsupport/scripts/copy-to-ide7
-rw-r--r--wirish/boards.h11
-rw-r--r--wirish/io.h3
-rw-r--r--wirish/wirish.h2
-rw-r--r--wirish/wirish_time.cpp (renamed from wirish/time.cpp)2
-rw-r--r--wirish/wirish_time.h (renamed from wirish/time.h)0
6 files changed, 17 insertions, 8 deletions
diff --git a/support/scripts/copy-to-ide b/support/scripts/copy-to-ide
index 5254974..674615e 100755
--- a/support/scripts/copy-to-ide
+++ b/support/scripts/copy-to-ide
@@ -23,6 +23,8 @@ LMAPLE_SRC="LICENSE
./wirish/*.cpp
./wirish/comm/*.cpp
./wirish/comm/*.h
+ ./wirish/boards/*.h
+ ./wirish/boards/*.cpp
./support/ld/common_ram.inc
./support/ld/common_rom.inc
./support/ld/libcs3_stm32_high_density.a
@@ -52,6 +54,10 @@ cp -R $LMAPLE_SRC $DEST_CORES
echo Copying over libraries
cp -R libraries/* $DEST_LIBS
+# libmaple version
+echo Creating libmaple-version.txt
+git show-ref HEAD | cut -c 1-10 > $DEST/libmaple-version.txt
+
# docs
echo Deleting old reference directory contents
rm -rf $DEST_REF/*
@@ -62,5 +68,4 @@ echo Rebuilding documentation
echo Copying over documentation
cp -R $LMAPLE_DOCS_BUILD/* $DEST_REF
-
echo Done.
diff --git a/wirish/boards.h b/wirish/boards.h
index cec844f..8df7028 100644
--- a/wirish/boards.h
+++ b/wirish/boards.h
@@ -119,19 +119,22 @@ bool boardUsesPin(uint8 pin);
/* Include the appropriate private header from boards/: */
+/* FIXME put boards/ before these paths once you stick make into the
+ * IDE; current situation is a hack. */
+
#ifdef BOARD_maple
-#include "boards/maple.h"
+#include "maple.h"
#elif defined(BOARD_maple_native)
-#include "boards/maple_native.h"
+#include "maple_native.h"
#elif defined(BOARD_maple_mini)
-#include "boards/maple_mini.h"
+#include "maple_mini.h"
#elif defined(BOARD_maple_RET6)
/*
* **NOT** MAPLE REV6. This the **Maple RET6 EDITION**, which is a
* Maple with an STM32F103RET6 (...RET6) instead of an STM32F103RBT6
* (...RBT6) on it. Maple Rev6 (as of March 2011) DOES NOT EXIST.
*/
-#include "boards/maple_RET6.h"
+#include "maple_RET6.h"
#else
#error "Board type has not been selected correctly."
#endif
diff --git a/wirish/io.h b/wirish/io.h
index 4e415b5..137377d 100644
--- a/wirish/io.h
+++ b/wirish/io.h
@@ -33,7 +33,8 @@
#include "gpio.h"
#include "adc.h"
-#include "time.h"
+
+#include "wirish_time.h"
/**
* Specifies a GPIO pin behavior.
diff --git a/wirish/wirish.h b/wirish/wirish.h
index 880157d..4cc142d 100644
--- a/wirish/wirish.h
+++ b/wirish/wirish.h
@@ -40,7 +40,7 @@
#include "pwm.h"
#include "ext_interrupts.h"
#include "wirish_math.h"
-#include "time.h"
+#include "wirish_time.h"
#include "HardwareSPI.h"
#include "HardwareSerial.h"
#include "usb_serial.h"
diff --git a/wirish/time.cpp b/wirish/wirish_time.cpp
index b5663b0..2771e95 100644
--- a/wirish/time.cpp
+++ b/wirish/wirish_time.cpp
@@ -28,7 +28,7 @@
#include "libmaple.h"
#include "systick.h"
-#include "time.h"
+#include "wirish_time.h"
#include "delay.h"
void delay(unsigned long ms) {
diff --git a/wirish/time.h b/wirish/wirish_time.h
index a0c0c82..a0c0c82 100644
--- a/wirish/time.h
+++ b/wirish/wirish_time.h