This commit is contained in:
pvvx 2017-03-02 12:38:12 +03:00
parent 4cf5fcf936
commit 151c53c5ce
11 changed files with 2342 additions and 2339 deletions

View file

@ -18,21 +18,25 @@ PWM Out GC_2 and PE_2 (2 канала по 96Bit на один исходный
Console command (RX/TX GB1/GB0 38400 baud):<br> Console command (RX/TX GB1/GB0 38400 baud):<br>
ATW0=SSID - задать имя AP<br> CONSOLE COMMAND SET:<br>
ATW1=PASSPHRASE - задать пароль AP<br> ==============================<br>
ATWC - Connect to an AES AP<br> ATPN=<SSID>[,<PASSPHRASE>[,WEPKEY]]: WIFI Connect to AP<br>
ATWD - DisConnect AP<br> ATWS=<URL,PORT>: MP3 Connect to URL<br>
ATWS=URL,PORT - задать канал web-radio или http файл<br> ATWS=<c>[lose]: Close MP3<br>
. Sample: ATWS=icecast.omroep.nl/3fm-sb-mp3,80<br> ATWS=<r>[ead]: Read MP3 URL<br>
. ATWS=meuk.spritesserver.nl/Ii.Romanzeandante.mp3,80<br> ATWS=<s>[ave]: Save MP3 URL<br>
. ATWS=?, ATWS=close, ATWS=save, ATWS=read<br> ATWS=<?>: URL Info<br>
. ATWS=x,0 и ATWS=save - отключить старт<br> ATWD: WIFI Disconnect<br>
ATST - Mem/Task Info<br> ATST: Memory info<br>
ATOF - Отключить MP3<br> ATLW: Lwip Info<br>
ATSB=<ADDRES(hex)>[,COUNT(dec)]: Dump byte register<br>
ATSD=hexaddr,count - Damp памяти/регистров с адреса...<br> ATSD=<ADDRES(hex)>[,COUNT(dec)]: Dump dword register<br>
ATWD=hexaddr,hexdata - Записать dword по адресу<br> ATSW=<ADDRES(hex)>,<DATA(hex)>: Set register<br>
ATDS=[TIME(ms)]: Deep sleep<br>
ATON: Open connections<br>
ATOF: Close connections<br>
?: This Help<br>
==============================<br>
По умолчанию, в качестве JTAG используется J-Link STLink V2.<br> По умолчанию, в качестве JTAG используется J-Link STLink V2.<br>

View file

@ -157,10 +157,10 @@ void patch_rltk_wlan_deinit(void) {
uint8_t chk; uint8_t chk;
if (rltk_wlan_info[0].enable || rltk_wlan_info[0].enable) { if (rltk_wlan_info[0].enable || rltk_wlan_info[0].enable) {
_adapter *ad = rltk_wlan_info[0].dev->priv; _adapter *ad = rltk_wlan_info[0].dev->priv;
ad->bSurpriseRemoved = 1; // + 5892 ad->bSurpriseRemoved = 1;
rtw_wakeup_task(&ad->isrThread.task); // +5912 rtw_wakeup_task(&ad->isrThread.task);
while (1) { while (1) {
save_and_cli(); // taskENTER_CRITICAL(); // vPortEnterCritical() save_and_cli(); // = taskENTER_CRITICAL(); // = vPortEnterCritical()
rltk_wlan_info[0].enable = 0; rltk_wlan_info[0].enable = 0;
rltk_wlan_info[1].enable = 0; rltk_wlan_info[1].enable = 0;
chk = rltk_wlan_info[0].tx_busy + rltk_wlan_info[0].rx_busy chk = rltk_wlan_info[0].tx_busy + rltk_wlan_info[0].rx_busy

View file

@ -442,8 +442,6 @@ static void vProcessConnection( struct netconn *pxNetCon );
rtw_wifi_setting_t wifi_setting = {RTW_MODE_NONE, {0}, 0, RTW_SECURITY_OPEN, {0}}; rtw_wifi_setting_t wifi_setting = {RTW_MODE_NONE, {0}, 0, RTW_SECURITY_OPEN, {0}};
#ifndef WLAN0_NAME #ifndef WLAN0_NAME
#define WLAN0_NAME "wlan0" #define WLAN0_NAME "wlan0"
#endif #endif

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load diff

View file

@ -163,7 +163,7 @@ void fATWC(int argc, char *argv[]){
wifi.password_len = strlen(password); wifi.password_len = strlen(password);
} }
if(argc > 3) { if(argc > 3) {
if((strlen(argv[3][0]) != 1 ) || (argv[3][0] <'0' || argv[3][0] >'3')) { if((strlen(argv[3]) != 1 ) || (argv[3][0] <'0' || argv[3][0] >'3')) {
printf("%s: Wrong WEP key id. Must be one of 0,1,2, or 3.\n", argv[0]); printf("%s: Wrong WEP key id. Must be one of 0,1,2, or 3.\n", argv[0]);
return; return;
} }

View file

@ -516,9 +516,10 @@ void main(void)
} }
#ifdef CONFIG_WDG_ON_IDLE #ifdef CONFIG_WDG_ON_IDLE
HAL_PERI_ON_WRITE32(REG_SOC_FUNC_EN, HAL_PERI_ON_READ32(REG_SOC_FUNC_EN) & 0x1FFFFF); HAL_PERI_ON_WRITE32(REG_SOC_FUNC_EN, HAL_PERI_ON_READ32(REG_SOC_FUNC_EN) & 0x1FFFFF);
WDGInitial(5000); // 5 s WDGInitial(CONFIG_WDG_ON_IDLE * 1000); // 5 s
WDGStart(); WDGStart();
#endif #endif
#if (defined(CONFIG_CRYPTO_STARTUP) && (CONFIG_CRYPTO_STARTUP)) #if (defined(CONFIG_CRYPTO_STARTUP) && (CONFIG_CRYPTO_STARTUP))
if(rtl_cryptoEngine_init() != 0 ) { if(rtl_cryptoEngine_init() != 0 ) {
DBG_8195A("Crypto engine init failed!\n"); DBG_8195A("Crypto engine init failed!\n");