mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2025-10-29 11:33:20 +00:00
parent
54ffddc75f
commit
5e363ab42f
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user