
/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under BSD 3-Clause license,
  * the "License"; You may not use this file except in compliance with the
  * License. You may obtain a copy of the License at:
  *                        opensource.org/licenses/BSD-3-Clause
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32l1xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */
extern  uint16_t CHT_Observations[2];
extern SPI_HandleTypeDef hspi1;
/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define prescale_rpm 1000
#define V_Batt1_Pin GPIO_PIN_0
#define V_Batt1_GPIO_Port GPIOC
#define V_Batt2_Pin GPIO_PIN_1
#define V_Batt2_GPIO_Port GPIOC
#define V_Oil_Pin GPIO_PIN_2
#define V_Oil_GPIO_Port GPIOC
#define V_MAP_Pin GPIO_PIN_3
#define V_MAP_GPIO_Port GPIOC
#define LED_Blink_Pin GPIO_PIN_4
#define LED_Blink_GPIO_Port GPIOA
#define SPI1_SCK_Pin GPIO_PIN_5
#define SPI1_SCK_GPIO_Port GPIOA
#define SPI1_MISO_Pin GPIO_PIN_6
#define SPI1_MISO_GPIO_Port GPIOA
#define SPI1_MOSI_Pin GPIO_PIN_7
#define SPI1_MOSI_GPIO_Port GPIOA
#define SPI_NSS1_Pin GPIO_PIN_4
#define SPI_NSS1_GPIO_Port GPIOC
#define SPI_CD_Pin GPIO_PIN_5
#define SPI_CD_GPIO_Port GPIOC
#define SPI_RESET_Pin GPIO_PIN_0
#define SPI_RESET_GPIO_Port GPIOB
#define SPI_NS_Temp_Pin GPIO_PIN_1
#define SPI_NS_Temp_GPIO_Port GPIOB
#define SPI_NS_Temp2_Pin GPIO_PIN_2
#define SPI_NS_Temp2_GPIO_Port GPIOB
#define ENA_AUX_5V_Pin GPIO_PIN_10
#define ENA_AUX_5V_GPIO_Port GPIOB
#define CB_Pulse_Pin GPIO_PIN_15
#define CB_Pulse_GPIO_Port GPIOA
#define STARTER_ON_Pin GPIO_PIN_10
#define STARTER_ON_GPIO_Port GPIOC
/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
