feat: Don't use c_types.h in SDK

This commit is contained in:
Wu Jian Gang
2018-05-24 20:41:09 +08:00
parent d0c7e2f1d0
commit e518650b36
15 changed files with 17 additions and 19 deletions

View File

@ -15,8 +15,6 @@
#include <stdint.h> #include <stdint.h>
#include "c_types.h"
#include "esp8266/eagle_soc.h" #include "esp8266/eagle_soc.h"
#include "esp8266/pin_mux_register.h" #include "esp8266/pin_mux_register.h"
#include "esp8266/ets_sys.h" #include "esp8266/ets_sys.h"

View File

@ -20,7 +20,6 @@
#define __SPI_INTERFACE_H__ #define __SPI_INTERFACE_H__
#include "spi_register.h" #include "spi_register.h"
#include "c_types.h"
//***************************************************************************** //*****************************************************************************
// //

View File

@ -62,6 +62,14 @@
#define BIT0 0x00000001 #define BIT0 0x00000001
//}} //}}
#define BIT(nr) (1UL << (nr))
#define REG_WRITE(_r, _v) (*(volatile uint32_t *)(_r)) = (_v)
#define REG_READ(_r) (*(volatile uint32_t *)(_r))
#define REG_SET_BIT(_r, _b) (*(volatile uint32_t *)(_r) |= (_b))
#define REG_CLR_BIT(_r, _b) (*(volatile uint32_t *)(_r) &= ~(_b))
//Registers Operation {{ //Registers Operation {{
#define ETS_UNCACHED_ADDR(addr) (addr) #define ETS_UNCACHED_ADDR(addr) (addr)
#define ETS_CACHED_ADDR(addr) (addr) #define ETS_CACHED_ADDR(addr) (addr)

View File

@ -27,8 +27,6 @@
#include <stdint.h> #include <stdint.h>
#include "c_types.h"
/* interrupt related */ /* interrupt related */
#define ETS_SPI_INUM 2 #define ETS_SPI_INUM 2
#define ETS_GPIO_INUM 4 #define ETS_GPIO_INUM 4

View File

@ -91,7 +91,6 @@
* inside the RTOS SDK, users can not change it. * inside the RTOS SDK, users can not change it.
*/ */
#include "c_types.h"
#include "esp_libc.h" #include "esp_libc.h"
#include "esp_misc.h" #include "esp_misc.h"
#include "esp_wifi.h" #include "esp_wifi.h"

View File

@ -117,6 +117,7 @@ task.h is included from an application file. */
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "freertos/task.h" #include "freertos/task.h"
#include "esp8266/eagle_soc.h"
#include "esp8266/ets_sys.h" #include "esp8266/ets_sys.h"
#include "esp8266/rom_functions.h" #include "esp8266/rom_functions.h"

View File

@ -14,8 +14,6 @@
#include <string.h> #include <string.h>
#include "c_types.h"
#include "esp8266/ets_sys.h" #include "esp8266/ets_sys.h"
#include "esp8266/eagle_soc.h" #include "esp8266/eagle_soc.h"
#include "esp8266/uart_register.h" #include "esp8266/uart_register.h"

View File

@ -82,6 +82,7 @@
#include "esp_attr.h" #include "esp_attr.h"
#include "esp_libc.h" #include "esp_libc.h"
#include "esp8266/eagle_soc.h"
#include "esp8266/ets_sys.h" #include "esp8266/ets_sys.h"
#include "esp8266/rom_functions.h" #include "esp8266/rom_functions.h"

View File

@ -34,8 +34,6 @@
#ifndef __ARCH_CC_H__ #ifndef __ARCH_CC_H__
#define __ARCH_CC_H__ #define __ARCH_CC_H__
#include "c_types.h"
#define EFAULT 14 #define EFAULT 14
#define LWIP_ERRNO_INCLUDE "sys/errno.h" #define LWIP_ERRNO_INCLUDE "sys/errno.h"

View File

@ -16,8 +16,6 @@
#include <string.h> #include <string.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "c_types.h"
#include "esp8266/ets_sys.h" #include "esp8266/ets_sys.h"
#include "esp8266/eagle_soc.h" #include "esp8266/eagle_soc.h"
#include "esp8266/uart_register.h" #include "esp8266/uart_register.h"

View File

@ -40,7 +40,6 @@
extern "C" { extern "C" {
#endif #endif
#include "c_types.h"
#include "ssl/ssl_version.h" #include "ssl/ssl_version.h"
#include "ssl/ssl_config.h" #include "ssl/ssl_config.h"

View File

@ -29,7 +29,6 @@
#ifndef MBEDTLS_CONFIG_H #ifndef MBEDTLS_CONFIG_H
#define MBEDTLS_CONFIG_H #define MBEDTLS_CONFIG_H
#include "c_types.h"
#include "sdkconfig.h" #include "sdkconfig.h"
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)

View File

@ -15,13 +15,16 @@
#ifndef _SSL_PORT_H_ #ifndef _SSL_PORT_H_
#define _SSL_PORT_H_ #define _SSL_PORT_H_
#include <string.h>
#include "esp_system.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#include "c_types.h"
#include "esp_system.h"
#include "string.h"
#ifdef MEMLEAK_DEBUG #ifdef MEMLEAK_DEBUG

View File

@ -8,7 +8,6 @@
*/ */
#include <stddef.h> #include <stddef.h>
#include "c_types.h"
#include "lwipopts.h" #include "lwipopts.h"
#include "lwip/ip_addr.h" #include "lwip/ip_addr.h"
#include "esp_libc.h" #include "esp_libc.h"

View File

@ -10,7 +10,7 @@
#define _WIFI_STATE_MACHINE_H_ #define _WIFI_STATE_MACHINE_H_
#include <stddef.h> #include <stddef.h>
#include "c_types.h"
#include "esp_wifi.h" #include "esp_wifi.h"
typedef void (* wifi_state_cb_t)(); typedef void (* wifi_state_cb_t)();