Пример #1
0
/*******************************************************************************
* Function Name: CFG_EEPROM_Enable
********************************************************************************
*
* Summary:
*  Enable the EEPROM block. Also reads the temperature and stores it for
*  future writes.
*
* Parameters:
*  None
*
* Return:
*  None
*
*******************************************************************************/
void CFG_EEPROM_Enable(void) 
{
    /* Read temperature value */
    (void)CySetTemp();

    /* Start EEPROM block */
    CyEEPROM_Start();
}
Пример #2
0
void `$INSTANCE_NAME`_Start(void)
{   
    //  The EEPROM requires  the temperature of the device in order to write to the EEPROM efficiently
    // if you are concerned that the temperature of the device has changed by more than 5 degrees
    // since this function was initially called, you can call it again to update the temperature.
    // this is only needed when writing to the EEPROM.
    
    // enable power to the EEPROM.  if you dont do this, you will not be able to read the EEPROM
    #if (CY_PSOC3 || CY_PSOC5LP)
    CyEEPROM_Start();
    #endif
    
    // check the temperature of the device
    CySetTemp();
}
Пример #3
0
 /*******************************************************************************
 * Function Name: EEPROM_Real_Enable
 ********************************************************************************
 *
 * Summary:
 *  Enable the EEPROM.
 *
 * Parameters:
 *  None
 *
 * Return:
 *  None
 *
 *******************************************************************************/
 void EEPROM_Real_Enable(void) 
 {
     CyEEPROM_Start();
 }