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 "c_types.h"
#include "esp8266/eagle_soc.h"
#include "esp8266/pin_mux_register.h"
#include "esp8266/ets_sys.h"

View File

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

View File

@ -62,6 +62,14 @@
#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 {{
#define ETS_UNCACHED_ADDR(addr) (addr)
#define ETS_CACHED_ADDR(addr) (addr)

View File

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

View File

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