mirror of
https://github.com/pvvx/RTL00_WEB.git
synced 2026-04-05 21:15:11 +00:00
update
This commit is contained in:
parent
9ffd9dac1a
commit
eac35630e6
31 changed files with 185 additions and 130 deletions
|
|
@ -31,7 +31,7 @@ typedef struct _ina219drv {
|
|||
signed short ss[2];
|
||||
unsigned int ui;
|
||||
} buf_i2c;
|
||||
volatile i2c_drv_t i2c;
|
||||
i2c_drv_t i2c;
|
||||
} INA219DRV, *PINA219DRV;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ typedef struct _ina219drv {
|
|||
signed short ss[2];
|
||||
unsigned int ui;
|
||||
} buf_i2c;
|
||||
volatile i2c_drv_t i2c;
|
||||
i2c_drv_t i2c;
|
||||
} INA219DRV, *PINA219DRV;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -185,6 +185,7 @@ a lot of data that needs to be copied, this should be set high. */
|
|||
|
||||
/* Support Multicast */
|
||||
#define LWIP_IGMP 1
|
||||
|
||||
extern __attribute__ ((long_call)) unsigned int Rand(void);
|
||||
#define LWIP_RAND() Rand()
|
||||
|
||||
|
|
|
|||
|
|
@ -12,9 +12,11 @@
|
|||
|
||||
#include "lwip/err.h"
|
||||
|
||||
#undef mMIN
|
||||
#define mMIN(a, b) ((a < b)? a : b)
|
||||
#define mMAX(a, b) ((a>b)?a:b)
|
||||
|
||||
|
||||
enum srvconn_state {
|
||||
SRVCONN_NONE =0,
|
||||
SRVCONN_CLOSEWAIT, // ожидает закрытия
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
#ifndef _WEBSOCK_H_
|
||||
#define _WEBSOCK_H_
|
||||
#include "lwip/err.h"
|
||||
#include "tcpsrv/tcp_srv_conn.h"
|
||||
|
||||
//#define WS_NONBLOCK 0x02
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
RTW_SECURITY_WPA_TKIP_PSK - WPA Security
|
||||
RTW_SECURITY_WPA2_AES_PSK - WPA2 Security using AES cipher
|
||||
RTW_SECURITY_WPA2_MIXED_PSK - WPA2 Security using AES and/or TKIP ciphers */
|
||||
#define DEF_AP_SECURITY RTW_SECURITY_WPA2_AES_PSK // WEP security is NOT IMPLEMENTED. It is NOT SECURE!
|
||||
#define DEF_AP_SECURITY RTW_ENCRYPTION_WPA2_MIXED // WEP security is NOT IMPLEMENTED. It is NOT SECURE!
|
||||
#define DEF_AP_BEACON 100 // 100...6000 ms
|
||||
#define DEF_AP_CHANNEL 1 // 1..14
|
||||
#define DEF_AP_CHANNEL 1 // 1..14
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
#define DEF_ST_AUTORECONNECT 1 // 0 - none, 1..254 - count, 255 - all
|
||||
#define DEF_ST_RECONNECT_PAUSE 1 // 5 sec
|
||||
#define DEF_ST_SLEEP 3 // 0 - Off, 1 - IPS, 2 - LPS, 3 - IPS/LPS mode
|
||||
#define DEF_ST_LPS_DTIM 0 // LPS DTIM
|
||||
#define DEF_ST_LPS_DTIM 1 // LPS DTIM
|
||||
#define DEF_ST_DHCP_MODE 1 // =0 dhcp off,
|
||||
// =1 - dhcp on, - динамический ip
|
||||
// =2 Static ip, - fixed ip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue