@@ -55,15 +55,14 @@ Original Source:
55
55
#endif
56
56
#endif
57
57
#endif
58
+ #endif
58
59
59
- #if __has_include(<soc/syscon_reg.h>)
60
- #include < soc/syscon_reg.h>
61
- #endif
62
- #else
63
- #if __has_include (<soc/apb_ctrl_reg.h>)
64
- #include < soc/apb_ctrl_reg.h>
65
- #endif
60
+ #if __has_include(<soc/syscon_reg.h>)
61
+ #include < soc/syscon_reg.h>
62
+ #elif __has_include (<soc/apb_ctrl_reg.h>)
63
+ #include < soc/apb_ctrl_reg.h>
66
64
#endif
65
+
67
66
#include < soc/efuse_reg.h>
68
67
69
68
#include < esp_log.h>
@@ -757,6 +756,7 @@ namespace lgfx
757
756
#define I2C_ACK_ERR_INT_RAW_M I2C_NACK_INT_RAW_M
758
757
#endif
759
758
759
+ __attribute__ ((unused))
760
760
static periph_module_t getPeriphModule (int num)
761
761
{
762
762
#if SOC_I2C_NUM == 1 || defined CONFIG_IDF_TARGET_ESP32C6
@@ -776,6 +776,7 @@ namespace lgfx
776
776
}
777
777
778
778
#if defined ( I2C_CLOCK_SRC_ATOMIC )
779
+ __attribute__ ((unused))
779
780
static void i2c_periph_enable(int i2c_num)
780
781
{
781
782
I2C_RCC_ATOMIC () {
@@ -787,6 +788,7 @@ namespace lgfx
787
788
}
788
789
}
789
790
791
+ __attribute__ ((unused))
790
792
static void i2c_periph_disable(int i2c_num)
791
793
{
792
794
// periph_ll_disable_clk_clear_rst(mod);
0 commit comments