mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-14 03:35:33 +00:00
Implement full flash read for BL602 (#1052)
* Implement RSSI for BL602 (#5) Adds RSSI for BL602, looks ok, reports similar to what BK7231N reports in the same place * Update rest_interface.c * Update rest_interface.c * Update rest_interface.c * Update rest_interface.c * Update rest_interface.c * Update rest_interface.c * Update rest_interface.c * Update rest_interface.c
This commit is contained in:
@ -38,6 +38,7 @@ uint32_t flash_read(uint32_t flash, uint32_t addr, void* buf, uint32_t size);
|
||||
#include <utils_sha256.h>
|
||||
#include <bl_sys_ota.h>
|
||||
#include <bl_mtd.h>
|
||||
#include <bl_flash.h>
|
||||
#elif PLATFORM_W600
|
||||
|
||||
#include "wm_socket_fwup.h"
|
||||
@ -1795,7 +1796,7 @@ static int http_rest_get_flash(http_request_t* request, int startaddr, int len)
|
||||
#define FLASH_INDEX_XR809 0
|
||||
res = flash_read(FLASH_INDEX_XR809, startaddr, buffer, readlen);
|
||||
#elif PLATFORM_BL602
|
||||
res = 0;
|
||||
res = bl_flash_read(startaddr, (uint8_t *)buffer, readlen);
|
||||
#elif PLATFORM_W600 || PLATFORM_W800
|
||||
res = 0;
|
||||
#elif PLATFORM_LN882H
|
||||
@ -1809,6 +1810,7 @@ static int http_rest_get_flash(http_request_t* request, int startaddr, int len)
|
||||
postany(request, buffer, readlen);
|
||||
}
|
||||
poststr(request, NULL);
|
||||
os_free(buffer);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user