1 /*****************************************************************************
2  * Copyright (c) 2022, Nations Technologies Inc.
3  *
4  * All rights reserved.
5  * ****************************************************************************
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions are met:
9  *
10  * - Redistributions of source code must retain the above copyright notice,
11  * this list of conditions and the disclaimer below.
12  *
13  * Nations' name may not be used to endorse or promote products derived from
14  * this software without specific prior written permission.
15  *
16  * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY NATIONS "AS IS" AND ANY EXPRESS OR
17  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
19  * DISCLAIMED. IN NO EVENT SHALL NATIONS BE LIABLE FOR ANY DIRECT, INDIRECT,
20  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
22  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
25  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  * ****************************************************************************/
27 
28 /**
29  * @file n32l43x_conf.h
30  * @author Nations
31  * @version v1.2.0
32  *
33  * @copyright Copyright (c) 2022, Nations Technologies Inc. All rights reserved.
34  */
35 #ifndef __N32L43X_CONF_H__
36 #define __N32L43X_CONF_H__
37 
38 /* Uncomment/Comment the line below to enable/disable peripheral header file inclusion */
39 
40 #include "n32l43x_adc.h"
41 #include "n32l43x_can.h"
42 #include "n32l43x_comp.h"
43 #include "n32l43x_crc.h"
44 #include "n32l43x_dac.h"
45 #include "n32l43x_dbg.h"
46 #include "n32l43x_dma.h"
47 #include "n32l43x_exti.h"
48 #include "n32l43x_flash.h"
49 #include "n32l43x_gpio.h"
50 #include "n32l43x_i2c.h"
51 #include "n32l43x_iwdg.h"
52 #include "n32l43x_opamp.h"
53 #include "n32l43x_pwr.h"
54 #include "n32l43x_rcc.h"
55 #include "n32l43x_rtc.h"
56 #include "n32l43x_spi.h"
57 #include "n32l43x_tim.h"
58 #include "n32l43x_usart.h"
59 #include "n32l43x_lpuart.h"
60 #include "n32l43x_wwdg.h"
61 #include "n32l43x_tsc.h"
62 #include "n32l43x_lcd.h"
63 
64 #include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */
65 
66 /* Uncomment the line below to expanse the "assert_param" macro in the
67    Standard Peripheral Library drivers code */
68 /* #define USE_FULL_ASSERT    1  */
69 
70 #ifdef USE_FULL_ASSERT
71 
72 /**
73  * @brief  The assert_param macro is used for function's parameters check.
74  * @param expr If expr is false, it calls assert_failed function which reports
75  *         the name of the source file and the source line number of the call
76  *         that failed. If expr is true, it returns no value.
77  */
78 #define assert_param(expr) ((expr) ? (void)0 : assert_failed((const uint8_t*)#expr, (const uint8_t*)__FILE__, __LINE__))
79 
80 void assert_failed(const uint8_t* expr, const uint8_t* file, uint32_t line);
81 #else
82 #define assert_param(expr) ((void)0)
83 #endif /* USE_FULL_ASSERT */
84 
85 #endif /* __N32L43X_CONF_H__ */
86