Rev 9 | Rev 29 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9 | Rev 28 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | /* USER CODE BEGIN Header */ |
|
1 | /* |
2 | /** |
- | 3 | ****************************************************************************** |
|
- | 4 | * @file : main.h |
|
- | 5 | * @brief : Header for main.c file. |
|
- | 6 | * This file contains the common defines of the application. |
|
- | 7 | ****************************************************************************** |
|
2 | * main.h |
8 | * @attention |
3 | * |
9 | * |
- | 10 | * <h2><center>© Copyright (c) 2020 STMicroelectronics. |
|
4 | * Created on: 5 Oct 2016 |
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 |
|
5 | * Author: Mike |
15 | * License. You may obtain a copy of the License at: |
- | 16 | * opensource.org/licenses/BSD-3-Clause |
|
- | 17 | * |
|
- | 18 | ****************************************************************************** |
|
6 | */ |
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 "stm32l1xx_hal.h" |
|
- | 32 | ||
- | 33 | /* Private includes ----------------------------------------------------------*/ |
|
- | 34 | /* USER CODE BEGIN Includes */ |
|
- | 35 | ||
- | 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 prescale_rpm 1000 |
|
- | 62 | #define V_Batt1_Pin GPIO_PIN_0 |
|
- | 63 | #define V_Batt1_GPIO_Port GPIOC |
|
- | 64 | #define V_Batt2_Pin GPIO_PIN_1 |
|
- | 65 | #define V_Batt2_GPIO_Port GPIOC |
|
- | 66 | #define V_Oil_Pin GPIO_PIN_2 |
|
- | 67 | #define V_Oil_GPIO_Port GPIOC |
|
- | 68 | #define V_MAP_Pin GPIO_PIN_3 |
|
- | 69 | #define V_MAP_GPIO_Port GPIOC |
|
- | 70 | #define LED_Blink_Pin GPIO_PIN_4 |
|
- | 71 | #define LED_Blink_GPIO_Port GPIOA |
|
- | 72 | #define SPI1_SCK_Pin GPIO_PIN_5 |
|
- | 73 | #define SPI1_SCK_GPIO_Port GPIOA |
|
- | 74 | #define SPI1_MISO_Pin GPIO_PIN_6 |
|
- | 75 | #define SPI1_MISO_GPIO_Port GPIOA |
|
- | 76 | #define SPI1_MOSI_Pin GPIO_PIN_7 |
|
- | 77 | #define SPI1_MOSI_GPIO_Port GPIOA |
|
- | 78 | #define SPI_NSS1_Pin GPIO_PIN_4 |
|
- | 79 | #define SPI_NSS1_GPIO_Port GPIOC |
|
- | 80 | #define SPI_CD_Pin GPIO_PIN_5 |
|
- | 81 | #define SPI_CD_GPIO_Port GPIOC |
|
- | 82 | #define SPI_RESET_Pin GPIO_PIN_0 |
|
- | 83 | #define SPI_RESET_GPIO_Port GPIOB |
|
- | 84 | #define SPI_NS_Temp_Pin GPIO_PIN_1 |
|
- | 85 | #define SPI_NS_Temp_GPIO_Port GPIOB |
|
- | 86 | #define SPI_NS_Temp2_Pin GPIO_PIN_2 |
|
- | 87 | #define SPI_NS_Temp2_GPIO_Port GPIOB |
|
- | 88 | #define ENA_AUX_5V_Pin GPIO_PIN_10 |
|
- | 89 | #define ENA_AUX_5V_GPIO_Port GPIOB |
|
- | 90 | #define CB_Pulse_Pin GPIO_PIN_15 |
|
- | 91 | #define CB_Pulse_GPIO_Port GPIOA |
|
- | 92 | #define STARTER_ON_Pin GPIO_PIN_10 |
|
- | 93 | #define STARTER_ON_GPIO_Port GPIOC |
|
- | 94 | /* USER CODE BEGIN Private defines */ |
|
- | 95 | ||
- | 96 | /* USER CODE END Private defines */ |
|
- | 97 | ||
- | 98 | #ifdef __cplusplus |
|
- | 99 | } |
|
- | 100 | #endif |
|
7 | 101 | ||
8 | #ifndef MAIN_H_ |
- | |
9 | #define MAIN_H_ |
102 | #endif /* __MAIN_H */ |
10 | 103 | ||
11 | - | ||
12 | extern TIM_HandleTypeDef htim2; |
- | |
13 | extern TIM_HandleTypeDef htim6; |
104 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
14 | - | ||
15 | - | ||
16 | - | ||
17 | #endif /* MAIN_H_ */ |
- |