コード例 #1
0
////////////////////////////////////////////////////////////////////////////////////////////////////
/// @author NIVIS LLC, Dorin Pavel   
/// @brief  Generic function for write non-volatile data  
/// @params p_pucSrc            - source buffer
///         p_uAddr - (sector) address
///         p_unSize            - number of bytes to write
/// @return none
/// @remarks
///      Access level: user level
//////////////////////////////////////////////////////////////////////////////////////////////////// 
void WritePersistentData( const uint8 *p_pucSrc, PROV_ADDR_TYPE p_uAddr, uint16 p_unSize )
{ 
#if( DEVICE_TYPE == DEV_TYPE_MC13225 )
   // write data into flash 
     NVM_FlashWrite( (void*)p_pucSrc, p_uAddr, p_unSize);
#else
    #warning  "HW platform not supported" 
#endif  
}
コード例 #2
0
////////////////////////////////////////////////////////////////////////////////////////////////////
// Name: NVM_WritePersistentData
// Author: NIVIS LLC  
// Description: Generic function for write non-volatile data  
// Parameters: p_pucSrc - source buffer
//             p_uAddr  - address
//             p_unSize - number of bytes to write
// Return: none
// Obs:
//      Access level: user level
//////////////////////////////////////////////////////////////////////////////////////////////////// 
void NVM_WritePersistentData( uint8 *p_pucSrc, PROV_ADDR_TYPE p_uAddr, uint16 p_unSize )
{ 
#if( DEVICE_TYPE == DEV_TYPE_MC13225 )
  NVM_FlashWrite((void*)p_pucSrc, p_uAddr, p_unSize); 
#endif  
}