main(735).h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * @file : main.h
  5. * @brief : Header for main.c file.
  6. * This file contains the common defines of the application.
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
  11. * All rights reserved.</center></h2>
  12. *
  13. * This software component is licensed by ST under BSD 3-Clause license,
  14. * the "License"; You may not use this file except in compliance with the
  15. * License. You may obtain a copy of the License at:
  16. * opensource.org/licenses/BSD-3-Clause
  17. *
  18. ******************************************************************************
  19. */
  20. /* USER CODE END Header */
  21. /* Define to prevent recursive inclusion -------------------------------------*/
  22. #ifndef __MAIN_H
  23. #define __MAIN_H
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /* Includes ------------------------------------------------------------------*/
  28. #include "stm32l4xx_hal.h"
  29. /* Private includes ----------------------------------------------------------*/
  30. /* USER CODE BEGIN Includes */
  31. #include <stdio.h>
  32. #include "uart.h"
  33. #include "TMP75AIDGKR.h"
  34. /* USER CODE END Includes */
  35. /* Exported types ------------------------------------------------------------*/
  36. /* USER CODE BEGIN ET */
  37. /* USER CODE END ET */
  38. /* Exported constants --------------------------------------------------------*/
  39. /* USER CODE BEGIN EC */
  40. /* USER CODE END EC */
  41. /* Exported macro ------------------------------------------------------------*/
  42. /* USER CODE BEGIN EM */
  43. /* USER CODE END EM */
  44. /* Exported functions prototypes ---------------------------------------------*/
  45. void Error_Handler(void);
  46. /* USER CODE BEGIN EFP */
  47. /* USER CODE END EFP */
  48. /* Private defines -----------------------------------------------------------*/
  49. #define A_SENSOR_INT1_Pin GPIO_PIN_13
  50. #define A_SENSOR_INT1_GPIO_Port GPIOC
  51. #define BOOT_LED_Pin GPIO_PIN_15
  52. #define BOOT_LED_GPIO_Port GPIOC
  53. #define RUN_MODE_Pin GPIO_PIN_0
  54. #define RUN_MODE_GPIO_Port GPIOA
  55. #define TPB22_3_TX_Pin GPIO_PIN_2
  56. #define TPB22_3_TX_GPIO_Port GPIOA
  57. #define TPB22_3_RX_Pin GPIO_PIN_3
  58. #define TPB22_3_RX_GPIO_Port GPIOA
  59. #define EEPROM_SCL_Pin GPIO_PIN_7
  60. #define EEPROM_SCL_GPIO_Port GPIOA
  61. #define Run_Mode_LED_Pin GPIO_PIN_0
  62. #define Run_Mode_LED_GPIO_Port GPIOB
  63. #define Run_Mode_Pin GPIO_PIN_1
  64. #define Run_Mode_GPIO_Port GPIOB
  65. #define UBX_M8030KT__TX_Pin GPIO_PIN_10
  66. #define UBX_M8030KT__TX_GPIO_Port GPIOB
  67. #define UBX_M8030KT_RX_Pin GPIO_PIN_11
  68. #define UBX_M8030KT_RX_GPIO_Port GPIOB
  69. #define BMA253_SCL_Pin GPIO_PIN_13
  70. #define BMA253_SCL_GPIO_Port GPIOB
  71. #define BMA253_SDA_Pin GPIO_PIN_14
  72. #define BMA253_SDA_GPIO_Port GPIOB
  73. #define GUI_TX_Pin GPIO_PIN_9
  74. #define GUI_TX_GPIO_Port GPIOA
  75. #define GUI_RX_Pin GPIO_PIN_10
  76. #define GUI_RX_GPIO_Port GPIOA
  77. #define TPB22_3_EN_Pin GPIO_PIN_3
  78. #define TPB22_3_EN_GPIO_Port GPIOB
  79. #define EEPROM_SDA_Pin GPIO_PIN_4
  80. #define EEPROM_SDA_GPIO_Port GPIOB
  81. #define UBX_M8030_EN_Pin GPIO_PIN_5
  82. #define UBX_M8030_EN_GPIO_Port GPIOB
  83. #define TMP75AIDGKR_SCL_Pin GPIO_PIN_6
  84. #define TMP75AIDGKR_SCL_GPIO_Port GPIOB
  85. #define TMP75AIDGKR_SDA_Pin GPIO_PIN_7
  86. #define TMP75AIDGKR_SDA_GPIO_Port GPIOB
  87. #define TMP75AIDGKR_ALERT_Pin GPIO_PIN_8
  88. #define TMP75AIDGKR_ALERT_GPIO_Port GPIOB
  89. #define SENSEO_EN_Pin GPIO_PIN_9
  90. #define SENSEO_EN_GPIO_Port GPIOB
  91. /* USER CODE BEGIN Private defines */
  92. /* USER CODE END Private defines */
  93. #ifdef __cplusplus
  94. }
  95. #endif
  96. #endif /* __MAIN_H */
  97. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/