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-25
- Revision:
- 5:e2c275b33bbf
- Parent:
- 4:05f33cc747fd
File content as of revision 5:e2c275b33bbf:
// Memory.h 2016/3/23 #pragma once #include <stdint.h> #include "mymap.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: mymap<int,uint8_t*> flash; mymap<int,uint8_t*> sram; uint32_t flash_end; uint32_t sram_base; uint32_t sram_end; };