Added PLATFORM_W600

This commit is contained in:
Indu Prakash
2022-09-29 18:45:42 -05:00
parent b50ebd931d
commit 29dfec611c
12 changed files with 28 additions and 20 deletions

View File

@ -20,7 +20,7 @@
// nothing
#elif PLATFORM_BL602
#elif PLATFORM_W800
#elif PLATFORM_W600 || PLATFORM_W800
#elif PLATFORM_XR809
#include <image/flash.h>
@ -771,7 +771,7 @@ int http_fn_cfg_wifi(http_request_t *request) {
#elif PLATFORM_XR809
poststr(request,"TODO XR809<br>");
#elif PLATFORM_W800
#elif PLATFORM_W600 || PLATFORM_W800
poststr(request,"TODO W800<br>");
#elif PLATFORM_BL602
poststr(request,"TODO BL602<br>");
@ -1035,7 +1035,7 @@ int http_fn_flash_read_tool(http_request_t *request) {
res = flash_read(FLASH_INDEX_XR809, nowOfs, buffer, now);
#elif PLATFORM_BL602
#elif PLATFORM_W800
#elif PLATFORM_W600 || PLATFORM_W800
#else
res = bekken_hal_flash_read (nowOfs, buffer,now);
@ -1958,7 +1958,7 @@ int http_fn_ota_exec(http_request_t *request) {
#elif PLATFORM_BL602
#elif PLATFORM_W800
#elif PLATFORM_W600 || PLATFORM_W800
t_http_fwup(tmpA);
#elif PLATFORM_XR809
XR809_RequestOTAHTTP(tmpA);

View File

@ -26,7 +26,7 @@
uint32_t flash_read(uint32_t flash, uint32_t addr,void *buf, uint32_t size);
#define FLASH_INDEX_XR809 0
#elif PLATFORM_BL602
#elif PLATFORM_W800
#elif PLATFORM_W600 || PLATFORM_W800
#else
extern UINT32 flash_read(char *user_buf, UINT32 count, UINT32 address);
#endif
@ -101,7 +101,7 @@ const char *obktype = "BL602";
const char * apppage2 = "';"
" var obktype = 'BL602';"
" var device = 'http://";
#elif PLATFORM_W800
#elif PLATFORM_W600 || PLATFORM_W800
const char *obktype = "W800";
const char * apppage2 = "';"
" var obktype = 'W800';"
@ -847,7 +847,7 @@ static int http_rest_post_flash(http_request_t *request, int startaddr){
#elif PLATFORM_BL602
#elif PLATFORM_W800
#elif PLATFORM_W600 || PLATFORM_W800
#else
int total = 0;
@ -948,7 +948,7 @@ static int http_rest_get_flash(http_request_t *request, int startaddr, int len){
res = flash_read(FLASH_INDEX_XR809, startaddr, buffer, readlen);
#elif PLATFORM_BL602
res = 0;
#elif PLATFORM_W800
#elif PLATFORM_W600 || PLATFORM_W800
res = 0;
#else
res = flash_read((char *)buffer, readlen, startaddr);