1 /**
2   ****************************************************************************************************
3   * @file    fm33_assert.h
4   * @author  FMSH Application Team
5   * @brief   Assert function define
6   ****************************************************************************************************
7   * @attention
8   *
9   * Copyright (c) [2019] [Fudan Microelectronics]
10   * THIS SOFTWARE is licensed under the Mulan PSL v1.
11   * can use this software according to the terms and conditions of the Mulan PSL v1.
12   * You may obtain a copy of Mulan PSL v1 at:
13   * http://license.coscl.org.cn/MulanPSL
14   * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
16   * PURPOSE.
17   * See the Mulan PSL v1 for more details.
18   *
19   ****************************************************************************************************
20   */
21 #ifndef __FM33_ASSERT_H
22 #define __FM33_ASSERT_H
23 #include "fm33xx.h"
24 #ifdef __cplusplus
25  extern "C" {
26 #endif
27 
28 
29 #ifdef  USE_FULL_ASSERT
30 #define assert_param(expr) do{if((expr) == 0)for(;;);}while(0)
31 #else
32 #define assert_param(expr) ((void)0U)
33 #endif
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 
40 #endif
41 
42