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.
Memory.h
- Committer:
- va009039
- Date:
- 2016-03-22
- Revision:
- 3:ccc673a10485
- Parent:
- 2:e3c085ac77f1
- Child:
- 4:05f33cc747fd
File content as of revision 3:ccc673a10485:
// Memory.h 2016/3/22 #pragma once #include <stdint.h> class Memory { public: Memory(int flashSize = 0x4000, int sramSize = 0x1000, uint32_t sramBase = 0x10000000); bool Write(uint32_t addr, uint8_t c); uint8_t Read(uint32_t addr); bool Copy(uint32_t dst, uint32_t src, int count); private: uint8_t** flash; uint8_t** sram; uint32_t flash_end; uint32_t sram_base; uint32_t sram_end; };