ln882h update sdk (#1724)

* ln882h update sdk

* Disable test commands
This commit is contained in:
NonPIayerCharacter 2025-08-09 12:49:03 +03:00 committed by GitHub
parent 54ffddc75f
commit 5e363ab42f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 13 additions and 12 deletions

View File

@ -235,7 +235,7 @@
#define BE_EXPLICIT_EXIT exit
#endif
// BK7231/RTL wraps malloc, free etc. to freertos ports. Some platforms don't do it.
#if PLATFORM_W800 || PLATFORM_W600
#if PLATFORM_W800 || PLATFORM_W600 || PLATFORM_LN882H
#define BE_EXPLICIT_MALLOC pvPortMalloc
#define BE_EXPLICIT_REALLOC pvPortRealloc
#define BE_EXPLICIT_FREE vPortFree

View File

@ -2,7 +2,6 @@
# It allows you to make changes to the SDK, for example..
# For example, you can use changed files in the SDK for the automated build during the checks for a PR without changing the SDK itself:
# So your PR needs a modified define in the SDK, for example ? This script can make this change directly before the build.
#
#
# As an example you will find a script below which will copy all content of the "override"
@ -27,7 +26,6 @@
#done
## restore IFS to whatever it was before ...
#IFS=$OFS
# you can also use all other commands to change files, like
# sed -i "s/#define FOO bar/#define FOO baz/" sdk/OpenLN882H/project/OpenBeken/cfg/file_to_change.h
# or, let's assume you made a local change to your SDK
@ -38,4 +36,3 @@
# and then in pre_build.sh you apply this patch with:
#
# patch -p 1 -d sdk/OpenLN882H < platforms/LN882H/my_change.diff

View File

@ -122,6 +122,7 @@ set(OBKM_SRC
${OBK_SRCS}driver/drv_spidma.c
${OBK_SRCS}driver/drv_ssdp.c
${OBK_SRCS}driver/drv_tasmotaDeviceGroups.c
${OBK_SRCS}driver/drv_test.c
${OBK_SRCS}driver/drv_test_drivers.c
${OBK_SRCS}driver/drv_textScroller.c
${OBK_SRCS}driver/drv_tm1637.c
@ -143,6 +144,5 @@ set(OBKM_SRC
# ${OBK_SRCS}driver/drv_bmp280.c
# ${OBK_SRCS}driver/drv_sm15155e.c
# ${OBK_SRCS}driver/drv_sm16703P.c
# ${OBK_SRCS}driver/drv_test.c
# ${OBK_SRCS}driver/drv_test_charts.c
)

@ -1 +1 @@
Subproject commit a5937fca5948c4e661b95ae3343f5e455cdca8e9
Subproject commit 1575596b7d46259e87c1a5809ff4d4fc65da47b9

View File

@ -300,6 +300,8 @@ void wifi_init_sta(const char* oob_ssid, const char* connect_key, obkStaticIP_t
wifi_manager_reg_event_callback(WIFI_MGR_EVENT_STA_CONNECTED, &wifi_connected_cb);
wifi_manager_reg_event_callback(WIFI_MGR_EVENT_STA_CONNECT_FAILED, &wifi_connect_failed_cb);
extern void ln_wpa_sae_enable(void);
ln_wpa_sae_enable();
wifi_sta_connect(&connect, &scan_cfg);
}

View File

@ -40,10 +40,10 @@
#if PLATFORM_BEKEN
#include "mem_pub.h"
#elif PLATFORM_BL602 || PLATFORM_LN882H || PLATFORM_ESPIDF || PLATFORM_XRADIO || PLATFORM_ESP8266
#elif PLATFORM_BL602 || PLATFORM_ESPIDF || PLATFORM_XRADIO || PLATFORM_ESP8266
#define os_free free
#define os_malloc malloc
#elif PLATFORM_REALTEK || PLATFORM_W800 || PLATFORM_W600
#elif PLATFORM_REALTEK || PLATFORM_W800 || PLATFORM_W600 || PLATFORM_LN882H
extern void* pvPortMalloc(size_t xWantedSize);
extern void vPortFree(void* pv);
#define os_malloc pvPortMalloc

View File

@ -498,9 +498,11 @@ OSStatus rtos_suspend_thread(beken_thread_t* thread);
#include <task.h>
#define ASSERT
#define os_free free
#define os_malloc malloc
//#define os_free free
//#define os_malloc malloc
#define os_malloc pvPortMalloc
#define os_free vPortFree
#define realloc pvPortRealloc
#define lwip_close_force(x) lwip_close(x)
#define bk_printf printf

View File

@ -339,7 +339,7 @@
#define ENABLE_DRIVER_HUE 1
#define ENABLE_DRIVER_DHT 1
#define ENABLE_LITTLEFS 1
#define ENABLE_TEST_COMMANDS 0
//#define ENABLE_TEST_COMMANDS 1
#define ENABLE_EXPAND_CONSTANT 1
#define ENABLE_DRIVER_OPENWEATHERMAP 1
//#define ENABLE_DRIVER_TMGN 1