CVS: libraries/include/mspgcc flash.h,1.2,1.3
Chris Liechti <[email protected]>
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/libraries/include/mspgcc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17614/libraries/include/mspgcc Modified Files: flash.h Log Message: add support function for F2xx devices SegmentA lock Index: flash.h =================================================================== RCS file: /cvsroot/mspgcc/libraries/include/mspgcc/flash.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -d -r1.2 -r1.3 --- flash.h 23 Aug 2005 18:04:34 -0000 1.2 +++ flash.h 27 Dec 2005 22:00:08 -0000 1.3 @@ -7,6 +7,10 @@ * This function modifies FCTL1 and FCTL3. * * @note + * SegemntA on F2xx can not be modfied until unlocked with + * flash_lock_segmentA(0) + * + * @note * FCTL2 has to be set up by the user. It is not altered by this * function. It contains the clock settings. * @@ -15,6 +19,20 @@ void flash_erase_segment(void *address); /** + * Lock or unlock SegemntA on F2xx devices. + * + * This function modifies FCTL3. + * + * @note + * It is good practise to lock the segment again after it has beed + * modified. + * + * @param lock [in] nonzero to lock, zero to unlock the segment from + * flash write or erase operations + */ +void flash_lock_segmentA(int lock); + +/** * Copy a memory block to the flash. Like memcpy but with Flash controller * enabled. * @@ -24,6 +42,10 @@ * FCTL2 has to be set up by the user. It is not altered by this * function. It contains the clock settings. * + * @note + * SegemntA on F2xx can not be modfied until unlocked with + * flash_lock_segmentA(0) + * * Examples: * int intvar = 1234; * flash_write((void *)0x1000, &intvar, sizeof(int)); @@ -48,6 +70,10 @@ * FCTL2 has to be set up by the user. It is not altered by this * function. It contains the clock settings. * + * @note + * SegemntA on F2xx can not be modfied until unlocked with + * flash_lock_segmentA(0) + * * Examples: * int intvar = 1234; * flash_write_word((void *)0x1000, &intvar, sizeof(int)); ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click