Subversion Repositories EngineBay2

Rev

Rev 50 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 50 Rev 53
Line 22... Line 22...
22
/* Define to prevent recursive inclusion -------------------------------------*/
22
/* Define to prevent recursive inclusion -------------------------------------*/
23
#ifndef __MAIN_H
23
#ifndef __MAIN_H
24
#define __MAIN_H
24
#define __MAIN_H
25
 
25
 
26
#ifdef __cplusplus
26
#ifdef __cplusplus
27
extern "C"
27
extern "C" {
28
{
-
 
29
#endif
28
#endif
30
 
29
 
31
/* Includes ------------------------------------------------------------------*/
30
/* Includes ------------------------------------------------------------------*/
32
#include "stm32f1xx_hal.h"
31
#include "stm32f1xx_hal.h"
33
 
32
 
34
/* Private includes ----------------------------------------------------------*/
33
/* Private includes ----------------------------------------------------------*/
35
/* USER CODE BEGIN Includes */
34
/* USER CODE BEGIN Includes */
36
#include "main_export.h"
35
#include "main_export.h"
37
  /* USER CODE END Includes */
36
/* USER CODE END Includes */
38
 
37
 
39
  /* Exported types ------------------------------------------------------------*/
38
/* Exported types ------------------------------------------------------------*/
40
  /* USER CODE BEGIN ET */
39
/* USER CODE BEGIN ET */
41
 
40
 
42
  /* USER CODE END ET */
41
/* USER CODE END ET */
43
 
42
 
44
  /* Exported constants --------------------------------------------------------*/
43
/* Exported constants --------------------------------------------------------*/
45
  /* USER CODE BEGIN EC */
44
/* USER CODE BEGIN EC */
46
 
45
 
47
// scale for filtered samples
46
// scale for filtered samples
48
#define Scale 1024.0
47
#define Scale 1024.0
49
// USART buffer sizes
48
// USART buffer sizes
50
#define TX_USART_BUFF_SIZ 512
49
#define TX_USART_BUFF_SIZ 512
Line 92... Line 91...
92
 
91
 
93
#if defined __cplusplus
92
#if defined __cplusplus
94
  }
93
  }
95
#endif
94
#endif
96
 
95
 
97
  /* USER CODE END EM */
96
/* USER CODE END EM */
98
 
97
 
99
  /* Exported functions prototypes ---------------------------------------------*/
98
/* Exported functions prototypes ---------------------------------------------*/
100
  void Error_Handler(void);
99
void Error_Handler(void);
101
 
100
 
102
  /* USER CODE BEGIN EFP */
101
/* USER CODE BEGIN EFP */
103
  // reset temperature SPI system
102
  // reset temperature SPI system
104
  extern void resetTempCS(void);
103
  extern void resetTempCS(void);
105
  // step onto next temperature SPI value
104
  // step onto next temperature SPI value
106
  extern void nextTempCS(void);
105
  extern void nextTempCS(void);
107
 
106
 
Line 138... Line 137...
138
#define CB_Pulse_GPIO_Port GPIOA
137
#define CB_Pulse_GPIO_Port GPIOA
139
#define STARTER_ON_Pin GPIO_PIN_3
138
#define STARTER_ON_Pin GPIO_PIN_3
140
#define STARTER_ON_GPIO_Port GPIOB
139
#define STARTER_ON_GPIO_Port GPIOB
141
#define ENA_AUX_5V_Pin GPIO_PIN_7
140
#define ENA_AUX_5V_Pin GPIO_PIN_7
142
#define ENA_AUX_5V_GPIO_Port GPIOB
141
#define ENA_AUX_5V_GPIO_Port GPIOB
143
  /* USER CODE BEGIN Private defines */
-
 
144
 
142
 
-
 
143
/* USER CODE BEGIN Private defines */
-
 
144
 
145
  /* USER CODE END Private defines */
145
/* USER CODE END Private defines */
146
 
146
 
147
#ifdef __cplusplus
147
#ifdef __cplusplus
148
}
148
}
149
#endif
149
#endif
150
 
150