aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPerry Hung <iperry@alum.mit.edu>2010-04-30 01:07:55 -0400
committerPerry Hung <iperry@alum.mit.edu>2010-04-30 01:07:55 -0400
commita881d0d735196449bd19d5e8183f3153ed415c8d (patch)
treeda3921bb2b56ef740301ebddfc7fa4837eaa5b0c
parentfb3f98d165497a32eb27b8c6b060e14d7d5b585e (diff)
downloadlibrambutan-a881d0d735196449bd19d5e8183f3153ed415c8d.tar.gz
librambutan-a881d0d735196449bd19d5e8183f3153ed415c8d.zip
trivial: new cscope rule and warning fix
Fixed nvic.c warning
-rw-r--r--Makefile2
-rw-r--r--libmaple/nvic.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ce274c6..2a14670 100644
--- a/Makefile
+++ b/Makefile
@@ -197,7 +197,7 @@ run: $(BUILD_PATH)/main.bin
cscope:
rm -rf *.cscope
- find . ../bootloader -iname "*.[hcs]" | grep -v examples | xargs cscope -R -b
+ find . -name '*.[hcs]' -o -name '*.cpp' | xargs cscope
clean:
rm -f *.hex *.o
diff --git a/libmaple/nvic.c b/libmaple/nvic.c
index 6603d42..7e1a9b7 100644
--- a/libmaple/nvic.c
+++ b/libmaple/nvic.c
@@ -42,7 +42,7 @@ void nvic_disable_interrupts(void) {
}
-void nvic_set_vector_table(uint32 *addr, uint32 offset) {
+void nvic_set_vector_table(uint32 addr, uint32 offset) {
__write(SCB_VTOR, (uint32)addr | (offset & 0x1FFFFF80));
}