CY_CFG_UNUSED static void CyClockStartupError(uint8 errorCode) { /* To remove the compiler warning if errorCode not used. */ errorCode = errorCode; /* If we have a clock startup error (bad MHz crystal, PLL lock, etc.), */ /* we will end up here to allow the customer to implement something to */ /* deal with the clock condition. */ #ifdef CY_CFG_CLOCK_STARTUP_ERROR_CALLBACK CY_CFG_Clock_Startup_ErrorCallback(); #else /* If not using CY_CFG_CLOCK_STARTUP_ERROR_CALLBACK, place your clock startup code here. */ /* `#START CyClockStartupError` */ /* If we have a clock startup error (bad MHz crystal, PLL lock, etc.), */ /* we will end up here to allow the customer to implement something to */ /* deal with the clock condition. */ /* `#END` */ /* If nothing else, stop here since the clocks have not started */ /* correctly. */ while(1) {} #endif /* CY_CFG_CLOCK_STARTUP_ERROR_CALLBACK */ }
CY_CFG_UNUSED static void CyClockStartupError(uint8 errorCode) { /* To remove the compiler warning if errorCode not used. */ errorCode = errorCode; /* If we have a clock startup error (bad MHz crystal, PLL lock, etc.), */ /* we will end up here to allow the customer to implement something to */ /* deal with the clock condition. */ #ifdef CY_CFG_CLOCK_STARTUP_ERROR_CALLBACK CY_CFG_Clock_Startup_ErrorCallback(); #else while(1) {} #endif /* CY_CFG_CLOCK_STARTUP_ERROR_CALLBACK */ }