mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-09-21 22:06:46 +08:00
feat: Don't use c_types.h in SDK
This commit is contained in:
@ -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"
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#define __SPI_INTERFACE_H__
|
#define __SPI_INTERFACE_H__
|
||||||
|
|
||||||
#include "spi_register.h"
|
#include "spi_register.h"
|
||||||
#include "c_types.h"
|
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
|
@ -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)
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -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)();
|
||||||
|
Reference in New Issue
Block a user