fix(esp8266): Fix header files dependency in esp8266

Closes https://github.com/espressif/ESP8266_RTOS_SDK/issues/197
This commit is contained in:
Wu Jian Gang
2018-05-31 17:30:14 +08:00
parent e8f1483801
commit c8ac7cc2be
11 changed files with 35 additions and 6 deletions

View File

@ -15,14 +15,18 @@
#ifndef __GPIO_H__
#define __GPIO_H__
#include <stdint.h>
#include "esp8266/eagle_soc.h"
#include "esp8266/gpio_register.h"
#include "esp8266/pin_mux_register.h"
#include "freertos/portmacro.h"
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include "esp8266/gpio_register.h"
#define ETS_GPIO_INTR_ENABLE() _xt_isr_unmask(1 << ETS_GPIO_INUM)
#define ETS_GPIO_INTR_DISABLE() _xt_isr_mask(1 << ETS_GPIO_INUM)

View File

@ -15,6 +15,8 @@
#ifndef __HW_TIMER_H__
#define __HW_TIMER_H__
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -15,7 +15,12 @@
#ifndef __I2C_MASTER_H__
#define __I2C_MASTER_H__
#include <stdint.h>
#include "esp_misc.h"
#include "esp8266/pin_mux_register.h"
#include "gpio.h"
#define I2C_MASTER_SDA_MUX PERIPHS_IO_MUX_GPIO2_U
#define I2C_MASTER_SCL_MUX PERIPHS_IO_MUX_GPIO4_U

View File

@ -19,6 +19,8 @@
#ifndef __SPI_INTERFACE_H__
#define __SPI_INTERFACE_H__
#include <stdint.h>
#include "spi_register.h"
//*****************************************************************************

View File

@ -15,6 +15,8 @@
#ifndef SPI_REGISTER_H_INCLUDED
#define SPI_REGISTER_H_INCLUDED
#include "esp8266/eagle_soc.h"
#define REG_SPI_BASE(i) (0x60000200-i*0x100)
#define SPI_CMD(i) (REG_SPI_BASE(i) + 0x0)

View File

@ -15,12 +15,16 @@
#ifndef __UART_H__
#define __UART_H__
#include <stdint.h>
#include "esp8266/uart_register.h"
#include "freertos/portmacro.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "esp8266/uart_register.h"
#define ETS_UART_INTR_ENABLE() _xt_isr_unmask(1 << ETS_UART_INUM)
#define ETS_UART_INTR_DISABLE() _xt_isr_mask(1 << ETS_UART_INUM)
#define UART_INTR_MASK 0x1ff