Subversion Repositories EngineBay2

Rev

Rev 9 | Rev 29 | 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>&copy; 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
 
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
101
 
102
#endif /* __MAIN_H */
103
 
104
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/