summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;