mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 06:11:06 +00:00 
			
		
		
		
	[cxx]: fixed extern "C" declarations
* Moving #includes above
  #ifdef __cplusplus extern "C" { #endif
  So that we can compile with CPP.
Signed-off-by: Jakob Hasse <jakob.hasse@espressif.com>
Merges https://github.com/espressif/esp-idf/pull/6634
Closes https://github.com/espressif/esp-idf/issues/6633
			
			
This commit is contained in:
		
				
					committed by
					
						
						Jakob Hasse
					
				
			
			
				
	
			
			
			
						parent
						
							9a2d251912
						
					
				
				
					commit
					a71d9cc466
				
			@@ -13,12 +13,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#pragma once
 | 
					#pragma once
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "driver/touch_sensor_common.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef __cplusplus
 | 
					#ifdef __cplusplus
 | 
				
			||||||
extern "C" {
 | 
					extern "C" {
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "driver/touch_sensor_common.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * @brief Set touch sensor FSM start
 | 
					 * @brief Set touch sensor FSM start
 | 
				
			||||||
 * @note  Start FSM after the touch sensor FSM mode is set.
 | 
					 * @note  Start FSM after the touch sensor FSM mode is set.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,14 +15,14 @@
 | 
				
			|||||||
#ifndef __ESP_ADC_CAL_H__
 | 
					#ifndef __ESP_ADC_CAL_H__
 | 
				
			||||||
#define __ESP_ADC_CAL_H__
 | 
					#define __ESP_ADC_CAL_H__
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef __cplusplus
 | 
					 | 
				
			||||||
extern "C" {
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#include <stdint.h>
 | 
					#include <stdint.h>
 | 
				
			||||||
#include "esp_err.h"
 | 
					#include "esp_err.h"
 | 
				
			||||||
#include "driver/adc.h"
 | 
					#include "driver/adc.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef __cplusplus
 | 
				
			||||||
 | 
					extern "C" {
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * @brief Type of calibration value used in characterization
 | 
					 * @brief Type of calibration value used in characterization
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user