summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-09-03 15:24:42 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-09-03 15:24:42 +0200
commit7fd8db2c1c2dea60d5e96e2a47e5dde2039e94f0 (patch)
treef0e9834f0e9639d0bd1daf62d0486baed2df4422
parentd6c747ec1c5c27ba0940517346da75bc4945dc9e (diff)
Added STK register structure.
-rw-r--r--stm32.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/stm32.h b/stm32.h
index e17b7c5..7f7e7a0 100644
--- a/stm32.h
+++ b/stm32.h
@@ -117,6 +117,15 @@ struct RCC_t {
static RCC_t& RCC = *(RCC_t*)0x40021000;
+struct STK_t {
+ volatile uint32_t CTRL;
+ volatile uint32_t LOAD;
+ volatile uint32_t VAL;
+ volatile uint32_t CALIB;
+};
+
+static STK_t& STK = *(STK_t*)0xe000e010;
+
struct FLASH_t {
volatile uint32_t ACR;
volatile uint32_t KEYR;