mirror of
https://github.com/kissste/rtl8710_Raw_Packets.git
synced 2025-07-31 12:41:05 +00:00
First commit
This commit is contained in:
commit
3fa968afe2
84 changed files with 9261 additions and 0 deletions
8
project/inc/user/cgi-test.h
Normal file
8
project/inc/user/cgi-test.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#ifndef CGI_TEST_H
|
||||
#define CGI_TEST_H
|
||||
|
||||
|
||||
|
||||
int cgiTestbed(HttpdConnData *connData);
|
||||
|
||||
#endif
|
||||
13
project/inc/user/cgiwifi_rtl.h
Normal file
13
project/inc/user/cgiwifi_rtl.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#ifndef CGIWIFI_H
|
||||
#define CGIWIFI_H
|
||||
|
||||
#include "httpd.h"
|
||||
|
||||
httpd_cgi_state cgiWiFiScan(HttpdConnData *connData);
|
||||
httpd_cgi_state tplWlan(HttpdConnData *connData, char *token, void **arg);
|
||||
httpd_cgi_state cgiWiFi(HttpdConnData *connData);
|
||||
httpd_cgi_state cgiWiFiConnect(HttpdConnData *connData);
|
||||
httpd_cgi_state cgiWiFiSetMode(HttpdConnData *connData);
|
||||
httpd_cgi_state cgiWiFiConnStatus(HttpdConnData *connData);
|
||||
|
||||
#endif
|
||||
14
project/inc/user/http_server.h
Normal file
14
project/inc/user/http_server.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* http_server.h
|
||||
*
|
||||
* Created on: Feb 20, 2017
|
||||
* Author: user003
|
||||
*/
|
||||
|
||||
#ifndef HTTP_SERVER_H_
|
||||
#define HTTP_SERVER_H_
|
||||
|
||||
void GpioLedInit(void);
|
||||
void websocketBcast(void *arg);
|
||||
|
||||
#endif /* HTTP_SERVER_H_ */
|
||||
68
project/inc/user/main.h
Normal file
68
project/inc/user/main.h
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
#ifndef MAIN_H
|
||||
#define MAIN_H
|
||||
|
||||
#include <autoconf.h>
|
||||
|
||||
#ifndef CONFIG_WLAN
|
||||
#define CONFIG_WLAN 1
|
||||
#endif
|
||||
|
||||
/* Header file declaration*/
|
||||
void wlan_network();
|
||||
|
||||
/* Interactive Mode */
|
||||
#define SERIAL_DEBUG_RX 1
|
||||
|
||||
|
||||
#define ATVER_1 1 // For First AT command
|
||||
#define ATVER_2 2 // For UART Module AT command
|
||||
|
||||
#if CONFIG_EXAMPLE_UART_ATCMD
|
||||
#define ATCMD_VER ATVER_2
|
||||
#else
|
||||
#define ATCMD_VER ATVER_1
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/*Static IP ADDRESS*/
|
||||
#define IP_ADDR0 192
|
||||
#define IP_ADDR1 168
|
||||
#define IP_ADDR2 3
|
||||
#define IP_ADDR3 80
|
||||
|
||||
/*NETMASK*/
|
||||
#define NETMASK_ADDR0 255
|
||||
#define NETMASK_ADDR1 255
|
||||
#define NETMASK_ADDR2 255
|
||||
#define NETMASK_ADDR3 0
|
||||
|
||||
/*Gateway Address*/
|
||||
#define GW_ADDR0 192
|
||||
#define GW_ADDR1 168
|
||||
#define GW_ADDR2 3
|
||||
#define GW_ADDR3 1
|
||||
|
||||
/*******************************************/
|
||||
|
||||
/*Static IP ADDRESS*/
|
||||
#define AP_IP_ADDR0 192
|
||||
#define AP_IP_ADDR1 168
|
||||
#define AP_IP_ADDR2 43
|
||||
#define AP_IP_ADDR3 1
|
||||
|
||||
/*NETMASK*/
|
||||
#define AP_NETMASK_ADDR0 255
|
||||
#define AP_NETMASK_ADDR1 255
|
||||
#define AP_NETMASK_ADDR2 255
|
||||
#define AP_NETMASK_ADDR3 0
|
||||
|
||||
/*Gateway Address*/
|
||||
#define AP_GW_ADDR0 192
|
||||
#define AP_GW_ADDR1 168
|
||||
#define AP_GW_ADDR2 43
|
||||
#define AP_GW_ADDR3 1
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
29
project/inc/user/user_config.h
Normal file
29
project/inc/user/user_config.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* wc_mgr.h
|
||||
*
|
||||
* Created on: Feb 16, 2017
|
||||
* Author: sharikov
|
||||
*/
|
||||
#ifndef WC_MGR_H_
|
||||
#define WC_MGR_H_
|
||||
|
||||
#define FREERTOS
|
||||
#define HTTPD_MAX_CONNECTIONS 15
|
||||
|
||||
// #define WIFI_RESET_SETTINGS_PIN PB_1 // wifi settings reset: connect PB1 to ground
|
||||
|
||||
#define GPIO_LED_PIN PA_4
|
||||
#define BITBAND_LED BITBAND_A4
|
||||
|
||||
#define AP_SCAN_LIST_SIZE 32
|
||||
|
||||
#define FLASH_APP_BASE 0xd0000
|
||||
#define flash_size
|
||||
|
||||
#define USE_NETBIOS
|
||||
|
||||
#define HTTPD_PRIORITY (tskIDLE_PRIORITY + 1 + PRIORITIE_OFFSET)
|
||||
#define CAPDNS_PRIORITY (tskIDLE_PRIORITY + 0 + PRIORITIE_OFFSET)
|
||||
#define WEBSOC_PRIORITY (tskIDLE_PRIORITY + 1 + PRIORITIE_OFFSET)
|
||||
|
||||
#endif /* WC_MGR_H_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue