n32wb452_conf.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*****************************************************************************
  2. * Copyright (c) 2019, 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. * @file n32wb452_conf.h
  29. * @author Nations
  30. * @version v1.0.0
  31. *
  32. * @copyright Copyright (c) 2019, Nations Technologies Inc. All rights reserved.
  33. */
  34. #ifndef __N32WB452_CONF_H__
  35. #define __N32WB452_CONF_H__
  36. /* Uncomment/Comment the line below to enable/disable peripheral header file inclusion */
  37. #include "n32wb452_adc.h"
  38. #include "n32wb452_bkp.h"
  39. #include "n32wb452_can.h"
  40. #include "n32wb452_crc.h"
  41. #include "n32wb452_dac.h"
  42. #include "n32wb452_dbg.h"
  43. #include "n32wb452_dma.h"
  44. #include "n32wb452_dvp.h"
  45. #include "n32wb452_exti.h"
  46. #include "n32wb452_flash.h"
  47. #include "n32wb452_gpio.h"
  48. #include "n32wb452_i2c.h"
  49. #include "n32wb452_iwdg.h"
  50. #include "n32wb452_pwr.h"
  51. #include "n32wb452_rcc.h"
  52. #include "n32wb452_rtc.h"
  53. #include "n32wb452_spi.h"
  54. #include "n32wb452_tim.h"
  55. #include "n32wb452_usart.h"
  56. #include "n32wb452_wwdg.h"
  57. #include "n32wb452_tsc.h"
  58. #include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */
  59. /* Uncomment the line below to expanse the "assert_param" macro in the
  60. Standard Peripheral Library drivers code */
  61. /* #define USE_FULL_ASSERT 1 */
  62. #ifdef USE_FULL_ASSERT
  63. /**
  64. * @brief The assert_param macro is used for function's parameters check.
  65. * @param expr If expr is false, it calls assert_failed function which reports
  66. * the name of the source file and the source line number of the call
  67. * that failed. If expr is true, it returns no value.
  68. */
  69. #define assert_param(expr) ((expr) ? (void)0 : assert_failed((const uint8_t*)#expr, (const uint8_t*)__FILE__, __LINE__))
  70. void assert_failed(const uint8_t* expr, const uint8_t* file, uint32_t line);
  71. #else
  72. #define assert_param(expr) ((void)0)
  73. #endif /* USE_FULL_ASSERT */
  74. #endif /* __N32WB452_CONF_H__ */