212
"C" Programming Guide For Optimus S/R
FlashSize
Purpose
To get the size of flash memory.
Syntax
int FlashSize (void);
Example
FlashSize();
Description
This routine gets the size of flash memory, which is available to the user
program.
Return
This routine returns the size of the flash memory in kilobyte.
See Also
RamSize
WriteFlash
Purpose
To write data to the flash memory.
Syntax
int WriteFlash (void *target_addr, void *source_addr, unsigned long size);
Example
char szData[100];
EraseSector (0xF60000);
WriteFlash (0xF60000, szData, 100);
Description
The flash memory can also be used to store data if the user programs have not
used all of it. The possible available flash memory is 64 Kbytes and its address
starts from 0xF60000.
Return
If successful, it returns 1.
Otherwise, it returns 0.
See Also
EraseSector
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...