Rev 28 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
28 | 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>© Copyright (c) 2020 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 */ |
||
8 | mjames | 21 | |
28 | mjames | 22 | /* Define to prevent recursive inclusion -------------------------------------*/ |
23 | #ifndef __MAIN_H |
||
24 | #define __MAIN_H |
||
8 | mjames | 25 | |
28 | mjames | 26 | #ifdef __cplusplus |
27 | extern "C" { |
||
28 | #endif |
||
8 | mjames | 29 | |
28 | mjames | 30 | /* Includes ------------------------------------------------------------------*/ |
31 | #include "stm32l1xx_hal.h" |
||
8 | mjames | 32 | |
28 | mjames | 33 | /* Private includes ----------------------------------------------------------*/ |
34 | /* USER CODE BEGIN Includes */ |
||
8 | mjames | 35 | |
28 | mjames | 36 | /* USER CODE END Includes */ |
8 | mjames | 37 | |
28 | mjames | 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 | |||
29 | mjames | 53 | void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim); |
54 | |||
28 | mjames | 55 | /* Exported functions prototypes ---------------------------------------------*/ |
56 | void Error_Handler(void); |
||
57 | |||
58 | /* USER CODE BEGIN EFP */ |
||
59 | |||
60 | /* USER CODE END EFP */ |
||
61 | |||
62 | /* Private defines -----------------------------------------------------------*/ |
||
63 | #define prescale_rpm 1000 |
||
64 | #define V_Batt1_Pin GPIO_PIN_0 |
||
65 | #define V_Batt1_GPIO_Port GPIOC |
||
66 | #define V_Batt2_Pin GPIO_PIN_1 |
||
67 | #define V_Batt2_GPIO_Port GPIOC |
||
68 | #define V_Oil_Pin GPIO_PIN_2 |
||
69 | #define V_Oil_GPIO_Port GPIOC |
||
70 | #define V_MAP_Pin GPIO_PIN_3 |
||
71 | #define V_MAP_GPIO_Port GPIOC |
||
72 | #define LED_Blink_Pin GPIO_PIN_4 |
||
73 | #define LED_Blink_GPIO_Port GPIOA |
||
74 | #define SPI1_SCK_Pin GPIO_PIN_5 |
||
75 | #define SPI1_SCK_GPIO_Port GPIOA |
||
76 | #define SPI1_MISO_Pin GPIO_PIN_6 |
||
77 | #define SPI1_MISO_GPIO_Port GPIOA |
||
78 | #define SPI1_MOSI_Pin GPIO_PIN_7 |
||
79 | #define SPI1_MOSI_GPIO_Port GPIOA |
||
80 | #define SPI_NSS1_Pin GPIO_PIN_4 |
||
81 | #define SPI_NSS1_GPIO_Port GPIOC |
||
82 | #define SPI_CD_Pin GPIO_PIN_5 |
||
83 | #define SPI_CD_GPIO_Port GPIOC |
||
84 | #define SPI_RESET_Pin GPIO_PIN_0 |
||
85 | #define SPI_RESET_GPIO_Port GPIOB |
||
86 | #define SPI_NS_Temp_Pin GPIO_PIN_1 |
||
87 | #define SPI_NS_Temp_GPIO_Port GPIOB |
||
88 | #define SPI_NS_Temp2_Pin GPIO_PIN_2 |
||
89 | #define SPI_NS_Temp2_GPIO_Port GPIOB |
||
90 | #define ENA_AUX_5V_Pin GPIO_PIN_10 |
||
91 | #define ENA_AUX_5V_GPIO_Port GPIOB |
||
92 | #define CB_Pulse_Pin GPIO_PIN_15 |
||
93 | #define CB_Pulse_GPIO_Port GPIOA |
||
94 | #define STARTER_ON_Pin GPIO_PIN_10 |
||
95 | #define STARTER_ON_GPIO_Port GPIOC |
||
96 | /* USER CODE BEGIN Private defines */ |
||
97 | |||
98 | /* USER CODE END Private defines */ |
||
99 | |||
100 | #ifdef __cplusplus |
||
101 | } |
||
102 | #endif |
||
103 | |||
104 | #endif /* __MAIN_H */ |
||
105 | |||
106 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |