| 전자부품 데이터시트 검색엔진 |
|
SH7262 데이터시트(PDF) 24 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
SH7262 데이터시트(HTML) 24 Page - Renesas Technology Corp |
|
24 / 45 page ![]() SH7262/SH7264 Group High-speed Read/Write Serial Flash Memory Using the Renesas Serial Peripheral Interface REJ06B0889-0100/Rev.1.00 June 2009 Page 24 of 45 3.6 Sample Program Listing "serial_flash.c" (3/19) 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 void sf_init_serial_flash(void) { /* ==== Initializes the RSPI0 ==== */ io_init_rspi(); } /*""FUNC COMMENT""************************************************************** * ID : * Outline : Protect/unprotect operation *------------------------------------------------------------------------------ * Include : "serial_flash.h" *------------------------------------------------------------------------------ * Declaration : void sf_init_serial_flash(void); *------------------------------------------------------------------------------ * Description : Protects or unprotects serial flash memory. * : Use the argument req to specify. Default setting and unprotecting * : method depends on the specifications of the serial flash memory. *------------------------------------------------------------------------------ * Argument : enum sf_req req ; I : SF_REQ_UNPROTECT -> Write-enable all sectors * : SF_REQ_PROTECT -> Write-protect all sectors *------------------------------------------------------------------------------ * Return Value : void *------------------------------------------------------------------------------ * Note : None *""FUNC COMMENT END""**********************************************************/ void sf_protect_ctrl(enum sf_req req) { if( req == SF_REQ_UNPROTECT ){ write_status( UNPROTECT_WR_STATUS); /* Unprotects total area */ } else{ write_status( PROTECT_WR_STATUS ); /* Protects total area */ } } |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |