Cypress Core Library (core-lib)
Utilities

General Description

Basic utility macros and functions.

Macros

#define CY_UNUSED_PARAMETER(x)   ( (void)(x) )
 
#define CY_ASSERT(x)
 

Functions

static void CY_HALT ()
 

Macro Definition Documentation

◆ CY_UNUSED_PARAMETER

#define CY_UNUSED_PARAMETER (   x)    ( (void)(x) )

Simple macro to supress the unused parameter warning by casting to void.

◆ CY_ASSERT

#define CY_ASSERT (   x)
Value:
do { \
if(!(x)) \
{ \
CY_HALT(); \
} \
} while(0)

Utility macro when neither NDEBUG or CY_NO_ASSERT is not declared to check a condition and, if false, trigger a breakpoint

Function Documentation

◆ CY_HALT()

static void CY_HALT ( )
inlinestatic

Halt the processor in the debug state