add memory debug
This commit is contained in:
@@ -23,7 +23,7 @@ static void reverse_array(char buf[], unsigned size)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int itoa(unsigned n, char *buf, unsigned base, int fill)
|
int itoa(unsigned n, char *buf, unsigned base, int fill)
|
||||||
{
|
{
|
||||||
static const char digits[] = "0123456789ABCDEF";
|
static const char digits[] = "0123456789ABCDEF";
|
||||||
unsigned i = 0;
|
unsigned i = 0;
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
#include "xud_std_requests.h"
|
#include "xud_std_requests.h"
|
||||||
#include "xua_hid.h"
|
#include "xua_hid.h"
|
||||||
#include "xua_hid_report.h"
|
#include "xua_hid_report.h"
|
||||||
|
#include "user_hid.h"
|
||||||
|
|
||||||
#define DEBUG_UNIT HID_XC
|
#define DEBUG_UNIT HID_XC
|
||||||
#define DEBUG_PRINT_ENABLE_HID_XC 0
|
#define DEBUG_PRINT_ENABLE_HID_XC 0
|
||||||
@@ -42,6 +43,10 @@ XUD_Result_t HidInterfaceClassRequests(
|
|||||||
|
|
||||||
buffer[0] = 0x1;
|
buffer[0] = 0x1;
|
||||||
process_read_params(&buffer[1]);
|
process_read_params(&buffer[1]);
|
||||||
|
#if DEBUG_MEMORY_LOG_ENABLED
|
||||||
|
ret_len = 65;
|
||||||
|
UserReadHIDLog(&buffer[1]);
|
||||||
|
#endif
|
||||||
#if 0
|
#if 0
|
||||||
debug_printf("%d:\n", ret_len);
|
debug_printf("%d:\n", ret_len);
|
||||||
for(int i=0; i < ret_len; i++)
|
for(int i=0; i < ret_len; i++)
|
||||||
|
|||||||
@@ -2516,7 +2516,6 @@ void user_read_hid_status(unsigned char hidPassData[])
|
|||||||
}
|
}
|
||||||
// Process read parameter request - Get bands and coeffs data from eq_hid_params
|
// Process read parameter request - Get bands and coeffs data from eq_hid_params
|
||||||
unsigned char process_read_params(uint8_t response[]) {
|
unsigned char process_read_params(uint8_t response[]) {
|
||||||
debug_printf("Start processing read parameter request\n");
|
|
||||||
|
|
||||||
#if EQ_EN
|
#if EQ_EN
|
||||||
// 处理读取当前EQ模式的请求 (0x8B) - GET_EQ_MODE
|
// 处理读取当前EQ模式的请求 (0x8B) - GET_EQ_MODE
|
||||||
|
|||||||
Reference in New Issue
Block a user