Skip to content

Commit 5fd182a

Browse files
committed
Modified fsl_common.h to use DAPLink util_assert for assert.
1 parent 729f5a6 commit 5fd182a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

source/hic_hal/freescale/iap/fsl_common.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@
3131
#ifndef _FSL_COMMON_H_
3232
#define _FSL_COMMON_H_
3333

34-
#include <assert.h>
34+
// #include <assert.h>
3535
#include <stdbool.h>
3636
#include <stdint.h>
3737
#include <string.h>
3838
#include "fsl_device_registers.h"
39+
#include "util.h"
3940

4041
/*!
4142
* @addtogroup ksdk_common
@@ -46,6 +47,9 @@
4647
* Definitions
4748
******************************************************************************/
4849

50+
// Redefine assert to DAPLink's assert utility for code size savings.
51+
#define assert(x) util_assert((x));
52+
4953
/*! @brief Construct a status code value from a group and code number. */
5054
#define MAKE_STATUS(group, code) ((((group)*100) + (code)))
5155

0 commit comments

Comments
 (0)