stm32g474e_eval_conf.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /**
  2. ******************************************************************************
  3. * @file stm32g474e_eval_conf_template.h
  4. * @author MCD Application Team
  5. * @brief STM32G474E-EVAL board configuration file.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under BSD 3-Clause license,
  13. * the "License"; You may not use this file except in compliance with the
  14. * License. You may obtain a copy of the License at:
  15. * opensource.org/licenses/BSD-3-Clause
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef STM32G474E_EVAL_CONF_H
  21. #define STM32G474E_EVAL_CONF_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "stm32g4xx_hal.h"
  27. #include "stm32g474e_eval_errno.h"
  28. /** @addtogroup BSP
  29. * @{
  30. */
  31. /** @addtogroup STM32G474E-EVAL
  32. * @{
  33. */
  34. /** @defgroup STM32G474E-EVAL_CONFIG STM32G474E-EVAL CONFIG
  35. * @{
  36. */
  37. /** @defgroup STM32G474E-EVAL_CONFIG_Exported_Constants Exported Constants
  38. * @{
  39. */
  40. /* COM define */
  41. #define USE_BSP_COM_FEATURE 1U
  42. /* COM LOG define */
  43. #define USE_COM_LOG 0U
  44. /* POT define */
  45. #define USE_BSP_POT_FEATURE 1U
  46. /* COMP define :
  47. depends on SB8 and SB10 configuration : refer to UM */
  48. #define USE_BSP_POT_COMP_FEATURE 0U
  49. /* IO Expander define */
  50. #define USE_BSP_IO_CLASS 1U
  51. /* JOY define */
  52. #define USE_BSP_JOY_FEATURE 1U
  53. /* USBPD BSP PWR TRACE define */
  54. #define USE_BSP_PWR_TRACE 0U
  55. #if (USE_BSP_PWR_TRACE > 0u)
  56. #define USBPD_PWR_TRACE(_PORT_,...) UTIL_ADV_TRACE_FSend(__VA_ARGS__)
  57. #else
  58. #define USBPD_PWR_TRACE(_PORT_,...)
  59. #endif /* USE_BSP_PWR_TRACE */
  60. /* IRQ priorities */
  61. #define BSP_SRAM_IT_PRIORITY 15U
  62. #define BSP_IOEXPANDER_IT_PRIORITY 14U
  63. #define BSP_BUTTON_USER_IT_PRIORITY 15U
  64. #define BSP_AUDIO_OUT_IT_PRIORITY 13U
  65. #define BSP_AUDIO_IN_IT_PRIORITY 12U
  66. /* Audio codecs defines */
  67. #define USE_AUDIO_CODEC_WM8994 1U
  68. /* Default Audio IN internal buffer size */
  69. #define DEFAULT_AUDIO_IN_BUFFER_SIZE 2048U
  70. /* I2C3 Frequency in Hz */
  71. #define BUS_I2C3_FREQUENCY 100000U /* Frequency of I2C3 = 100 kHz*/
  72. /* SPI2 Baud rate in bps */
  73. #define BUS_SPI2_BAUDRATE 12500000U /* baud rate of SPIn = 12.5 Mbps */
  74. /**
  75. * @}
  76. */
  77. /**
  78. * @}
  79. */
  80. /**
  81. * @}
  82. */
  83. /**
  84. * @}
  85. */
  86. #ifdef __cplusplus
  87. }
  88. #endif
  89. #endif /* STM32G474E_EVAL_CONF_H */
  90. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/