mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-13 14:25:25 +00:00
Start of LN882H platform definitions
This commit is contained in:
@ -33,6 +33,8 @@ static char SUBMIT_AND_END_FORM[] = "<br><input type=\"submit\" value=\"Submit\"
|
||||
// tuya-iotos-embeded-sdk-wifi-ble-bk7231n/sdk/include/tuya_hal_storage.h
|
||||
#include "tuya_hal_storage.h"
|
||||
#include "BkDriverFlash.h"
|
||||
#elif defined(PLATFORM_LN882H)
|
||||
|
||||
#else
|
||||
// REALLY? A typo in Tuya SDK? Storge?
|
||||
// tuya-iotos-embeded-sdk-wifi-ble-bk7231t/platforms/bk7231t/tuya_os_adapter/include/driver/tuya_hal_storge.h
|
||||
@ -1162,6 +1164,9 @@ int http_fn_cfg_wifi(http_request_t* request) {
|
||||
hprintf255(request, "[%i/%i] SSID: %s, Channel: %i, Signal %i<br>", i + 1, (int)num, ar[i].ssid, ar[i].channel, ar[i].rssi);
|
||||
}
|
||||
tuya_os_adapt_wifi_release_ap(ar);
|
||||
#elif PLATFORM_LN882H
|
||||
// TODO:LN882H action
|
||||
poststr(request, "TODO LN882H<br>");
|
||||
#else
|
||||
#error "Unknown platform"
|
||||
poststr(request, "Unknown platform<br>");
|
||||
|
||||
@ -45,6 +45,8 @@ uint32_t flash_read(uint32_t flash, uint32_t addr, void* buf, uint32_t size);
|
||||
|
||||
#elif PLATFORM_W800
|
||||
|
||||
#elif PLATFORM_LN882H
|
||||
|
||||
#else
|
||||
|
||||
extern UINT32 flash_read(char* user_buf, UINT32 count, UINT32 address);
|
||||
@ -1519,6 +1521,9 @@ static int http_rest_get_flash(http_request_t* request, int startaddr, int len)
|
||||
res = 0;
|
||||
#elif PLATFORM_W600 || PLATFORM_W800
|
||||
res = 0;
|
||||
#elif PLATFORM_LN882H
|
||||
// TODO:LN882H flash read?
|
||||
res = 0;
|
||||
#else
|
||||
res = flash_read((char*)buffer, readlen, startaddr);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user