stm32h7 udp server with adc

Dependencies:   ADE7912

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

Go to the documentation of this file.
00001 /* USER CODE BEGIN Header */
00002 /**
00003   ******************************************************************************
00004   * @file           : main.h
00005   * @brief          : Header for main.c file.
00006   *                   This file contains the common defines of the application.
00007   ******************************************************************************
00008   * @attention
00009   *
00010   * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
00011   * All rights reserved.</center></h2>
00012   *
00013   * This software component is licensed by ST under BSD 3-Clause license,
00014   * the "License"; You may not use this file except in compliance with the
00015   * License. You may obtain a copy of the License at:
00016   *                        opensource.org/licenses/BSD-3-Clause
00017   *
00018   ******************************************************************************
00019   */
00020 /* USER CODE END Header */
00021 
00022 /* Define to prevent recursive inclusion -------------------------------------*/
00023 #ifndef __MAIN_H
00024 #define __MAIN_H
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00030 /* Includes ------------------------------------------------------------------*/
00031 #include "stm32h7xx_hal.h"
00032 
00033 /* Private includes ----------------------------------------------------------*/
00034 /* USER CODE BEGIN Includes */
00035 
00036 /* USER CODE END Includes */
00037 
00038 /* Exported types ------------------------------------------------------------*/
00039 /* USER CODE BEGIN ET */
00040 
00041 /* USER CODE END ET */
00042 
00043 /* Exported constants --------------------------------------------------------*/
00044 /* USER CODE BEGIN EC */
00045 
00046 /* USER CODE END EC */
00047 
00048 /* Exported macro ------------------------------------------------------------*/
00049 /* USER CODE BEGIN EM */
00050 
00051 /* USER CODE END EM */
00052 
00053 /* Exported functions prototypes ---------------------------------------------*/
00054 //void Error_Handler();
00055 
00056 /* USER CODE BEGIN EFP */
00057 
00058 /* USER CODE END EFP */
00059 
00060 /* Private defines -----------------------------------------------------------*/
00061 #define B1_Pin GPIO_PIN_13
00062 #define B1_GPIO_Port GPIOC
00063 #define LD1_Pin GPIO_PIN_0
00064 #define LD1_GPIO_Port GPIOB
00065 #define LD3_Pin GPIO_PIN_14
00066 #define LD3_GPIO_Port GPIOB
00067 #define STLINK_RX_Pin GPIO_PIN_8
00068 #define STLINK_RX_GPIO_Port GPIOD
00069 #define STLINK_TX_Pin GPIO_PIN_9
00070 #define STLINK_TX_GPIO_Port GPIOD
00071 #define USB_OTG_FS_PWR_EN_Pin GPIO_PIN_10
00072 #define USB_OTG_FS_PWR_EN_GPIO_Port GPIOD
00073 #define PHASE_A_CS_Pin GPIO_PIN_14
00074 #define PHASE_A_CS_GPIO_Port GPIOD
00075 #define PHASE_B_CS_Pin GPIO_PIN_15
00076 #define PHASE_B_CS_GPIO_Port GPIOD
00077 #define USB_OTG_FS_OVCR_Pin GPIO_PIN_7
00078 #define USB_OTG_FS_OVCR_GPIO_Port GPIOG
00079 #define LD2_Pin GPIO_PIN_1
00080 #define LD2_GPIO_Port GPIOE
00081 /* USER CODE BEGIN Private defines */
00082 
00083 /* USER CODE END Private defines */
00084 
00085 #ifdef __cplusplus
00086 }
00087 #endif
00088 
00089 #endif /* __MAIN_H */
00090 
00091 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
00092