]> granicus.if.org Git - esp-idf/commitdiff
Bugfix/ added esp_adc_cal include guards
authorDarian Leung <darian@espressif.com>
Fri, 1 Sep 2017 04:07:37 +0000 (12:07 +0800)
committerDarian Leung <darian@espressif.com>
Fri, 1 Sep 2017 04:07:37 +0000 (12:07 +0800)
components/esp_adc_cal/include/esp_adc_cal.h

index 2d561f5c02f67106dfcb2512878c2d66b0bcbfef..4a2d06a95351e53bc2d25c72ae2e837911da2453 100644 (file)
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#ifndef __ESP_ADC_CAL_H__
+#define __ESP_ADC_CAL_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <stdint.h>
 #include "driver/adc.h"
 
@@ -139,3 +146,8 @@ uint32_t esp_adc_cal_raw_to_voltage(uint32_t adc,
  */
 uint32_t adc1_to_voltage(adc1_channel_t channel, const esp_adc_cal_characteristics_t *chars);
 
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __ESP_ADC_CAL_H__ */