From b3dc0dda8751151657440f843bfe524300329903 Mon Sep 17 00:00:00 2001 From: pvvx Date: Tue, 12 Dec 2017 23:34:00 +0300 Subject: [PATCH] Single Compilation Unit --- project/src/web/_sci_web.c | 64 ++++++++++++++++++++++++ project/src/web/_sci_web_user.c | 89 +++++++++++++++++++++++++++++++++ 2 files changed, 153 insertions(+) create mode 100644 project/src/web/_sci_web.c create mode 100644 project/src/web/_sci_web_user.c diff --git a/project/src/web/_sci_web.c b/project/src/web/_sci_web.c new file mode 100644 index 0000000..6324aaf --- /dev/null +++ b/project/src/web/_sci_web.c @@ -0,0 +1,64 @@ +/* + * WebSclLib: Single Compilation Unit "web" + */ + +#define COMPILE_SCI 1 + +#include "user_config.h" +#ifdef USE_WEB +#include "autoconf.h" +#include "FreeRTOS.h" +#include "task.h" +#include "diag.h" +#include "hal_crypto.h" +#include "lwip/tcp.h" +#include "tcpsrv/tcp_srv_conn.h" +#include "web_srv_int.h" +#include "web_utils.h" +#include "flash_eep.h" +#include "device_lock.h" +#include "webfs/webfs.h" +#include "user/sys_cfg.h" +#include "wifi_api.h" +#include "sys_api.h" + +#include "web_srv.h" + +#include "rtl8195a/rtl_libc.h" +#include "esp_comp.h" + +#ifdef WEBSOCKET_ENA +#include "web_websocket.h" +#endif + +#ifdef USE_CAPTDNS +#include "captdns.h" +#endif + +#ifdef USE_OVERLAY +#include "overlay.h" +#endif + +#undef mMIN +#define mMIN(a, b) ((a < b)? a : b) +#undef mMAX +#define mMAX(a, b) ((a > b)? a : b) + +#define ifcmp(a) if(rom_xstrcmp(cstr, a)) + +extern int rom_atoi(const char *); +#undef atoi +#define atoi rom_atoi + +extern struct netif xnetif[NET_IF_NUM]; /* network interface structure */ + +#include "web_auth.c" +#include "web_srv.c" +#include "web_utils.c" +#include "web_websocket.c" +#include "websock.c" + +//#include "web_int_vars.c" +//#include "web_int_callbacks.c" + +#endif // USE_WEB \ No newline at end of file diff --git a/project/src/web/_sci_web_user.c b/project/src/web/_sci_web_user.c new file mode 100644 index 0000000..7af2751 --- /dev/null +++ b/project/src/web/_sci_web_user.c @@ -0,0 +1,89 @@ +/* + * WebSclLib: Single Compilation Unit "web_user" + */ + +#define COMPILE_SCI 1 + +#include "user_config.h" +#ifdef USE_WEB +#include "autoconf.h" +#include "FreeRTOS.h" +#include "freertos_pmu.h" +#include "task.h" +#include "diag.h" +#include "tcm_heap.h" +#include "lwip/ip.h" +#include "lwip/ip_addr.h" +#include "lwip/tcp.h" +#include "tcpsrv/tcp_srv_conn.h" +#include "ethernetif.h" +#include "web_srv_int.h" +#include "web_utils.h" +#include "webfs/webfs.h" +#include "flash_eep.h" +#include "device_lock.h" +#include "rtl8195a/rtl_libc.h" +#include "user/sys_cfg.h" +#include "wifi_api.h" +#include "sleep_ex_api.h" +#include "sys_api.h" +#include "esp_comp.h" + +#ifdef USE_NETBIOS +#include "netbios/netbios.h" +#endif + +#ifdef USE_SNTP +#include "sntp/sntp.h" +#endif + +#ifdef USE_LWIP_PING +#include "lwip/app/ping.h" +struct ping_option pingopt; // for test +#endif + +#ifdef USE_CAPTDNS +#include "captdns.h" +#endif + +#ifdef USE_MODBUS +#include "modbustcp.h" +#include "mdbtab.h" +#endif + +#ifdef USE_RS485DRV +#include "driver/rs485drv.h" +#include "mdbrs485.h" +#endif + +#ifdef USE_OVERLAY +#include "overlay.h" +#endif + +extern void web_get_ram(TCP_SERV_CONN *ts_conn); +extern void web_get_flash(TCP_SERV_CONN *ts_conn); +extern void web_hexdump(TCP_SERV_CONN *ts_conn); + +#define ifcmp(a) if(rom_xstrcmp(cstr, a)) + +extern int rom_atoi(const char *); +#undef atoi +#define atoi rom_atoi + +#undef mMIN +#define mMIN(a, b) ((a < b)? a : b) +#undef mMAX +#define mMAX(a, b) ((a > b)? a : b) + +#define ifcmp(a) if(rom_xstrcmp(cstr, a)) + +extern int rom_atoi(const char *); +#undef atoi +#define atoi rom_atoi + +extern struct netif xnetif[NET_IF_NUM]; /* network interface structure */ + +#include "web_int_vars.c" +#include "web_int_callbacks.c" + +#endif // USE_WEB \ No newline at end of file