text: /**
    ******************************************************************************
    * @file           : main.h
    * @brief          : Header for main.c file.
    *                   This file contains the common defines of the application.
    ******************************************************************************
    ** This notice applies to any and all portions of this file
    * that are not between comment pairs USER CODE BEGIN and
    * USER CODE END. Other portions of this file, whether 
    * inserted by the user or by software development tools
    * are owned by their respective copyright owners.
    *
    * COPYRIGHT(c) 2018 STMicroelectronics
    *
    * Redistribution and use in source and binary forms, with or without modification,
    * are permitted provided that the following conditions are met:
    *   1. Redistributions of source code must retain the above copyright notice,
    *      this list of conditions and the following disclaimer.
    *   2. Redistributions in binary form must reproduce the above copyright notice,
    *      this list of conditions and the following disclaimer in the documentation
    *      and/or other materials provided with the distribution.
    *   3. Neither the name of STMicroelectronics nor the names of its contributors
    *      may be used to endorse or promote products derived from this software
    *      without specific prior written permission.
    *
    * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
    * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
    * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    *
    ******************************************************************************
    */
  
  /* Define to prevent recursive inclusion -------------------------------------*/
  #ifndef __MAIN_H__
  #define __MAIN_H__
  
  /* Includes ------------------------------------------------------------------*/
  
  /* USER CODE BEGIN Includes */
  
  /* USER CODE END Includes */
  
  /* Private define ------------------------------------------------------------*/
  
  #define PC14_OSC32_IN_Pin GPIO_PIN_14
  #define PC14_OSC32_IN_GPIO_Port GPIOC
  #define PC15_OSC32_OUT_Pin GPIO_PIN_15
  #define PC15_OSC32_OUT_GPIO_Port GPIOC
  #define A0_Pin GPIO_PIN_0
  #define A0_GPIO_Port GPIOF
  #define A1_Pin GPIO_PIN_1
  #define A1_GPIO_Port GPIOF
  #define A2_Pin GPIO_PIN_2
  #define A2_GPIO_Port GPIOF
  #define A3_Pin GPIO_PIN_3
  #define A3_GPIO_Port GPIOF
  #define A4_Pin GPIO_PIN_4
  #define A4_GPIO_Port GPIOF
  #define A5_Pin GPIO_PIN_5
  #define A5_GPIO_Port GPIOF
  #define SPI5_SCK_Pin GPIO_PIN_7
  #define SPI5_SCK_GPIO_Port GPIOF
  #define SPI5_MISO_Pin GPIO_PIN_8
  #define SPI5_MISO_GPIO_Port GPIOF
  #define SPI5_MOSI_Pin GPIO_PIN_9
  #define SPI5_MOSI_GPIO_Port GPIOF
  #define ENABLE_Pin GPIO_PIN_10
  #define ENABLE_GPIO_Port GPIOF
  #define PH0_OSC_IN_Pin GPIO_PIN_0
  #define PH0_OSC_IN_GPIO_Port GPIOH
  #define PH1_OSC_OUT_Pin GPIO_PIN_1
  #define PH1_OSC_OUT_GPIO_Port GPIOH
  #define SDNWE_Pin GPIO_PIN_0
  #define SDNWE_GPIO_Port GPIOC
  #define NCS_MEMS_SPI_Pin GPIO_PIN_1
  #define NCS_MEMS_SPI_GPIO_Port GPIOC
  #define CSX_Pin GPIO_PIN_2
  #define CSX_GPIO_Port GPIOC
  #define B1_Pin GPIO_PIN_0
  #define B1_GPIO_Port GPIOA
  #define MEMS_INT1_Pin GPIO_PIN_1
  #define MEMS_INT1_GPIO_Port GPIOA
  #define MEMS_INT2_Pin GPIO_PIN_2
  #define MEMS_INT2_GPIO_Port GPIOA
  #define B5_Pin GPIO_PIN_3
  #define B5_GPIO_Port GPIOA
  #define VSYNC_Pin GPIO_PIN_4
  #define VSYNC_GPIO_Port GPIOA
  #define G2_Pin GPIO_PIN_6
  #define G2_GPIO_Port GPIOA
  #define ACP_RST_Pin GPIO_PIN_7
  #define ACP_RST_GPIO_Port GPIOA
  #define OTG_FS_PSO_Pin GPIO_PIN_4
  #define OTG_FS_PSO_GPIO_Port GPIOC
  #define OTG_FS_OC_Pin GPIO_PIN_5
  #define OTG_FS_OC_GPIO_Port GPIOC
  #define R3_Pin GPIO_PIN_0
  #define R3_GPIO_Port GPIOB
  #define R6_Pin GPIO_PIN_1
  #define R6_GPIO_Port GPIOB
  #define BOOT1_Pin GPIO_PIN_2
  #define BOOT1_GPIO_Port GPIOB
  #define SDNRAS_Pin GPIO_PIN_11
  #define SDNRAS_GPIO_Port GPIOF
  #define A6_Pin GPIO_PIN_12
  #define A6_GPIO_Port GPIOF
  #define A7_Pin GPIO_PIN_13
  #define A7_GPIO_Port GPIOF
  #define A8_Pin GPIO_PIN_14
  #define A8_GPIO_Port GPIOF
  #define A9_Pin GPIO_PIN_15
  #define A9_GPIO_Port GPIOF
  #define A10_Pin GPIO_PIN_0
  #define A10_GPIO_Port GPIOG
  #define A11_Pin GPIO_PIN_1
  #define A11_GPIO_Port GPIOG
  #define D4_Pin GPIO_PIN_7
  #define D4_GPIO_Port GPIOE
  #define D5_Pin GPIO_PIN_8
  #define D5_GPIO_Port GPIOE
  #define D6_Pin GPIO_PIN_9
  #define D6_GPIO_Port GPIOE
  #define D7_Pin GPIO_PIN_10
  #define D7_GPIO_Port GPIOE
  #define D8_Pin GPIO_PIN_11
  #define D8_GPIO_Port GPIOE
  #define D9_Pin GPIO_PIN_12
  #define D9_GPIO_Port GPIOE
  #define D10_Pin GPIO_PIN_13
  #define D10_GPIO_Port GPIOE
  #define D11_Pin GPIO_PIN_14
  #define D11_GPIO_Port GPIOE
  #define D12_Pin GPIO_PIN_15
  #define D12_GPIO_Port GPIOE
  #define G4_Pin GPIO_PIN_10
  #define G4_GPIO_Port GPIOB
  #define G5_Pin GPIO_PIN_11
  #define G5_GPIO_Port GPIOB
  #define OTG_HS_ID_Pin GPIO_PIN_12
  #define OTG_HS_ID_GPIO_Port GPIOB
  #define VBUS_HS_Pin GPIO_PIN_13
  #define VBUS_HS_GPIO_Port GPIOB
  #define OTG_HS_DM_Pin GPIO_PIN_14
  #define OTG_HS_DM_GPIO_Port GPIOB
  #define OTG_HS_DP_Pin GPIO_PIN_15
  #define OTG_HS_DP_GPIO_Port GPIOB
  #define D13_Pin GPIO_PIN_8
  #define D13_GPIO_Port GPIOD
  #define D14_Pin GPIO_PIN_9
  #define D14_GPIO_Port GPIOD
  #define D15_Pin GPIO_PIN_10
  #define D15_GPIO_Port GPIOD
  #define TE_Pin GPIO_PIN_11
  #define TE_GPIO_Port GPIOD
  #define RDX_Pin GPIO_PIN_12
  #define RDX_GPIO_Port GPIOD
  #define WRX_DCX_Pin GPIO_PIN_13
  #define WRX_DCX_GPIO_Port GPIOD
  #define D0_Pin GPIO_PIN_14
  #define D0_GPIO_Port GPIOD
  #define D1_Pin GPIO_PIN_15
  #define D1_GPIO_Port GPIOD
  #define BA0_Pin GPIO_PIN_4
  #define BA0_GPIO_Port GPIOG
  #define BA1_Pin GPIO_PIN_5
  #define BA1_GPIO_Port GPIOG
  #define R7_Pin GPIO_PIN_6
  #define R7_GPIO_Port GPIOG
  #define DOTCLK_Pin GPIO_PIN_7
  #define DOTCLK_GPIO_Port GPIOG
  #define SDCLK_Pin GPIO_PIN_8
  #define SDCLK_GPIO_Port GPIOG
  #define HSYNC_Pin GPIO_PIN_6
  #define HSYNC_GPIO_Port GPIOC
  #define G6_Pin GPIO_PIN_7
  #define G6_GPIO_Port GPIOC
  #define I2C3_SDA_Pin GPIO_PIN_9
  #define I2C3_SDA_GPIO_Port GPIOC
  #define I2C3_SCL_Pin GPIO_PIN_8
  #define I2C3_SCL_GPIO_Port GPIOA
  #define STLINK_RX_Pin GPIO_PIN_9
  #define STLINK_RX_GPIO_Port GPIOA
  #define STLINK_TX_Pin GPIO_PIN_10
  #define STLINK_TX_GPIO_Port GPIOA
  #define R4_Pin GPIO_PIN_11
  #define R4_GPIO_Port GPIOA
  #define R5_Pin GPIO_PIN_12
  #define R5_GPIO_Port GPIOA
  #define SWDIO_Pin GPIO_PIN_13
  #define SWDIO_GPIO_Port GPIOA
  #define SWCLK_Pin GPIO_PIN_14
  #define SWCLK_GPIO_Port GPIOA
  #define TP_INT1_Pin GPIO_PIN_15
  #define TP_INT1_GPIO_Port GPIOA
  #define R2_Pin GPIO_PIN_10
  #define R2_GPIO_Port GPIOC
  #define D2_Pin GPIO_PIN_0
  #define D2_GPIO_Port GPIOD
  #define D3_Pin GPIO_PIN_1
  #define D3_GPIO_Port GPIOD
  #define G7_Pin GPIO_PIN_3
  #define G7_GPIO_Port GPIOD
  #define B2_Pin GPIO_PIN_6
  #define B2_GPIO_Port GPIOD
  #define G3_Pin GPIO_PIN_10
  #define G3_GPIO_Port GPIOG
  #define B3_Pin GPIO_PIN_11
  #define B3_GPIO_Port GPIOG
  #define B4_Pin GPIO_PIN_12
  #define B4_GPIO_Port GPIOG
  #define LD3_Pin GPIO_PIN_13
  #define LD3_GPIO_Port GPIOG
  #define LD4_Pin GPIO_PIN_14
  #define LD4_GPIO_Port GPIOG
  #define SDNCAS_Pin GPIO_PIN_15
  #define SDNCAS_GPIO_Port GPIOG
  #define SDCKE1_Pin GPIO_PIN_5
  #define SDCKE1_GPIO_Port GPIOB
  #define SDNE1_Pin GPIO_PIN_6
  #define SDNE1_GPIO_Port GPIOB
  #define B6_Pin GPIO_PIN_8
  #define B6_GPIO_Port GPIOB
  #define B7_Pin GPIO_PIN_9
  #define B7_GPIO_Port GPIOB
  #define NBL0_Pin GPIO_PIN_0
  #define NBL0_GPIO_Port GPIOE
  #define NBL1_Pin GPIO_PIN_1
  #define NBL1_GPIO_Port GPIOE
  
  /* ########################## Assert Selection ############################## */
  /**
    * @brief Uncomment the line below to expanse the "assert_param" macro in the 
    *        HAL drivers code
    */
  /* #define USE_FULL_ASSERT    1U */
  
  /* USER CODE BEGIN Private defines */
  
  /* USER CODE END Private defines */
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  	void _Error_Handler(char *, int);
  
  #define Error_Handler() _Error_Handler(__FILE__, __LINE__)
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* __MAIN_H__ */
  
  /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
  