mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2025-07-31 12:41:06 +00:00
update
This commit is contained in:
parent
5e40d9d461
commit
6278f73e47
20 changed files with 2557 additions and 2579 deletions
|
|
@ -1288,25 +1288,20 @@ void fATFO(void *arg) {
|
|||
}
|
||||
}
|
||||
|
||||
// Mem info
|
||||
void fATST(void *arg) {
|
||||
extern void dump_mem_block_list(void); // heap_5.c
|
||||
//DBG_INFO_MSG_ON(_DBG_TCM_HEAP_); // On Debug TCM MEM
|
||||
#if DEBUG_AT_USER_LEVEL > 1
|
||||
printf("ATST: Mem info:\n");
|
||||
#endif
|
||||
// vPortFree(pvPortMalloc(4)); // Init RAM heap
|
||||
printf("\nCLK CPU\t\t%d Hz\nRAM heap\t%d bytes\nTCM heap\t%d bytes\n",
|
||||
HalGetCpuClk(), xPortGetFreeHeapSize(), tcm_heap_freeSpace());
|
||||
#if CONFIG_DEBUG_LOG > 1
|
||||
dump_mem_block_list();
|
||||
u32 saved = ConfigDebugInfo;
|
||||
DBG_INFO_MSG_ON(_DBG_TCM_HEAP_); // On Debug TCM MEM
|
||||
tcm_heap_dump();
|
||||
ConfigDebugInfo = saved;
|
||||
#endif;
|
||||
printf("\n");
|
||||
#if (configGENERATE_RUN_TIME_STATS == 1)
|
||||
char *cBuffer = pvPortMalloc(512);
|
||||
if (cBuffer != NULL) {
|
||||
vTaskGetRunTimeStats((char *) cBuffer);
|
||||
if(cBuffer != NULL) {
|
||||
vTaskGetRunTimeStats((char *)cBuffer);
|
||||
printf("%s", cBuffer);
|
||||
}
|
||||
vPortFree(cBuffer);
|
||||
|
|
|
|||
|
|
@ -459,7 +459,8 @@ void fATWx(void *arg){
|
|||
ip = LwIP_GetIP(&xnetif[i]);
|
||||
gw = LwIP_GetGW(&xnetif[i]);
|
||||
#endif
|
||||
printf("\nWIFI %s Status: Running\n==============================\n", ifname[i]);
|
||||
printf("\nWIFI %s Status: Running\n", ifname[i]);
|
||||
printf("==============================\n");
|
||||
|
||||
rltk_wlan_statistic(i);
|
||||
|
||||
|
|
@ -478,7 +479,8 @@ void fATWx(void *arg){
|
|||
at_printf("%d.%d.%d.%d,", ip[0], ip[1], ip[2], ip[3]);
|
||||
at_printf("%d.%d.%d.%d", gw[0], gw[1], gw[2], gw[3]);
|
||||
#endif
|
||||
printf("Interface (%s)\n==============================\n", ifname[i]);
|
||||
printf("\nInterface (%s)\n", ifname[i]);
|
||||
printf("==============================\n");
|
||||
printf("\tMAC => %02x:%02x:%02x:%02x:%02x:%02x\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]) ;
|
||||
printf("\tIP => %d.%d.%d.%d\n", ip[0], ip[1], ip[2], ip[3]);
|
||||
printf("\tGW => %d.%d.%d.%d\n", gw[0], gw[1], gw[2], gw[3]);
|
||||
|
|
@ -494,7 +496,8 @@ void fATWx(void *arg){
|
|||
client_info.count = AP_STA_NUM;
|
||||
wifi_get_associated_client_list(&client_info, sizeof(client_info));
|
||||
|
||||
printf("Associated Client List:\n==============================\n");
|
||||
printf("Associated Client List:\n");
|
||||
printf("==============================\n");
|
||||
|
||||
if(client_info.count == 0)
|
||||
printf("Client Num: 0\n", client_info.count);
|
||||
|
|
@ -530,7 +533,8 @@ void fATWx(void *arg){
|
|||
mac = LwIP_GetMAC(&xnetif[i]);
|
||||
ip = LwIP_GetIP(&xnetif[i]);
|
||||
gw = LwIP_GetGW(&xnetif[i]);
|
||||
printf("Interface ethernet\n==============================\n");
|
||||
printf("\nInterface ethernet\n");
|
||||
printf("==============================\n");
|
||||
printf("\tMAC => %02x:%02x:%02x:%02x:%02x:%02x\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]) ;
|
||||
printf("\tIP => %d.%d.%d.%d\n", ip[0], ip[1], ip[2], ip[3]);
|
||||
printf("\tGW => %d.%d.%d.%d\n", gw[0], gw[1], gw[2], gw[3]);
|
||||
|
|
@ -542,9 +546,14 @@ void fATWx(void *arg){
|
|||
|
||||
#if defined(configUSE_TRACE_FACILITY) && (configUSE_TRACE_FACILITY == 1) && (configUSE_STATS_FORMATTING_FUNCTIONS == 1)
|
||||
{
|
||||
signed char pcWriteBuffer[1024];
|
||||
vTaskList((char*)pcWriteBuffer);
|
||||
printf("Task List:\n%s\n", pcWriteBuffer);
|
||||
char * pcWriteBuffer = malloc(1024);
|
||||
if(pcWriteBuffer) {
|
||||
vTaskList((char*)pcWriteBuffer);
|
||||
printf("\nTask List:\n");
|
||||
printf("==============================\n");
|
||||
printf("Name\t Status Priority HighWaterMark TaskNumber\n%s\n", pcWriteBuffer);
|
||||
free(pcWriteBuffer);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue