From b34efc66f164816d37d47f52efd591555eefdd5c Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Thu, 6 Jan 2022 23:30:28 +0000 Subject: stm32wb: wpan/ipcc/hsem: initial registers Not sure if "wpan" is the right directory for them, but they didn't feel like they warranted their own directory each. Signed-off-by: Karl Palsson --- wpan/stm32_ipcc.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 wpan/stm32_ipcc.h (limited to 'wpan/stm32_ipcc.h') 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 +#include + + +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 +class STM32_IPCC_t : public mmio_ptr { + public: + using mmio_ptr::ptr; +}; -- cgit v1.2.3