summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-06-12 21:45:45 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-06-12 21:45:45 +0200
commita6dc2b0ad2bf5efd2c9f49754ff7057f5c24a929 (patch)
tree0070f7f79c024a93eaf885fe89d51955da7a3be2 /main.cpp
parent3db942d06cf22478041921bc570e6c9650b217d0 (diff)
Added interrupt<>() template.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/main.cpp b/main.cpp
index 9c4774b..468a0b9 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,16 +1,5 @@
#include "stm32.h"
-void entry();
-
-void* vectors[4] __attribute__((section(".vectors"))) = {
- (void*)0x20004ffc,
- (void*)entry
- //(unsigned int *) STACK_TOP, // stack pointer
- //(unsigned int *) main, // code entry point
- //(unsigned int *) nmi_handler, // NMI handler (not really)
- //(unsigned int *) hardfault_handler // hard fault handler (let's hope not)
-};
-
volatile unsigned int cnt;
void i2c_write_reg(uint8_t addr, uint8_t reg, uint8_t data) {