Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: targets/TARGET_Realtek/TARGET_AMEBA/ota_api.c
- Revision:
- 178:79309dc6340a
- Parent:
- 173:e131a1973e81
- Child:
- 179:b0033dcd6934
--- a/targets/TARGET_Realtek/TARGET_AMEBA/ota_api.c Wed Nov 08 13:50:44 2017 +0000
+++ b/targets/TARGET_Realtek/TARGET_AMEBA/ota_api.c Thu Nov 23 11:57:25 2017 +0000
@@ -19,28 +19,11 @@
#include "mbed_wait_api.h"
#include "rtl8195a.h"
+#include "ota_api.h"
#include "flash_ext.h"
-#define FLASH_TOP 0x200000
-#define FLASH_SECTOR_SIZE 0x1000
-#define FLASH_SECTOR_MASK ~(FLASH_SECTOR_SIZE - 1)
-#define OTA_REGION1 0x0b000
-#define OTA_REGION2 0xc0000
-#define TAG_OFS 0xc
-#define VER_OFS 0x10
-
-#define TAG_DOWNLOAD 0x81950001
-#define TAG_VERIFIED 0x81950003
-
static flash_t flash_obj;
-typedef struct imginfo_s {
- uint32_t base;
- uint32_t tag;
- uint64_t ver;
-} imginfo_t;
-
-
void OTA_GetImageInfo(imginfo_t *info)
{
uint32_t ver_hi, ver_lo;
