summaryrefslogtreecommitdiff
path: root/wpan/stm32_hsem.h
diff options
context:
space:
mode:
Diffstat (limited to 'wpan/stm32_hsem.h')
-rw-r--r--wpan/stm32_hsem.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/wpan/stm32_hsem.h b/wpan/stm32_hsem.h
new file mode 100644
index 0000000..f8d9dd3
--- /dev/null
+++ b/wpan/stm32_hsem.h
@@ -0,0 +1,26 @@
+#pragma once
+
+#include <stdint.h>
+#include <mmio/mmio.h>
+
+struct STM32_HSEM_reg_v1_t {
+ volatile uint32_t R[32];
+ volatile uint32_t RLR[32];
+ volatile uint32_t C1IER;
+ volatile uint32_t C1ICR;
+ volatile uint32_t C1ISR;
+ volatile uint32_t C1MISR;
+ volatile uint32_t C2IER;
+ volatile uint32_t C2ICR;
+ volatile uint32_t C2ISR;
+ volatile uint32_t C2MISR;
+ uint32_t _reserved[8];
+ volatile uint32_t CR;
+ volatile uint32_t KEYR;
+};
+
+template <typename T>
+class STM32_HSEM_t : public mmio_ptr<T> {
+ public:
+ using mmio_ptr<T>::ptr;
+}; \ No newline at end of file