diff --git a/cpu/stm32_common/include/periph_cpu_common.h b/cpu/stm32_common/include/periph_cpu_common.h
index fd97fb25a2735b977c13baa1391235305d41aa37..2083b08bb6290dfb2cef25f48aeb8de6e913e5ad 100644
--- a/cpu/stm32_common/include/periph_cpu_common.h
+++ b/cpu/stm32_common/include/periph_cpu_common.h
@@ -370,6 +370,7 @@ typedef enum {
     STM32_LPUART,           /**< STM32 Low-power UART (LPUART) module type */
 } uart_type_t;
 
+#ifndef DOXYGEN
 /**
  * @brief   Invalid UART mode mask
  *
@@ -419,6 +420,7 @@ typedef enum {
    UART_STOP_BITS_2 = USART_CR2_STOP_1,   /**< 2 stop bits */
 } uart_stop_bits_t;
 /** @} */
+#endif /* ndef DOXYGEN */
 
 /**
  * @brief   Structure for UART configuration data