Merge branch 'bugfix/cxx_flag_operators_v4.0' into 'release/v4.0'

esp_eth: moved extern "C" after includes (v4.0)

See merge request espressif/esp-idf!11219
This commit is contained in:
Jiang Jiang Jian 2020-11-22 15:35:22 +08:00
commit d6f697e113
5 changed files with 18 additions and 17 deletions

View File

@ -13,14 +13,14 @@
// limitations under the License.
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include "esp_eth_com.h"
#include "esp_eth_mac.h"
#include "esp_eth_phy.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Handle of Ethernet driver
*

View File

@ -13,13 +13,13 @@
// limitations under the License.
#pragma once
#include "esp_err.h"
#include "esp_event_base.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "esp_err.h"
#include "esp_event_base.h"
/**
* @brief Maximum Ethernet payload size
*

View File

@ -13,10 +13,6 @@
// limitations under the License.
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#include "esp_eth_com.h"
#include "sdkconfig.h"
@ -24,6 +20,10 @@ extern "C" {
#include "driver/spi_master.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Ethernet MAC
*

View File

@ -13,14 +13,15 @@
// limitations under the License.
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#include "esp_eth_com.h"
#include "sdkconfig.h"
#ifdef __cplusplus
extern "C" {
#endif
#define ESP_ETH_PHY_ADDR_AUTO (-1)
/**
* @brief Ethernet PHY
*

View File

@ -13,12 +13,12 @@
// limitations under the License.
#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
/******************Basic PHY Registers*******************/
/**