n32g45x_conf.h 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 n32g45x_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 __N32G45X_CONF_H__
  35. #define __N32G45X_CONF_H__
  36. /* Uncomment/Comment the line below to enable/disable peripheral header file inclusion */
  37. #include "n32g45x_adc.h"
  38. #include "n32g45x_bkp.h"
  39. #include "n32g45x_can.h"
  40. #include "n32g45x_comp.h"
  41. #include "n32g45x_crc.h"
  42. #include "n32g45x_dac.h"
  43. #include "n32g45x_dbg.h"
  44. #include "n32g45x_dma.h"
  45. #include "n32g45x_dvp.h"
  46. #include "n32g45x_eth.h"
  47. #include "n32g45x_exti.h"
  48. #include "n32g45x_flash.h"
  49. #include "n32g45x_gpio.h"
  50. #include "n32g45x_i2c.h"
  51. #include "n32g45x_iwdg.h"
  52. #include "n32g45x_opamp.h"
  53. #include "n32g45x_pwr.h"
  54. #include "n32g45x_qspi.h"
  55. #include "n32g45x_rcc.h"
  56. #include "n32g45x_rtc.h"
  57. #include "n32g45x_sdio.h"
  58. #include "n32g45x_spi.h"
  59. #include "n32g45x_tim.h"
  60. #include "n32g45x_usart.h"
  61. #include "n32g45x_wwdg.h"
  62. #include "n32g45x_xfmc.h"
  63. #include "n32g45x_tsc.h"
  64. #include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */
  65. /* Uncomment the line below to expanse the "assert_param" macro in the
  66. Standard Peripheral Library drivers code */
  67. /* #define USE_FULL_ASSERT 1 */
  68. #ifdef USE_FULL_ASSERT
  69. /**
  70. * @brief The assert_param macro is used for function's parameters check.
  71. * @param expr If expr is false, it calls assert_failed function which reports
  72. * the name of the source file and the source line number of the call
  73. * that failed. If expr is true, it returns no value.
  74. */
  75. #define assert_param(expr) ((expr) ? (void)0 : assert_failed((const uint8_t*)#expr, (const uint8_t*)__FILE__, __LINE__))
  76. void assert_failed(const uint8_t* expr, const uint8_t* file, uint32_t line);
  77. #else
  78. #define assert_param(expr) ((void)0)
  79. #endif /* USE_FULL_ASSERT */
  80. #endif /* __N32G45X_CONF_H__ */