Added first half of RE'd user_interface.c
This commit is contained in:
parent
3e5af479bc
commit
8c9a77efe8
20 changed files with 745 additions and 30 deletions
include/espressif
|
@ -27,6 +27,8 @@ void sdk_os_delay_us(uint16_t us);
|
|||
void sdk_os_install_putc1(void (*p)(char c));
|
||||
void sdk_os_putc(char c);
|
||||
|
||||
void sdk_gpio_output_set(uint32_t set_mask, uint32_t clear_mask, uint32_t enable_mask, uint32_t disable_mask);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -54,8 +54,8 @@ uint32_t sdk_system_get_chip_id(void);
|
|||
uint32_t sdk_system_rtc_clock_cali_proc(void);
|
||||
uint32_t sdk_system_get_rtc_time(void);
|
||||
|
||||
bool sdk_system_rtc_mem_read(uint8_t src, void *dst, uint16_t n);
|
||||
bool sdk_system_rtc_mem_write(uint8_t dst, const void *src, uint16_t n);
|
||||
bool sdk_system_rtc_mem_read(uint32_t src_addr, void *des_addr, uint16_t save_size);
|
||||
bool sdk_system_rtc_mem_write(uint32_t des_addr, void *src_addr, uint16_t save_size);
|
||||
|
||||
void sdk_system_uart_swap(void);
|
||||
void sdk_system_uart_de_swap(void);
|
||||
|
|
8
include/espressif/osapi.h
Normal file
8
include/espressif/osapi.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef _OSAPI_H_
|
||||
#define _OSAPI_H_
|
||||
|
||||
void sdk_os_timer_setfn(ETSTimer *ptimer, ETSTimerFunc *pfunction, void *parg);
|
||||
void sdk_os_timer_arm(ETSTimer *ptimer, uint32_t milliseconds, bool repeat_flag);
|
||||
void sdk_os_timer_disarm(ETSTimer *ptimer);
|
||||
|
||||
#endif
|
27
include/espressif/user_interface.h
Normal file
27
include/espressif/user_interface.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
#ifndef __USER_INTERFACE_H__
|
||||
#define __USER_INTERFACE_H__
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "espressif/esp_wifi.h"
|
||||
|
||||
enum sdk_dhcp_status {
|
||||
DHCP_STOPPED,
|
||||
DHCP_STARTED
|
||||
};
|
||||
|
||||
uint8_t sdk_system_get_boot_version(void);
|
||||
uint32_t sdk_system_get_userbin_addr(void);
|
||||
uint8_t sdk_system_get_boot_mode(void);
|
||||
bool sdk_system_restart_enhance(uint8_t bin_type, uint32_t bin_addr);
|
||||
bool sdk_system_upgrade_userbin_set(uint8_t userbin);
|
||||
uint8_t sdk_system_upgrade_userbin_check(void);
|
||||
bool sdk_system_upgrade_flag_set(uint8_t flag);
|
||||
uint8_t sdk_system_upgrade_flag_check(void);
|
||||
bool sdk_system_upgrade_reboot(void);
|
||||
bool sdk_wifi_station_dhcpc_start(void);
|
||||
bool sdk_wifi_station_dhcpc_stop(void);
|
||||
enum sdk_dhcp_status sdk_wifi_station_dhcpc_status(void);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue