diff options
Diffstat (limited to 'wpan/stm32_ipcc.h')
-rw-r--r-- | wpan/stm32_ipcc.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/wpan/stm32_ipcc.h b/wpan/stm32_ipcc.h new file mode 100644 index 0000000..e264d8b --- /dev/null +++ b/wpan/stm32_ipcc.h @@ -0,0 +1,22 @@ +#pragma once + +#include <stdint.h> +#include <mmio/mmio.h> + + +struct STM32_IPCC_reg_v1_t { + volatile uint32_t C1CR; + volatile uint32_t C1MR; + volatile uint32_t C1SCR; + volatile uint32_t C1TOC2SR; + volatile uint32_t C2CR; + volatile uint32_t C2MR; + volatile uint32_t C2SCR; + volatile uint32_t C2TOC1SR; +}; + +template <typename T> +class STM32_IPCC_t : public mmio_ptr<T> { + public: + using mmio_ptr<T>::ptr; +}; |