mirror of
https://github.com/drasko/open-ameba.git
synced 2024-12-25 15:45:18 +00:00
update
This commit is contained in:
parent
4cf5fcf936
commit
151c53c5ce
11 changed files with 2342 additions and 2339 deletions
34
README.md
34
README.md
|
@ -18,21 +18,25 @@ PWM Out GC_2 and PE_2 (2 канала по 96Bit на один исходный
|
|||
|
||||
Console command (RX/TX GB1/GB0 38400 baud):<br>
|
||||
|
||||
ATW0=SSID - задать имя AP<br>
|
||||
ATW1=PASSPHRASE - задать пароль AP<br>
|
||||
ATWC - Connect to an AES AP<br>
|
||||
ATWD - DisConnect AP<br>
|
||||
ATWS=URL,PORT - задать канал web-radio или http файл<br>
|
||||
. Sample: ATWS=icecast.omroep.nl/3fm-sb-mp3,80<br>
|
||||
. ATWS=meuk.spritesserver.nl/Ii.Romanzeandante.mp3,80<br>
|
||||
. ATWS=?, ATWS=close, ATWS=save, ATWS=read<br>
|
||||
. ATWS=x,0 и ATWS=save - отключить старт<br>
|
||||
ATST - Mem/Task Info<br>
|
||||
ATOF - Отключить MP3<br>
|
||||
|
||||
ATSD=hexaddr,count - Damp памяти/регистров с адреса...<br>
|
||||
ATWD=hexaddr,hexdata - Записать dword по адресу<br>
|
||||
|
||||
CONSOLE COMMAND SET:<br>
|
||||
==============================<br>
|
||||
ATPN=<SSID>[,<PASSPHRASE>[,WEPKEY]]: WIFI Connect to AP<br>
|
||||
ATWS=<URL,PORT>: MP3 Connect to URL<br>
|
||||
ATWS=<c>[lose]: Close MP3<br>
|
||||
ATWS=<r>[ead]: Read MP3 URL<br>
|
||||
ATWS=<s>[ave]: Save MP3 URL<br>
|
||||
ATWS=<?>: URL Info<br>
|
||||
ATWD: WIFI Disconnect<br>
|
||||
ATST: Memory info<br>
|
||||
ATLW: Lwip Info<br>
|
||||
ATSB=<ADDRES(hex)>[,COUNT(dec)]: Dump byte register<br>
|
||||
ATSD=<ADDRES(hex)>[,COUNT(dec)]: Dump dword register<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>
|
||||
|
||||
|
|
|
@ -157,10 +157,10 @@ void patch_rltk_wlan_deinit(void) {
|
|||
uint8_t chk;
|
||||
if (rltk_wlan_info[0].enable || rltk_wlan_info[0].enable) {
|
||||
_adapter *ad = rltk_wlan_info[0].dev->priv;
|
||||
ad->bSurpriseRemoved = 1; // + 5892
|
||||
rtw_wakeup_task(&ad->isrThread.task); // +5912
|
||||
ad->bSurpriseRemoved = 1;
|
||||
rtw_wakeup_task(&ad->isrThread.task);
|
||||
while (1) {
|
||||
save_and_cli(); // taskENTER_CRITICAL(); // vPortEnterCritical()
|
||||
save_and_cli(); // = taskENTER_CRITICAL(); // = vPortEnterCritical()
|
||||
rltk_wlan_info[0].enable = 0;
|
||||
rltk_wlan_info[1].enable = 0;
|
||||
chk = rltk_wlan_info[0].tx_busy + rltk_wlan_info[0].rx_busy
|
||||
|
|
|
@ -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}};
|
||||
|
||||
|
||||
|
||||
|
||||
#ifndef WLAN0_NAME
|
||||
#define WLAN0_NAME "wlan0"
|
||||
#endif
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4634
build/obj/build.nmap
4634
build/obj/build.nmap
File diff suppressed because it is too large
Load diff
|
@ -163,7 +163,7 @@ void fATWC(int argc, char *argv[]){
|
|||
wifi.password_len = strlen(password);
|
||||
}
|
||||
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]);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -516,9 +516,10 @@ void main(void)
|
|||
}
|
||||
#ifdef CONFIG_WDG_ON_IDLE
|
||||
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();
|
||||
#endif
|
||||
|
||||
#if (defined(CONFIG_CRYPTO_STARTUP) && (CONFIG_CRYPTO_STARTUP))
|
||||
if(rtl_cryptoEngine_init() != 0 ) {
|
||||
DBG_8195A("Crypto engine init failed!\n");
|
||||
|
|
Loading…
Reference in a new issue