/* 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 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 "stm32f1xx_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 SPI_ENC_CS_Pin GPIO_PIN_13 #define SPI_ENC_CS_GPIO_Port GPIOC #define LED_Pin GPIO_PIN_0 #define LED_GPIO_Port GPIOC #define KEY_Pin GPIO_PIN_1 #define KEY_GPIO_Port GPIOC #define EEM_POWER_FAULT_Pin GPIO_PIN_2 #define EEM_POWER_FAULT_GPIO_Port GPIOB #define EEM_POWER_FAULT_EXTI_IRQn EXTI2_IRQn #define SW3_Pin GPIO_PIN_12 #define SW3_GPIO_Port GPIOB #define SW4_Pin GPIO_PIN_6 #define SW4_GPIO_Port GPIOC #define SW5_Pin GPIO_PIN_7 #define SW5_GPIO_Port GPIOC #define SW1_Pin GPIO_PIN_8 #define SW1_GPIO_Port GPIOC #define SW2_Pin GPIO_PIN_9 #define SW2_GPIO_Port GPIOC #define GND2_SW_Pin GPIO_PIN_9 #define GND2_SW_GPIO_Port GPIOA #define GND1_SW_Pin GPIO_PIN_10 #define GND1_SW_GPIO_Port GPIOA #define FPGA_CDONE_Pin GPIO_PIN_11 #define FPGA_CDONE_GPIO_Port GPIOA #define FPGA_CRESET_Pin GPIO_PIN_12 #define FPGA_CRESET_GPIO_Port GPIOA #define SPI_FPGA_CS_Pin GPIO_PIN_15 #define SPI_FPGA_CS_GPIO_Port GPIOA #define DIO_IO_Pin GPIO_PIN_3 #define DIO_IO_GPIO_Port GPIOD #define DIO_CH_SEL2_Pin GPIO_PIN_6 #define DIO_CH_SEL2_GPIO_Port GPIOD #define EEM_POWER_SW_Pin GPIO_PIN_6 #define EEM_POWER_SW_GPIO_Port GPIOB #define DIO_CH_SEL0_Pin GPIO_PIN_0 #define DIO_CH_SEL0_GPIO_Port GPIOE #define DIO_CH_SEL1_Pin GPIO_PIN_1 #define DIO_CH_SEL1_GPIO_Port GPIOE /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ #ifdef __cplusplus } #endif #endif /* __MAIN_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/