mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2025-07-31 12:41:06 +00:00
update
This commit is contained in:
parent
10a49b3995
commit
afcadda20e
20 changed files with 38 additions and 15 deletions
|
|
@ -1154,8 +1154,21 @@ void fATSL(void *arg) {
|
|||
#if CONFIG_UART_XMODEM
|
||||
void fATSX(void *arg)
|
||||
{
|
||||
#ifdef RTL8711AM
|
||||
#error "Set OTU_FW_Update UARTx pins!"
|
||||
// use xmodem to update, RX: PA_6, TX: PA_7, baudrate: 1M
|
||||
OTU_FW_Update(0, 2, 115200);
|
||||
|
||||
#else
|
||||
#ifdef RTL8710AF
|
||||
#error "OTU_FW_Update work only SDRAM buffer!"
|
||||
#endif
|
||||
// use xmodem to update, RX: PC_0, TX: PC_3, baudrate: 1M
|
||||
OTU_FW_Update(0, 0, 115200);
|
||||
// use xmodem to update, RX: PE_3, TX: PE_0, baudrate: 1M
|
||||
// JTAG Off!
|
||||
// OTU_FW_Update(0, 1, 115200);
|
||||
#endif
|
||||
at_printf("\r\n[ATSX] OK");
|
||||
}
|
||||
#endif
|
||||
|
|
@ -1372,7 +1385,7 @@ log_item_t at_sys_items[] = {
|
|||
#endif
|
||||
{ "ATSG", fATSG }, // GPIO control
|
||||
#if CONFIG_UART_XMODEM
|
||||
{ "ATSX", fATSX}, // uart xmodem upgrade
|
||||
{ "ATSX", fATSX}, // uart xmodem upgrade
|
||||
#endif
|
||||
{ "ATSD", fATSD }, // Dump register
|
||||
{ "ATXD", fATXD }, // Write register
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
#include "hal_spi_flash.h"
|
||||
#include "rtl8195a_spi_flash.h"
|
||||
#include <platform/platform_stdlib.h>
|
||||
#include <platform_opts.h>
|
||||
|
||||
#if CONFIG_UART_SOCKET
|
||||
#if /*CONFIG_PERI_UPDATE_IMG*/1
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ void flash_init(flash_t *obj) {
|
|||
flashobj.SpicInitPara.Mode.CpuClk = curclk;
|
||||
flashobj.SpicInitPara.Mode.BitMode = flmode;
|
||||
|
||||
#if CONFIG_DEBUG_LOG > 4
|
||||
#if CONFIG_DEBUG_LOG > 3
|
||||
DBG_SPIF_INFO("Flash ID: %02x%02x%02x\n", flashobj.SpicInitPara.id[0], flashobj.SpicInitPara.id[1], flashobj.SpicInitPara.id[2]);
|
||||
DBG_SPIF_INFO("Flash Mode: 0x%02x; BaudRate:%d; RdDummyCyle:%d; DelayLine:%d\n",
|
||||
flashobj.SpicInitPara.Mode.BitMode, flashobj.SpicInitPara.BaudRate, flashobj.SpicInitPara.RdDummyCyle, flashobj.SpicInitPara.DelayLine);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue