Working variant of esp_iot_rtos_sdk (files from commit ec75c85f9ef53)
This commit is contained in:
parent
101c8648ea
commit
1ffbc303ff
124 changed files with 19424 additions and 592 deletions
26
include/espressif/esp_misc.h
Normal file
26
include/espressif/esp_misc.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright (C) 2013 -2014 Espressif System
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __ESP_MISC_H__
|
||||
#define __ESP_MISC_H__
|
||||
|
||||
#include "lwip/ip_addr.h"
|
||||
|
||||
#define MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
|
||||
#define MACSTR "%02x:%02x:%02x:%02x:%02x:%02x"
|
||||
|
||||
#define IP2STR(ipaddr) ip4_addr1_16(ipaddr), \
|
||||
ip4_addr2_16(ipaddr), \
|
||||
ip4_addr3_16(ipaddr), \
|
||||
ip4_addr4_16(ipaddr)
|
||||
|
||||
#define IPSTR "%d.%d.%d.%d"
|
||||
|
||||
void os_delay_us(uint16_t us);
|
||||
|
||||
void os_install_putc1(void (*p)(char c));
|
||||
void os_putc(char c);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue