From d744fb826f4a6d6ce560f3b78f2e63a1f9666d9e Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Wed, 15 Dec 2010 01:50:56 -0500 Subject: Finalized 0.0.9 documentation. --- support/scripts/copy-to-ide | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'support/scripts') diff --git a/support/scripts/copy-to-ide b/support/scripts/copy-to-ide index 5bf52a4..c6b4c16 100755 --- a/support/scripts/copy-to-ide +++ b/support/scripts/copy-to-ide @@ -4,9 +4,7 @@ # repository. # Change this -DEST=`pwd`/../maple-ide/hardware/leaflabs/cores/maple/ - -ARCH=`uname -a` +DEST=`pwd`/../maple-ide-java/hardware/leaflabs/cores/maple FILES="LICENSE ./libmaple/*.h @@ -21,8 +19,8 @@ FILES="LICENSE ./wirish/*.cpp ./wirish/comm/*.cpp ./wirish/comm/*.h - ./support/ld/maple/ - ./support/ld/maple_native/ + ./support/ld/maple + ./support/ld/maple_native ./support/ld/libcs3-lanchon-stm32.a ./support/ld/names.inc" @@ -34,9 +32,9 @@ then exit -1 fi -echo "Then delete the old files..." -rm -r $DEST/*.c $DEST/*.cpp $DEST/*.h $DEST/*.cxx $DEST/*.ld $DEST/*.inc $DEST/*.a $DEST/maple/ $DEST/maple_native/ +echo "\nThen delete the old files..." +rm -r $DEST/*.c $DEST/*.cpp $DEST/*.h $DEST/*.cxx $DEST/*.inc $DEST/*.a $DEST/maple $DEST/maple_native -echo "Finally copy the new source files!" -cp -r $FILES $DEST +echo "\nFinally copy the new source files!" +cp -R $FILES $DEST echo "Done." -- cgit v1.2.3 From 07fa40623307ea474a775d6f9be5ce8afd783f23 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Wed, 15 Dec 2010 19:17:55 -0500 Subject: 0.0.9 release. Made some changes to Servo to get it to compile from within the IDE. Also fixed a lurking broken link in the docs. --- docs/source/_templates/layout.html | 4 ++-- libraries/Servo/Servo.cpp | 4 ++-- libraries/Servo/Servo.h | 2 +- support/scripts/copy-to-ide | 34 +++++++++++++++++++++++++--------- 4 files changed, 30 insertions(+), 14 deletions(-) (limited to 'support/scripts') diff --git a/docs/source/_templates/layout.html b/docs/source/_templates/layout.html index 98b3d82..bf05832 100644 --- a/docs/source/_templates/layout.html +++ b/docs/source/_templates/layout.html @@ -1,6 +1,6 @@ {% extends "!layout.html" %} {% block rootrellink %}
  • LeafLabs |
  • -
  • Docs Home |
  • +
  • Docs Home |
  • {{ super() }} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/libraries/Servo/Servo.cpp b/libraries/Servo/Servo.cpp index 4f60fbe..ae87b63 100644 --- a/libraries/Servo/Servo.cpp +++ b/libraries/Servo/Servo.cpp @@ -22,13 +22,13 @@ * THE SOFTWARE. *****************************************************************************/ +#include "Servo.h" + #include "boards.h" #include "io.h" #include "pwm.h" #include "wirish_math.h" -#include "Servo.h" - // Configure prescaler and overflow for a 20msec period (could just // use HardwareTimer::setPeriod(), but this lets conversions below // happen more statically, in combination with an inlined map() -- a diff --git a/libraries/Servo/Servo.h b/libraries/Servo/Servo.h index d35572a..1c75618 100644 --- a/libraries/Servo/Servo.h +++ b/libraries/Servo/Servo.h @@ -27,7 +27,7 @@ #include -#include "HardwareTimer.h" +#include "wirish.h" /* hack for IDE compile */ /* Note on Arduino compatibility: diff --git a/support/scripts/copy-to-ide b/support/scripts/copy-to-ide index c6b4c16..6f8d5f3 100755 --- a/support/scripts/copy-to-ide +++ b/support/scripts/copy-to-ide @@ -1,14 +1,17 @@ #!/bin/sh -# This hackish script copies the necessary library files into the Maple IDE +# This hack copies the necessary library files into the Maple IDE # repository. -# Change this -DEST=`pwd`/../maple-ide-java/hardware/leaflabs/cores/maple +DEST=$1 -FILES="LICENSE +DEST_REF=$DEST/build/shared/reference +DEST_CORES=$DEST/hardware/leaflabs/cores/maple + +LMAPLE_SRC="LICENSE ./libmaple/*.h ./libmaple/*.c + ./libmaple/*.S ./libmaple/usb/*.h ./libmaple/usb/*.c ./libmaple/usb/usb_lib/*.h @@ -24,6 +27,8 @@ FILES="LICENSE ./support/ld/libcs3-lanchon-stm32.a ./support/ld/names.inc" +LMAPLE_DOCS=./docs +LMAPLE_DOCS_BUILD=$LMAPLE_DOCS/build/html echo "First make sure DEST exists: $DEST" if !(test -d $DEST) @@ -32,9 +37,20 @@ then exit -1 fi -echo "\nThen delete the old files..." -rm -r $DEST/*.c $DEST/*.cpp $DEST/*.h $DEST/*.cxx $DEST/*.inc $DEST/*.a $DEST/maple $DEST/maple_native +# source +echo Handling libmaple source +rm -r $DEST_CORES/*.c $DEST_CORES/*.cpp $DEST_CORES/*.h $DEST_CORES/*.cxx $DEST_CORES/*.inc $DEST_CORES/*.a $DEST_CORES/*.S $DEST_CORES/maple $DEST_CORES/maple_native +cp -R $LMAPLE_SRC $DEST_CORES + +# docs +echo Deleting old reference directory contents +rm -r $DEST_REF/* + +# echo "\nRebuilding documentation" +# (cd $LMAPLE_DOCS; doxygen 2>/dev/null 1>/dev/null && make clean 2>/dev/null 1>/dev/null && make html 2>&1 1>/dev/null) + +echo Copying over documentation +cp -R $LMAPLE_DOCS_BUILD/* $DEST_REF -echo "\nFinally copy the new source files!" -cp -R $FILES $DEST -echo "Done." +echo +echo "Done. Handle libraries manually!" -- cgit v1.2.3 From a9b2d70bc7799ca96c1673b18fe3012b1a4dd329 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 11 Jan 2011 18:16:05 -0500 Subject: updating copy-to-ide script for more convenient IDE compilation --- docs/flibbit.py | 26 -------------------------- support/scripts/copy-to-ide | 18 +++++++++++------- 2 files changed, 11 insertions(+), 33 deletions(-) delete mode 100644 docs/flibbit.py (limited to 'support/scripts') diff --git a/docs/flibbit.py b/docs/flibbit.py deleted file mode 100644 index 5f149d4..0000000 --- a/docs/flibbit.py +++ /dev/null @@ -1,26 +0,0 @@ -import os -import shutil -import re -from os.path import * - -src = '/Users/mbolivar/foo/arduino.cc/en/Reference' -dst = '/Users/mbolivar/hack/leaf/libmaple/docs/source/arduino' - -fs = [x for x in os.listdir(src) if x.endswith('.rst')] - -def process(line): - if re.match('-+$', line.rstrip()): - return '=' * (len(line) - 1) + '\n' - elif re.match('\^+$', line.rstrip()): - return '-' * (len(line) - 1) + '\n' - return line - -for f in fs: - print 'processing:', f - with open(join(src,f), 'r') as f_in: - with open(join(dst, basename(f)), 'w') as f_out: - label = '.. _arduino-%s:\n\n' % (f.split('.')[0]) - f_out.write(label) - for line in list(f_in.readlines())[20:-22]: - f_out.write(process(line)) - diff --git a/support/scripts/copy-to-ide b/support/scripts/copy-to-ide index 6f8d5f3..301126d 100755 --- a/support/scripts/copy-to-ide +++ b/support/scripts/copy-to-ide @@ -7,6 +7,7 @@ DEST=$1 DEST_REF=$DEST/build/shared/reference DEST_CORES=$DEST/hardware/leaflabs/cores/maple +DEST_LIBS=$DEST/libraries LMAPLE_SRC="LICENSE ./libmaple/*.h @@ -38,19 +39,22 @@ then fi # source -echo Handling libmaple source -rm -r $DEST_CORES/*.c $DEST_CORES/*.cpp $DEST_CORES/*.h $DEST_CORES/*.cxx $DEST_CORES/*.inc $DEST_CORES/*.a $DEST_CORES/*.S $DEST_CORES/maple $DEST_CORES/maple_native +echo Copying libmaple source +rm -rf $DEST_CORES/*.c $DEST_CORES/*.cpp $DEST_CORES/*.h $DEST_CORES/*.cxx $DEST_CORES/*.inc $DEST_CORES/*.a $DEST_CORES/*.S $DEST_CORES/maple $DEST_CORES/maple_native cp -R $LMAPLE_SRC $DEST_CORES +echo Copying over libraries +cp -R libraries/* $DEST_LIBS + # docs echo Deleting old reference directory contents -rm -r $DEST_REF/* +rm -rf $DEST_REF/* -# echo "\nRebuilding documentation" -# (cd $LMAPLE_DOCS; doxygen 2>/dev/null 1>/dev/null && make clean 2>/dev/null 1>/dev/null && make html 2>&1 1>/dev/null) +echo Rebuilding documentation +( cd $LMAPLE_DOCS; doxygen && make clean 2>/dev/null 1>/dev/null && make html ) echo Copying over documentation cp -R $LMAPLE_DOCS_BUILD/* $DEST_REF -echo -echo "Done. Handle libraries manually!" + +echo Done. -- cgit v1.2.3