diff --git a/boards/common/stm32/include/cfg_usb_otg_fs.h b/boards/common/stm32/include/cfg_usb_otg_fs.h index 323ca091f3..eba39f8f2c 100644 --- a/boards/common/stm32/include/cfg_usb_otg_fs.h +++ b/boards/common/stm32/include/cfg_usb_otg_fs.h @@ -36,7 +36,7 @@ extern "C" { */ static const stm32_usb_otg_fshs_config_t stm32_usb_otg_fshs_config[] = { { - .periph = (uint8_t *)USB_OTG_FS_PERIPH_BASE, + .periph = USB_OTG_FS_PERIPH_BASE, .rcc_mask = RCC_AHB2ENR_OTGFSEN, .phy = STM32_USB_OTG_PHY_BUILTIN, .type = STM32_USB_OTG_FS, diff --git a/boards/common/stm32/include/cfg_usb_otg_hs_fs.h b/boards/common/stm32/include/cfg_usb_otg_hs_fs.h index b47f05bb6f..a95f560c2d 100644 --- a/boards/common/stm32/include/cfg_usb_otg_hs_fs.h +++ b/boards/common/stm32/include/cfg_usb_otg_hs_fs.h @@ -36,7 +36,7 @@ extern "C" { */ static const stm32_usb_otg_fshs_config_t stm32_usb_otg_fshs_config[] = { { - .periph = (uint8_t *)USB_OTG_HS_PERIPH_BASE, + .periph = USB_OTG_HS_PERIPH_BASE, .rcc_mask = RCC_AHB1ENR_OTGHSEN, .phy = STM32_USB_OTG_PHY_BUILTIN, .type = STM32_USB_OTG_HS, diff --git a/cpu/stm32/include/periph_cpu.h b/cpu/stm32/include/periph_cpu.h index bfc1c3f857..a6cd00ce59 100644 --- a/cpu/stm32/include/periph_cpu.h +++ b/cpu/stm32/include/periph_cpu.h @@ -821,7 +821,7 @@ typedef enum { * @brief stm32 USB OTG configuration */ typedef struct { - uint8_t *periph; /**< USB peripheral base address */ + uintptr_t periph; /**< USB peripheral base address */ uint32_t rcc_mask; /**< bit in clock enable register */ stm32_usb_otg_fshs_phy_t phy; /**< Built-in or ULPI phy */ stm32_usb_otg_fshs_type_t type; /**< FS or HS type */