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:
giedriuslt
2024-01-29 18:59:05 +02:00
committed by GitHub
parent aba34a090e
commit c5ad9acfb7

View File

@ -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;
}