Subversion Repositories EngineBay2

Rev

Rev 40 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
38 mjames 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) 2021 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
 
22
/* Define to prevent recursive inclusion -------------------------------------*/
23
#ifndef __MAIN_H
24
#define __MAIN_H
25
 
26
#ifdef __cplusplus
27
extern "C" {
28
#endif
29
 
30
/* Includes ------------------------------------------------------------------*/
31
#include "stm32f1xx_hal.h"
32
 
33
/* Private includes ----------------------------------------------------------*/
34
/* USER CODE BEGIN Includes */
35
#include "main_export.h"
36
/* USER CODE END Includes */
37
 
38
/* Exported types ------------------------------------------------------------*/
39
/* USER CODE BEGIN ET */
40
 
41
/* USER CODE END ET */
42
 
43
/* Exported constants --------------------------------------------------------*/
44
/* USER CODE BEGIN EC */
45
 
46
/* USER CODE END EC */
47
 
48
/* Exported macro ------------------------------------------------------------*/
49
/* USER CODE BEGIN EM */
50
 
51
/* USER CODE END EM */
52
 
53
/* Exported functions prototypes ---------------------------------------------*/
54
void Error_Handler(void);
55
 
56
/* USER CODE BEGIN EFP */
57
 
58
/* USER CODE END EFP */
59
 
60
/* Private defines -----------------------------------------------------------*/
61
#define LED_Blink_Pin GPIO_PIN_13
62
#define LED_Blink_GPIO_Port GPIOC
63
#define V_Batt1_Pin GPIO_PIN_0
64
#define V_Batt1_GPIO_Port GPIOA
65
#define V_Batt2_Pin GPIO_PIN_1
66
#define V_Batt2_GPIO_Port GPIOA
67
#define V_Oil_Pin GPIO_PIN_2
68
#define V_Oil_GPIO_Port GPIOA
69
#define V_Map_Pin GPIO_PIN_3
70
#define V_Map_GPIO_Port GPIOA
71
#define V_Oil_Temp_Pin GPIO_PIN_4
72
#define V_Oil_Temp_GPIO_Port GPIOA
73
#define SPI1_SCK_Pin GPIO_PIN_5
74
#define SPI1_SCK_GPIO_Port GPIOA
75
#define SPI1_MISO_Pin GPIO_PIN_6
76
#define SPI1_MISO_GPIO_Port GPIOA
77
#define SPI1_MOSI_Pin GPIO_PIN_7
78
#define SPI1_MOSI_GPIO_Port GPIOA
79
#define SPI_NS_Temp_Pin GPIO_PIN_0
80
#define SPI_NS_Temp_GPIO_Port GPIOB
81
#define SPI_NS_Temp2_Pin GPIO_PIN_1
82
#define SPI_NS_Temp2_GPIO_Port GPIOB
83
#define Uart1_TX_Pin GPIO_PIN_9
84
#define Uart1_TX_GPIO_Port GPIOA
85
#define Uart1_RX_Pin GPIO_PIN_10
86
#define Uart1_RX_GPIO_Port GPIOA
87
#define CB_Pulse_Pin GPIO_PIN_15
88
#define CB_Pulse_GPIO_Port GPIOA
89
#define STARTER_ON_Pin GPIO_PIN_3
90
#define STARTER_ON_GPIO_Port GPIOB
91
#define ENA_AUX_5V_Pin GPIO_PIN_7
92
#define ENA_AUX_5V_GPIO_Port GPIOB
93
/* USER CODE BEGIN Private defines */
94
 
95
/* USER CODE END Private defines */
96
 
97
#ifdef __cplusplus
98
}
99
#endif
100
 
101
#endif /* __MAIN_H */
102
 
103
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/