main.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. #include "bma253_defs.h"
  35. #include "ublox.h"
  36. /* USER CODE END Includes */
  37. /* Exported types ------------------------------------------------------------*/
  38. /* USER CODE BEGIN ET */
  39. /* USER CODE END ET */
  40. /* Exported constants --------------------------------------------------------*/
  41. /* USER CODE BEGIN EC */
  42. /* USER CODE END EC */
  43. /* Exported macro ------------------------------------------------------------*/
  44. /* USER CODE BEGIN EM */
  45. /* USER CODE END EM */
  46. /* Exported functions prototypes ---------------------------------------------*/
  47. void Error_Handler(void);
  48. /* USER CODE BEGIN EFP */
  49. extern I2C_HandleTypeDef hi2c1;
  50. extern I2C_HandleTypeDef hi2c2;
  51. extern I2C_HandleTypeDef hi2c3;
  52. /* USER CODE END EFP */
  53. /* Private defines -----------------------------------------------------------*/
  54. #define A_SENSOR_INT1_Pin GPIO_PIN_13
  55. #define A_SENSOR_INT1_GPIO_Port GPIOC
  56. #define BOOT_LED_Pin GPIO_PIN_15
  57. #define BOOT_LED_GPIO_Port GPIOC
  58. #define RUN_MODE_Pin GPIO_PIN_0
  59. #define RUN_MODE_GPIO_Port GPIOA
  60. #define TPB22_3_TX_Pin GPIO_PIN_2
  61. #define TPB22_3_TX_GPIO_Port GPIOA
  62. #define TPB22_3_RX_Pin GPIO_PIN_3
  63. #define TPB22_3_RX_GPIO_Port GPIOA
  64. #define EEPROM_SCL_Pin GPIO_PIN_7
  65. #define EEPROM_SCL_GPIO_Port GPIOA
  66. #define Run_Mode_LED_Pin GPIO_PIN_0
  67. #define Run_Mode_LED_GPIO_Port GPIOB
  68. #define Run_Mode_Pin GPIO_PIN_1
  69. #define Run_Mode_GPIO_Port GPIOB
  70. #define UBX_M8030KT__TX_Pin GPIO_PIN_10
  71. #define UBX_M8030KT__TX_GPIO_Port GPIOB
  72. #define UBX_M8030KT_RX_Pin GPIO_PIN_11
  73. #define UBX_M8030KT_RX_GPIO_Port GPIOB
  74. #define BMA253_SCL_Pin GPIO_PIN_13
  75. #define BMA253_SCL_GPIO_Port GPIOB
  76. #define BMA253_SDA_Pin GPIO_PIN_14
  77. #define BMA253_SDA_GPIO_Port GPIOB
  78. #define GUI_TX_Pin GPIO_PIN_9
  79. #define GUI_TX_GPIO_Port GPIOA
  80. #define GUI_RX_Pin GPIO_PIN_10
  81. #define GUI_RX_GPIO_Port GPIOA
  82. #define TPB22_3_EN_Pin GPIO_PIN_3
  83. #define TPB22_3_EN_GPIO_Port GPIOB
  84. #define EEPROM_SDA_Pin GPIO_PIN_4
  85. #define EEPROM_SDA_GPIO_Port GPIOB
  86. #define UBX_M8030_EN_Pin GPIO_PIN_5
  87. #define UBX_M8030_EN_GPIO_Port GPIOB
  88. #define TMP75AIDGKR_SCL_Pin GPIO_PIN_6
  89. #define TMP75AIDGKR_SCL_GPIO_Port GPIOB
  90. #define TMP75AIDGKR_SDA_Pin GPIO_PIN_7
  91. #define TMP75AIDGKR_SDA_GPIO_Port GPIOB
  92. #define TMP75AIDGKR_ALERT_Pin GPIO_PIN_8
  93. #define TMP75AIDGKR_ALERT_GPIO_Port GPIOB
  94. #define SENSEO_EN_Pin GPIO_PIN_9
  95. #define SENSEO_EN_GPIO_Port GPIOB
  96. /* USER CODE BEGIN Private defines */
  97. /* USER CODE END Private defines */
  98. #ifdef __cplusplus
  99. }
  100. #endif
  101. #endif /* __MAIN_H */
  102. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/