aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-07 05:45:10 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-07 19:15:05 -0400
commit50cf479bc593bfcf68debac2812bcf7ce2862c52 (patch)
treed175a2d730b875f35262dc4b21f18a63fc87f151
parent3e177c9e1a82ddceee27be7ed81ea64ea68845f2 (diff)
downloadlibrambutan-50cf479bc593bfcf68debac2812bcf7ce2862c52.tar.gz
librambutan-50cf479bc593bfcf68debac2812bcf7ce2862c52.zip
Move syscalls.c into Wirish.
libmaple takes orders, it doesn't give them. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
-rw-r--r--libmaple/rules.mk1
-rw-r--r--wirish/rules.mk1
-rw-r--r--wirish/syscalls.c (renamed from libmaple/syscalls.c)6
3 files changed, 4 insertions, 4 deletions
diff --git a/libmaple/rules.mk b/libmaple/rules.mk
index 08c4c02..649e4c8 100644
--- a/libmaple/rules.mk
+++ b/libmaple/rules.mk
@@ -22,7 +22,6 @@ cSRCS_$(d) += nvic.c
cSRCS_$(d) += pwr.c
cSRCS_$(d) += rcc.c
# cSRCS_$(d) += spi.c
-cSRCS_$(d) += syscalls.c
cSRCS_$(d) += systick.c
cSRCS_$(d) += timer.c
cSRCS_$(d) += usart.c
diff --git a/wirish/rules.mk b/wirish/rules.mk
index a198c2d..acf4c46 100644
--- a/wirish/rules.mk
+++ b/wirish/rules.mk
@@ -20,6 +20,7 @@ CFLAGS_$(d) := $(LIBMAPLE_INCLUDES) $(WIRISH_INCLUDES) -I$(d)
# Local rules and targets
sSRCS_$(d) := start.S
cSRCS_$(d) := start_c.c
+cSRCS_$(d) += syscalls.c
cppSRCS_$(d) := boards.cpp
cppSRCS_$(d) += cxxabi-compat.cpp
cppSRCS_$(d) += ext_interrupts.cpp
diff --git a/libmaple/syscalls.c b/wirish/syscalls.c
index 30a63bf..d365e15 100644
--- a/libmaple/syscalls.c
+++ b/wirish/syscalls.c
@@ -25,11 +25,11 @@
*****************************************************************************/
/**
- * @file libmaple/syscalls.c
+ * @file wirish/syscalls.c
* @brief newlib stubs
*
- * Low level system routines used by Newlib for basic I/O and memory
- * allocation.
+ * Low level system routines used by newlib for basic I/O and memory
+ * allocation. You can override most of these.
*/
#include <libmaple/libmaple.h>