AN2504 Freescale Semiconductor / Motorola, AN2504 Datasheet - Page 23

no-image

AN2504

Manufacturer Part Number
AN2504
Description
On-Chip FLASH Programming API for CodeWarrior Software
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
MOTOROLA
On-Chip FLASH Programming API for CodeWarrior Software
/********************************************************************
void ErasePageX (Word *_page);
/********************************************************************
void EraseFlash(void);
#endif
/*==================================================================*
#include <stdtypes.h>
#include "flash_api.h"
* ErasePageX: It erases a PAGE of FLASH but leaves the state
*
*
* Parameters:
*
*
* Entry Conditions: None.
*
* Exit Conditions:
*
* Return:
*
* Remarks:
*
*
*
*
*/
* EraseFlash: It erases the entire FLASH.
*
* Parameters:
*
* Entry Conditions: None.
*
* Exit Conditions:
*
* Return:
*
* Remarks:
*
*
*/
*
* Copyright (c) 2002, Motorola Inc.
* Motorola Application Note
*
* File name
* Author
* Department
*
* Description
*
* History
*
*==================================================================*/
Freescale Semiconductor, Inc.
For More Information On This Product,
// __FLASH_API_H__
Go to: www.freescale.com
of the interrupts as it was before calling it.
: flash_api.c
: Mauricio Capistran-Garza
: Guadalajara - SPS
: This files contains the API functions definition.
:
*_page: pointer to any address within
None.
None.
All bytes within that PAGE will be driven
to 0xFF.
Interrupts are disabled during the erasing
of the flash, but are restored to its
original state before exiting the function.
None.
None.
None.
All bytes will be driven to 0xFF.
No code in FLASH will be executed after
this function has been called.
the PAGE to be erased.
API Source Code
AN2504/D
23

Related parts for AN2504