File tree Expand file tree Collapse file tree 1 file changed +17
-21
lines changed Expand file tree Collapse file tree 1 file changed +17
-21
lines changed Original file line number Diff line number Diff line change 2424#if CONFIG_IDF_TARGET_ESP32P4 && CONFIG_ESP32P4_REV_MIN_FULL >= 300
2525// NOTE: These weak definitions allow successful linkage if the real efuse calibration functions are missing.
2626// This is a workaround for the ESP32P4 rev 3.0+, which is missing efuse calibration functions in the IDF.
27- __attribute__((weak )) uint32_t esp_efuse_rtc_calib_get_ver (void )
28- {
29- return 0 ;
27+ __attribute__((weak )) uint32_t esp_efuse_rtc_calib_get_ver (void ) {
28+ return 0 ;
3029}
3130
32- __attribute__((weak )) uint32_t esp_efuse_rtc_calib_get_init_code (uint32_t atten , uint32_t * code )
33- {
34- if (code ) {
35- * code = 0 ;
36- }
37- return 0 ; // 0 means success in ESP-IDF conventions
31+ __attribute__((weak )) uint32_t esp_efuse_rtc_calib_get_init_code (uint32_t atten , uint32_t * code ) {
32+ if (code ) {
33+ * code = 0 ;
34+ }
35+ return 0 ; // 0 means success in ESP-IDF conventions
3836}
3937
40- __attribute__((weak )) uint32_t esp_efuse_rtc_calib_get_chan_compens (uint32_t atten , uint32_t * comp )
41- {
42- if (comp ) {
43- * comp = 0 ;
44- }
45- return 0 ;
38+ __attribute__((weak )) uint32_t esp_efuse_rtc_calib_get_chan_compens (uint32_t atten , uint32_t * comp ) {
39+ if (comp ) {
40+ * comp = 0 ;
41+ }
42+ return 0 ;
4643}
4744
48- __attribute__((weak )) uint32_t esp_efuse_rtc_calib_get_cal_voltage (uint32_t atten , uint32_t * voltage )
49- {
50- if (voltage ) {
51- * voltage = 0 ;
52- }
53- return 0 ;
45+ __attribute__((weak )) uint32_t esp_efuse_rtc_calib_get_cal_voltage (uint32_t atten , uint32_t * voltage ) {
46+ if (voltage ) {
47+ * voltage = 0 ;
48+ }
49+ return 0 ;
5450}
5551#endif
5652
You can’t perform that action at this time.
0 commit comments