diff --git a/components/soc/soc/esp32/include/soc/brownout_caps.h b/components/soc/soc/esp32/include/soc/brownout_caps.h index 079386811..3d96a52df 100644 --- a/components/soc/soc/esp32/include/soc/brownout_caps.h +++ b/components/soc/soc/esp32/include/soc/brownout_caps.h @@ -20,7 +20,7 @@ extern "C" { #include "sdkconfig.h" -#if (CONFIG_ESP32_REV_MIN >= 1) +#if __DOXYGEN__ || (CONFIG_ESP32_REV_MIN >= 1) #define SOC_BROWNOUT_RESET_SUPPORTED 1 #endif diff --git a/components/soc/soc/esp32/include/soc/can_caps.h b/components/soc/soc/esp32/include/soc/can_caps.h index 2d2df9c43..19294fd85 100644 --- a/components/soc/soc/esp32/include/soc/can_caps.h +++ b/components/soc/soc/esp32/include/soc/can_caps.h @@ -20,7 +20,7 @@ extern "C" { #include "sdkconfig.h" -#if (CONFIG_ESP32_REV_MIN >= 2) +#if __DOXYGEN__ || (CONFIG_ESP32_REV_MIN >= 2) #define CAN_BRP_DIV_SUPPORTED 1 #define CAN_BRP_DIV_THRESH 128 //Any even number from 2 to 128, or multiples of 4 from 132 to 256