arm_ucos/src/cpu/start.c
/********************************************************************/
/*!
 * \brief   flash Identify
 * \return  None
 *
 * This is primarly a reporting function that displays information
 * about the specific flash parameters and flash version ID for 
 * the current device. These parameters are obtained using a special
 * flash command call "read resource." The first four bytes returned
 * are the flash parameter revision, and the second four bytes are
 * the flash version ID.
 */
\brief   flash Identify
\return  None

This is primarly a reporting function that displays information
about the specific flash parameters and flash version ID for
the current device. These parameters are obtained using a special
flash command call "read resource." The first four bytes returned
are the flash parameter revision, and the second four bytes are
the flash version ID.
\ brief flash Identify \ return None This is primarly a reporting function that displays information about the specific flash parameters and flash version ID for the current device . These parameters are obtained using a special flash command call " read resource . " The first four bytes returned are the flash parameter revision and the second four bytes are the flash version ID .
void flash_identify (void)
{
    FTFL_FCCOB0 = 0x03;
    FTFL_FCCOB1 = 0x00;
    FTFL_FCCOB2 = 0x00;
    FTFL_FCCOB3 = 0x00;
    FTFL_FCCOB8 = 0x01;
    FTFL_FSTAT = FTFL_FSTAT_CCIF_MASK;
    while(!(FTFL_FSTAT & FTFL_FSTAT_CCIF_MASK));
    printf("Flash parameter version %d.%d.%d.%d\n",FTFL_FCCOB4,FTFL_FCCOB5,FTFL_FCCOB6,FTFL_FCCOB7);
    FTFL_FCCOB0 = 0x03;
    FTFL_FCCOB1 = 0x00;
    FTFL_FCCOB2 = 0x00;
    FTFL_FCCOB3 = 0x04;
    FTFL_FCCOB8 = 0x01;
    FTFL_FSTAT = FTFL_FSTAT_CCIF_MASK;
    while(!(FTFL_FSTAT & FTFL_FSTAT_CCIF_MASK));
    printf("Flash version ID %d.%d.%d.%d\n",FTFL_FCCOB4,FTFL_FCCOB5,FTFL_FCCOB6,FTFL_FCCOB7);  
    FTFL_FSTAT = 0xFF;
}
void flash_identify ( void ) { FTFL_FCCOB0 = 0x03 ; FTFL_FCCOB1 = 0x00 ; FTFL_FCCOB2 = 0x00 ; FTFL_FCCOB3 = 0x00 ; FTFL_FCCOB8 = 0x01 ; FTFL_FSTAT = FTFL_FSTAT_CCIF_MASK ; while ( ! ( FTFL_FSTAT & FTFL_FSTAT_CCIF_MASK ) ) ; printf ( " \n " , FTFL_FCCOB4 , FTFL_FCCOB5 , FTFL_FCCOB6 , FTFL_FCCOB7 ) ; FTFL_FCCOB0 = 0x03 ; FTFL_FCCOB1 = 0x00 ; FTFL_FCCOB2 = 0x00 ; FTFL_FCCOB3 = 0x04 ; FTFL_FCCOB8 = 0x01 ; FTFL_FSTAT = FTFL_FSTAT_CCIF_MASK ; while ( ! ( FTFL_FSTAT & FTFL_FSTAT_CCIF_MASK ) ) ; printf ( " \n " , FTFL_FCCOB4 , FTFL_FCCOB5 , FTFL_FCCOB6 , FTFL_FCCOB7 ) ; FTFL_FSTAT = 0xFF ; }
\brief   flash Identify
 \return  None
\ brief flash Identify \ return None
/* Get the flash parameter version */ /* Write the flash FCCOB registers with the values for a read resource command */ /* All required FCCOBx registers are written, so launch the command */ /* Wait for the command to complete */ /* Get the flash version ID */ /* Write the flash FCCOB registers with the values for a read resource command */ /* All required FCCOBx registers are written, so launch the command */ /* Wait for the command to complete */ /* Clear all of the flags in the flash status register */