mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2026-07-06 11:35:42 +00:00
update
This commit is contained in:
parent
629e5fdc28
commit
bd42ffa334
212 changed files with 35447 additions and 223 deletions
|
|
@ -96,24 +96,54 @@ VOID ShowRamBuildInfo(VOID)
|
|||
*/
|
||||
}
|
||||
|
||||
#ifdef CONFIG_APP_DEMO
|
||||
#include "device.h"
|
||||
#include "gpio_api.h" // mbed
|
||||
#if 1 //def CONFIG_APP_DEMO
|
||||
#include "rtl8195a.h"
|
||||
//#include "device.h"
|
||||
//#include "gpio_api.h" // mbed
|
||||
typedef struct _UART_LOG_BUF_ {
|
||||
u8 BufCount; //record the input cmd char number.
|
||||
u8 UARTLogBuf[127]; //record the input command.
|
||||
} UART_LOG_BUF, *PUART_LOG_BUF;
|
||||
|
||||
//MON_RAM_BSS_SECTION
|
||||
typedef struct _UART_LOG_CTL_ {
|
||||
u8 NewIdx; //+0
|
||||
u8 SeeIdx; //+1
|
||||
u8 RevdNo; //+2
|
||||
u8 EscSTS; //+3
|
||||
u8 ExecuteCmd; //+4
|
||||
u8 ExecuteEsc; //+5
|
||||
u8 BootRdy; //+6
|
||||
u8 Resvd; //+7
|
||||
PUART_LOG_BUF pTmpLogBuf;
|
||||
VOID *pfINPUT;
|
||||
PCOMMAND_TABLE pCmdTbl;
|
||||
u32 CmdTblSz;
|
||||
|
||||
u32 CRSTS;
|
||||
|
||||
u8 (*pHistoryBuf)[127];
|
||||
|
||||
u32 TaskRdy;
|
||||
u32 Sema;
|
||||
} UART_LOG_CTL, *PUART_LOG_CTL;
|
||||
|
||||
extern volatile UART_LOG_CTL *pUartLogCtl;
|
||||
|
||||
_WEAK int main(void)
|
||||
{
|
||||
HalPinCtrlRtl8195A(JTAG, 0, 1);
|
||||
|
||||
DiagPrintf("\r\nRTL Console ROM: Start - press key 'Up', Help '?'\r\n");
|
||||
while(pUartLogCtl[5] != 1);
|
||||
pUartLogCtl[3] = 0;
|
||||
pUartLogCtl[6] = 1;
|
||||
while(pUartLogCtl->ExecuteEsc != 1);
|
||||
pUartLogCtl->RevdNo = 0;
|
||||
pUartLogCtl->BootRdy = 1;
|
||||
DiagPrintf("\r<RTL8710AF>");
|
||||
while(1) {
|
||||
while(pUartLogCtl[4] != 1 );
|
||||
while(pUartLogCtl->ExecuteCmd != 1 );
|
||||
UartLogCmdExecute(pUartLogCtl);
|
||||
DiagPrintf("\r<RTL8710AF>");
|
||||
pUartLogCtl[4] = 0;
|
||||
pUartLogCtl->ExecuteCmd = 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
@ -190,6 +220,7 @@ void _AppStart(void)
|
|||
xTaskCreate( (TaskFunction_t)main, "MAIN_APP__TASK", (MAIN_APP_DEFAULT_STACK_SIZE/4), (void *)NULL, MAIN_APP_DEFAULT_PRIORITY, NULL);
|
||||
vTaskStartScheduler();
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
__low_level_init();
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@
|
|||
//#define __SYSTEM_CLOCK (5*__XTAL)
|
||||
#define __SYSTEM_CLOCK (200000000UL/6*5) // PLATFORM_CLOCK //
|
||||
|
||||
extern unsigned int rand_x;
|
||||
//extern u32 HalGetCpuClk(VOID);
|
||||
|
||||
#ifdef CONFIG_CHIP_A_CUT
|
||||
|
|
@ -62,6 +61,8 @@ const u32 SysCpkClkTbl[]= {
|
|||
};
|
||||
#endif
|
||||
|
||||
unsigned int rand_x = 12345;
|
||||
|
||||
u32 Rand2(void)
|
||||
{
|
||||
static unsigned int y = 362436;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue