31 lines
997 B
C
31 lines
997 B
C
|
|
|
|
#ifndef __FSL_USER_H_
|
|
#define __FSL_USER_H_
|
|
|
|
#include "boot_macrodriver.h"
|
|
#include "fsl.h" /* */
|
|
#include "fsl_types.h" /* */
|
|
|
|
#define APP_START_ADDR 0x0A000
|
|
#define APP_END_ADDR 0x19FFF
|
|
|
|
#define APP_SIZE (APP_END_ADDR - APP_START_ADDR + 1)
|
|
#define APP_START_BLOCK (fsl_u08)(APP_START_ADDR/0x400)
|
|
#define APP_TOTAL_BLOCK (fsl_u08)((APP_END_ADDR + 1 - APP_START_ADDR)/0x400)
|
|
|
|
#define FLASH_DRIVER_ADDR (0xFF9A0)
|
|
#define DM_FLASH_DRIVER_ADDR (0x5A01)
|
|
#define FLASH_DRIVER_SIZE (0x480)
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
/* Prototype declarations */
|
|
/*----------------------------------------------------------------------------*/
|
|
fsl_u08 prFslStart ( void ); /* */
|
|
void prFslEnd ( void ); /* */
|
|
fsl_u08 prFslErase( fsl_u08 start_block,fsl_u08 num );
|
|
fsl_u32 prFslWrite(fsl_u32 start_addr,fsl_u08* buf,fsl_u16 write_num);
|
|
|
|
#endif
|
|
|