/* 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) 2022 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 */

void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define BTN_KEYPAD_Pin GPIO_PIN_11
#define BTN_KEYPAD_GPIO_Port GPIOC
#define BTN_KEYPADC12_Pin GPIO_PIN_12
#define BTN_KEYPADC12_GPIO_Port GPIOC
#define BTN_KEYPADC13_Pin GPIO_PIN_13
#define BTN_KEYPADC13_GPIO_Port GPIOC
#define BTN_KEYPADC14_Pin GPIO_PIN_14
#define BTN_KEYPADC14_GPIO_Port GPIOC
#define BTN_KEYPADC15_Pin GPIO_PIN_15
#define BTN_KEYPADC15_GPIO_Port GPIOC
#define BTN_KEYPADC0_Pin GPIO_PIN_0
#define BTN_KEYPADC0_GPIO_Port GPIOC
#define BTN_KEYPADC1_Pin GPIO_PIN_1
#define BTN_KEYPADC1_GPIO_Port GPIOC
#define BTN_CH1_Pin GPIO_PIN_2
#define BTN_CH1_GPIO_Port GPIOC
#define BTN_CH2_Pin GPIO_PIN_3
#define BTN_CH2_GPIO_Port GPIOC
#define GEN1_FSYNC_Pin GPIO_PIN_0
#define GEN1_FSYNC_GPIO_Port GPIOA
#define GEN_SCLK_Pin GPIO_PIN_1
#define GEN_SCLK_GPIO_Port GPIOA
#define GEN_SDATA_Pin GPIO_PIN_2
#define GEN_SDATA_GPIO_Port GPIOA
#define GEN2_FSYNC_Pin GPIO_PIN_3
#define GEN2_FSYNC_GPIO_Port GPIOA
#define PWM1_Pin GPIO_PIN_6
#define PWM1_GPIO_Port GPIOA
#define PWM2_Pin GPIO_PIN_7
#define PWM2_GPIO_Port GPIOA
#define BTN_PWM1_Pin GPIO_PIN_4
#define BTN_PWM1_GPIO_Port GPIOC
#define BTN_PWM2_Pin GPIO_PIN_5
#define BTN_PWM2_GPIO_Port GPIOC
#define TFT_SDA_Pin GPIO_PIN_11
#define TFT_SDA_GPIO_Port GPIOB
#define TFT_SCL_Pin GPIO_PIN_13
#define TFT_SCL_GPIO_Port GPIOB
#define TFT_CS_Pin GPIO_PIN_14
#define TFT_CS_GPIO_Port GPIOB
#define TFT_DC_Pin GPIO_PIN_15
#define TFT_DC_GPIO_Port GPIOB
#define TFT_RST_Pin GPIO_PIN_8
#define TFT_RST_GPIO_Port GPIOA
#define BTN_KEYPADC6_Pin GPIO_PIN_6
#define BTN_KEYPADC6_GPIO_Port GPIOC
#define BTN_KEYPADC7_Pin GPIO_PIN_7
#define BTN_KEYPADC7_GPIO_Port GPIOC
#define BTN_KEYPADC8_Pin GPIO_PIN_8
#define BTN_KEYPADC8_GPIO_Port GPIOC
#define BTN_KEYPADC9_Pin GPIO_PIN_9
#define BTN_KEYPADC9_GPIO_Port GPIOC
#define CH1_EN_Pin GPIO_PIN_0
#define CH1_EN_GPIO_Port GPIOD
#define CH2_EN_Pin GPIO_PIN_1
#define CH2_EN_GPIO_Port GPIOD
#define PWM1_EN_Pin GPIO_PIN_2
#define PWM1_EN_GPIO_Port GPIOD
#define PWM2_EN_Pin GPIO_PIN_3
#define PWM2_EN_GPIO_Port GPIOD
#define BTN_TFT1_Pin GPIO_PIN_4
#define BTN_TFT1_GPIO_Port GPIOD
#define BTN_TFT2_Pin GPIO_PIN_5
#define BTN_TFT2_GPIO_Port GPIOD
#define BTN_TFT3_Pin GPIO_PIN_6
#define BTN_TFT3_GPIO_Port GPIOD
#define ENC_BTN_Pin GPIO_PIN_3
#define ENC_BTN_GPIO_Port GPIOB
#define ENC_A_Pin GPIO_PIN_4
#define ENC_A_GPIO_Port GPIOB
#define ENC_B_Pin GPIO_PIN_5
#define ENC_B_GPIO_Port GPIOB
#define BTN_LEFT_Pin GPIO_PIN_6
#define BTN_LEFT_GPIO_Port GPIOB
#define BTN_RIGHT_Pin GPIO_PIN_7
#define BTN_RIGHT_GPIO_Port GPIOB
#define BTN_KEYPADC10_Pin GPIO_PIN_10
#define BTN_KEYPADC10_GPIO_Port GPIOC
/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
