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.
Fork of libMiMic by
NyLPC_cOnchipFlashWriter.h
00001 #ifndef cOnchipFlashWriter_h 00002 #define cOnchipFlashWriter_h 00003 00004 00005 #include "NyLPC_stdlib.h" 00006 #ifdef __cplusplus 00007 extern "C" { 00008 #endif /* __cplusplus */ 00009 00010 00011 00012 /** 00013 * アドレスi_destに、i_srcの内容を書き込みます。 00014 * 書き込みは、FlashROMがイレース済なものとして実行します。書込み範囲以外のデータは、変更されません。 00015 * 既に書込み済みのデータがある場合(0xFFFFFFFF以外)は、期待した結果が得られないので、注意してください。 00016 * この関数は、IAPインタフェイス経由で256バイト単位でデータを書き込みます。 00017 * IAPは0x1000000から32バイトをワークエリアとして使用します。 00018 * 関数はワークエリアの待避と復帰を行いますが、安全の為、使用前にRTOSを一旦停止させてください。 00019 * この関数はリエントラントではありません。 00020 */ 00021 NyLPC_TBool NyLPC_cOnchipFlashWriter_write(const void* i_dest,const void* i_src,NyLPC_TUInt32 i_size); 00022 /** 00023 * この関数はリエントラントではありません。 00024 */ 00025 NyLPC_TBool NyLPC_cOnchipFlashWriter_writeSector(NyLPC_TUInt16 i_sector,NyLPC_TUInt32 i_offset,const void* i_src,NyLPC_TUInt32 i_size); 00026 NyLPC_TBool NyLPC_cOnchipFlashWriter_elase(NyLPC_TUInt16 i_sector_s,NyLPC_TUInt16 i_sector_e); 00027 NyLPC_TBool NyLPC_cOnchipFlashWriter_isOnchipFlash(const void* i_addr); 00028 00029 00030 #ifdef __cplusplus 00031 } 00032 #endif /* __cplusplus */ 00033 00034 #endif
Generated on Tue Jul 12 2022 16:22:59 by
