Files
FilaDry2/firmware/Core/Inc/main.h
2023-01-24 20:41:43 +03:00

91 lines
2.6 KiB
C

/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.h
* @brief : Header for main.c file.
* This file contains the common defines of the application.
******************************************************************************
* @attention
*
* Copyright (c) 2021 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
* in the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "stm32g0xx_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 */
/* USER CODE END EM */
/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);
/* USER CODE BEGIN EFP */
/* USER CODE END EFP */
/* Private defines -----------------------------------------------------------*/
#define TIM17_BUZZER_Pin GPIO_PIN_7
#define TIM17_BUZZER_GPIO_Port GPIOA
#define KEY_DN_Pin GPIO_PIN_0
#define KEY_DN_GPIO_Port GPIOB
#define KEY_OK_Pin GPIO_PIN_1
#define KEY_OK_GPIO_Port GPIOB
#define KEY_UP_Pin GPIO_PIN_2
#define KEY_UP_GPIO_Port GPIOB
#define I2C2_SCL_OLED_Pin GPIO_PIN_10
#define I2C2_SCL_OLED_GPIO_Port GPIOB
#define I2C2_SDA_OLED_Pin GPIO_PIN_11
#define I2C2_SDA_OLED_GPIO_Port GPIOB
#define TIM3_ZeroCross_Pin GPIO_PIN_2
#define TIM3_ZeroCross_GPIO_Port GPIOD
#define TIM3_Heater_Pin GPIO_PIN_4
#define TIM3_Heater_GPIO_Port GPIOB
#define TIM3_Fan_Pin GPIO_PIN_5
#define TIM3_Fan_GPIO_Port GPIOB
#define I2C1_SCL_BME_Pin GPIO_PIN_8
#define I2C1_SCL_BME_GPIO_Port GPIOB
#define I2C1_SDA_BME_Pin GPIO_PIN_9
#define I2C1_SDA_BME_GPIO_Port GPIOB
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */
#ifdef __cplusplus
}
#endif
#endif /* __MAIN_H */