Subversion Repositories EngineBay2

Rev

Details | 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 */
31 mjames 50
extern  uint16_t CHT_Observations[2];
51
extern SPI_HandleTypeDef hspi1;
28 mjames 52
/* USER CODE END EM */
53
 
54
/* Exported functions prototypes ---------------------------------------------*/
55
void Error_Handler(void);
56
 
57
/* USER CODE BEGIN EFP */
58
 
59
/* USER CODE END EFP */
60
 
61
/* Private defines -----------------------------------------------------------*/
62
#define prescale_rpm 1000
63
#define V_Batt1_Pin GPIO_PIN_0
64
#define V_Batt1_GPIO_Port GPIOC
65
#define V_Batt2_Pin GPIO_PIN_1
66
#define V_Batt2_GPIO_Port GPIOC
67
#define V_Oil_Pin GPIO_PIN_2
68
#define V_Oil_GPIO_Port GPIOC
69
#define V_MAP_Pin GPIO_PIN_3
70
#define V_MAP_GPIO_Port GPIOC
71
#define LED_Blink_Pin GPIO_PIN_4
72
#define LED_Blink_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_NSS1_Pin GPIO_PIN_4
80
#define SPI_NSS1_GPIO_Port GPIOC
81
#define SPI_CD_Pin GPIO_PIN_5
82
#define SPI_CD_GPIO_Port GPIOC
83
#define SPI_RESET_Pin GPIO_PIN_0
84
#define SPI_RESET_GPIO_Port GPIOB
85
#define SPI_NS_Temp_Pin GPIO_PIN_1
86
#define SPI_NS_Temp_GPIO_Port GPIOB
87
#define SPI_NS_Temp2_Pin GPIO_PIN_2
88
#define SPI_NS_Temp2_GPIO_Port GPIOB
89
#define ENA_AUX_5V_Pin GPIO_PIN_10
90
#define ENA_AUX_5V_GPIO_Port GPIOB
91
#define CB_Pulse_Pin GPIO_PIN_15
92
#define CB_Pulse_GPIO_Port GPIOA
93
#define STARTER_ON_Pin GPIO_PIN_10
94
#define STARTER_ON_GPIO_Port GPIOC
95
/* USER CODE BEGIN Private defines */
96
 
97
/* USER CODE END Private defines */
98
 
99
#ifdef __cplusplus
100
}
101
#endif
102
 
103
#endif /* __MAIN_H */
104
 
105
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/