Skip to content

Commit

Permalink
Fix compiling when included from C++
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFEEDC0DE64 committed Feb 18, 2022
1 parent b66cc63 commit c86fba7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/hal/esp32/include/hal/i2s_ll.h
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ static inline void i2s_ll_rx_set_pdm_dsr(i2s_dev_t *hw, i2s_pdm_dsr_t dsr)
*/
static inline void i2s_ll_rx_get_pdm_dsr(i2s_dev_t *hw, i2s_pdm_dsr_t *dsr)
{
*dsr = hw->pdm_conf.rx_sinc_dsr_16_en;
*dsr = (i2s_pdm_dsr_t)hw->pdm_conf.rx_sinc_dsr_16_en;
}

/**
Expand Down
8 changes: 8 additions & 0 deletions components/hal/include/hal/adc_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

#pragma once

#ifdef __cplusplus
extern "C" {
#endif

#include "esp_err.h"
#include "soc/soc_caps.h"
#include "hal/dma_types.h"
Expand Down Expand Up @@ -382,3 +386,7 @@ uint32_t adc_hal_self_calibration(adc_ll_num_t adc_n, adc_channel_t channel, adc
* @prarm adc_n ADC unit.
*/
#define adc_hal_rtc_output_invert(adc_n, inv_en) adc_ll_rtc_output_invert(adc_n, inv_en)

#ifdef __cplusplus
}
#endif

0 comments on commit c86fba7

Please sign in to comment.