/* 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 FSMC_A15_Pin GPIO_PIN_2 #define FSMC_A15_GPIO_Port GPIOE #define FSMC_A11_Pin GPIO_PIN_3 #define FSMC_A11_GPIO_Port GPIOE #define FSMC_A12_Pin GPIO_PIN_4 #define FSMC_A12_GPIO_Port GPIOE #define FSMC_A13_Pin GPIO_PIN_5 #define FSMC_A13_GPIO_Port GPIOE #define FSMC_A14_Pin GPIO_PIN_6 #define FSMC_A14_GPIO_Port GPIOE #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 FSMC_D4_Pin GPIO_PIN_7 #define FSMC_D4_GPIO_Port GPIOE #define FSMC_D5_Pin GPIO_PIN_8 #define FSMC_D5_GPIO_Port GPIOE #define FSMC_D6_Pin GPIO_PIN_9 #define FSMC_D6_GPIO_Port GPIOE #define FSMC_D7_Pin GPIO_PIN_10 #define FSMC_D7_GPIO_Port GPIOE #define FSMC_A0_Pin GPIO_PIN_11 #define FSMC_A0_GPIO_Port GPIOE #define FSMC_A1_Pin GPIO_PIN_12 #define FSMC_A1_GPIO_Port GPIOE #define FSMC_A2_Pin GPIO_PIN_13 #define FSMC_A2_GPIO_Port GPIOE #define FSMC_A3_Pin GPIO_PIN_14 #define FSMC_A3_GPIO_Port GPIOE #define FSMC_A4_Pin GPIO_PIN_15 #define FSMC_A4_GPIO_Port GPIOE #define SW3_Pin GPIO_PIN_12 #define SW3_GPIO_Port GPIOB #define FSMC_A5_Pin GPIO_PIN_8 #define FSMC_A5_GPIO_Port GPIOD #define FSMC_A6_Pin GPIO_PIN_9 #define FSMC_A6_GPIO_Port GPIOD #define FSMC_A7_Pin GPIO_PIN_10 #define FSMC_A7_GPIO_Port GPIOD #define FSMC_A8_Pin GPIO_PIN_11 #define FSMC_A8_GPIO_Port GPIOD #define FSMC_A9_Pin GPIO_PIN_12 #define FSMC_A9_GPIO_Port GPIOD #define FSMC_A10_Pin GPIO_PIN_13 #define FSMC_A10_GPIO_Port GPIOD #define FSMC_D0_Pin GPIO_PIN_14 #define FSMC_D0_GPIO_Port GPIOD #define FSMC_D1_Pin GPIO_PIN_15 #define FSMC_D1_GPIO_Port GPIOD #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 FSMC_D2_Pin GPIO_PIN_0 #define FSMC_D2_GPIO_Port GPIOD #define FSMC_D3_Pin GPIO_PIN_1 #define FSMC_D3_GPIO_Port GPIOD #define FSMC_NOE_Pin GPIO_PIN_4 #define FSMC_NOE_GPIO_Port GPIOD #define FSMC_NWE_Pin GPIO_PIN_5 #define FSMC_NWE_GPIO_Port GPIOD #define FSMC_NE1_Pin GPIO_PIN_7 #define FSMC_NE1_GPIO_Port GPIOD #define EEM_POWER_SW_Pin GPIO_PIN_6 #define EEM_POWER_SW_GPIO_Port GPIOB /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ #ifdef __cplusplus } #endif #endif /* __MAIN_H */