Kamcho Library 02.00.03  lib.kamcho.02.00.03.287
Functions
flash_device.h File Reference
#include <stdint.h>
#include "hdf.h"

Go to the source code of this file.

Functions

__ramfunc void Flash_devEraseBlock (uint32_t addr)
 Erase a block in flash memory and wait for completion. More...
 
__ramfunc void Flash_devEraseSector (uint32_t addr)
 Erase a sector flash memory and wait for completion. More...
 
__ramfunc void Flash_devCopyToFlash (uint8_t *src, uint8_t *des, uint32_t size)
 Copy a data block from RAM to flash memory. More...
 

Detailed Description

This file is proprietary to Indie Semiconductor. All rights reserved. Reproduction or distribution, in whole or in part, is forbidden except by express written permission of Indie Semiconductor.

Function Documentation

__ramfunc void Flash_devCopyToFlash ( uint8_t *  src,
uint8_t *  des,
uint32_t  size 
)

Copy a data block from RAM to flash memory.

Parameters
srcsource address in RAM
desdestination address in flash memory
sizesize of data in bytes
Returns
none
__ramfunc void Flash_devEraseBlock ( uint32_t  addr)

Erase a block in flash memory and wait for completion.

Parameters
addrThe starting address of the block
Returns
none
__ramfunc void Flash_devEraseSector ( uint32_t  addr)

Erase a sector flash memory and wait for completion.

Parameters
addrstarting address of the block
Returns
none