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/flash_ext.h
- Revision:
- 170:19eb464bc2be
- Parent:
- 168:9672193075cf
--- a/targets/TARGET_Realtek/TARGET_AMEBA/flash_ext.h Wed Jul 19 17:31:21 2017 +0100 +++ b/targets/TARGET_Realtek/TARGET_AMEBA/flash_ext.h Thu Aug 03 13:13:39 2017 +0100 @@ -25,17 +25,17 @@ #define FLASH_PAGE_SIZE 256 #define FLASH_SIZE 0x100000 -#define FLASH_OFS_START 0xc0000 +#define FLASH_OFS_START 0x0 #define FLASH_OFS_END (FLASH_OFS_START + FLASH_SIZE) extern void flash_ext_erase_sector(flash_t *obj, uint32_t address); extern void flash_ext_erase_block(flash_t * obj, uint32_t address); -extern int flash_ext_read_word(flash_t *obj, uint32_t address, uint32_t * data); +extern int flash_ext_read_word(flash_t *obj, uint32_t address, uint32_t *data); extern int flash_ext_write_word(flash_t *obj, uint32_t address, uint32_t data); -extern int flash_ext_stream_read(flash_t *obj, uint32_t address, uint32_t len, uint8_t * data); -extern int flash_ext_stream_write(flash_t *obj, uint32_t address, uint32_t len, uint8_t * data); +extern int flash_ext_stream_read(flash_t *obj, uint32_t address, uint32_t len, uint8_t *data); +extern int flash_ext_stream_write(flash_t *obj, uint32_t address, uint32_t len, const uint8_t *data); extern int flash_stream_read(flash_t *obj, uint32_t addr, uint32_t len, uint8_t *data); -extern int flash_stream_write(flash_t *obj, uint32_t addr, uint32_t len, uint8_t *data); +extern int flash_stream_write(flash_t *obj, uint32_t addr, uint32_t len, const uint8_t *data); extern void flash_ext_write_protect(flash_t *obj, uint32_t protect); extern int flash_ext_get_status(flash_t *obj); extern int flash_ext_set_status(flash_t *obj, uint32_t data);
