flash_at91.c File Reference
At91sam7 Internal flash read/write driver. More...
#include "flash_at91.h"#include "cfg/cfg_emb_flash.h"#include <cfg/macros.h>#include <cfg/log.h>#include <cpu/irq.h>#include <cpu/attr.h>#include <cpu/power.h>#include <io/kfile.h>#include <io/kblock.h>#include <io/arm.h>#include <drv/timer.h>#include <drv/flash.h>#include <string.h>Go to the source code of this file.
Functions | |
| RAM_FUNC static NOINLINE void | write_page (uint32_t page) |
| Really send the flash write command. | |
| void | flash_sendWRcmd (uint32_t page) |
| Send write command. | |
| static bool | flash_getStatus (struct KBlock *blk) |
| Return true if no error are occurred after flash memory read or write operation, otherwise return error code. | |
Detailed Description
At91sam7 Internal flash read/write driver.
Definition in file flash_at91.c.
Function Documentation
| void flash_sendWRcmd | ( | uint32_t | page | ) | [inline] |
Send write command.
After WR command cpu write bufferd page into flash memory.
Definition at line 95 of file flash_at91.c.
| RAM_FUNC static NOINLINE void write_page | ( | uint32_t | page | ) | [static] |
Really send the flash write command.
- Note:
- This function has to be placed in RAM because executing code from flash while a writing process is in progress is forbidden.
Definition at line 76 of file flash_at91.c.
