修复摄像头、科大讯飞、rcsp、彩屏仓等相关测试问题;

This commit is contained in:
huxi
2025-12-10 09:40:24 +08:00
parent bc195654bf
commit 719f612ab5
84 changed files with 3520 additions and 178 deletions
@@ -92,7 +92,7 @@ u8 ntp_client_get_time_status(void);
When it succeed, it will post the net_event NET_NTP_GET_TIME_SUCC and set the ntp_client_time_status to 1.
*/
/*----------------------------------------------------------------------------*/
void ntp_client_get_time(const char *host);
int ntp_client_get_time(const char *host);
@@ -144,9 +144,6 @@ extern "C" {
#else
/* For size_t */
#include <stddef.h>
extern void *mbedtls_calloc(size_t n, size_t size);
extern void mbedtls_free(void *ptr);
/**
* \brief This function dynamically sets the memory-management
* functions used by the library, during runtime.
@@ -161,8 +158,25 @@ int mbedtls_platform_set_calloc_free(void *(*calloc_func)(size_t, size_t),
#endif /* MBEDTLS_PLATFORM_FREE_MACRO && MBEDTLS_PLATFORM_CALLOC_MACRO */
#else /* !MBEDTLS_PLATFORM_MEMORY */
extern void *jl_mbedtls_calloc(unsigned long count, unsigned long size);
extern void jl_mbedtls_free(void *pv);
__attribute__((weak))
void jl_mbedtls_free(void *pv)
{
if (pv != NULL) {
free(pv);
}
}
__attribute__((weak))
void *jl_mbedtls_calloc(unsigned long count, unsigned long size)
{
size_t total = count * size;
void *p = malloc(total);
if (p) {
memset(p, 0, total);
}
return p;
}
#define mbedtls_free jl_mbedtls_free
#define mbedtls_calloc jl_mbedtls_calloc
#endif /* MBEDTLS_PLATFORM_MEMORY && !MBEDTLS_PLATFORM_{FREE,CALLOC}_MACRO */
@@ -166,5 +166,18 @@ int websockets_serv_socket_hanshack(struct websocket_struct *websockets_info);
int websockets_serv_socket_init(struct websocket_struct *websockets_info);
int websockets_struct_check(int sizeof_struct);
void __attribute__((weak))jl_websocket_api_free(void *pv);
void __attribute__((weak)) *jl_websocket_api_malloc(size_t size);
void __attribute__((weak)) *jl_websocket_api_zalloc(size_t size);
void __attribute__((weak)) *jl_websocket_api_realloc(void *ptr, size_t size);
#define websocket_api_free jl_websocket_api_free
#define websocket_api_malloc jl_websocket_api_malloc
#define websocket_api_zalloc jl_websocket_api_zalloc
#define websocket_api_realloc jl_websocket_api_realloc
#endif