stm32h7 udp server with adc

Dependencies:   ADE7912

Committer:
yuliyasm
Date:
Wed Oct 28 15:35:16 2020 +0000
Revision:
5:0f04c6c72fc9
Parent:
2:fcb521c36965
new

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yuliyasm 2:fcb521c36965 1 /* USER CODE BEGIN Header */
yuliyasm 2:fcb521c36965 2 /**
yuliyasm 2:fcb521c36965 3 ******************************************************************************
yuliyasm 2:fcb521c36965 4 * @file : main.h
yuliyasm 2:fcb521c36965 5 * @brief : Header for main.c file.
yuliyasm 2:fcb521c36965 6 * This file contains the common defines of the application.
yuliyasm 2:fcb521c36965 7 ******************************************************************************
yuliyasm 2:fcb521c36965 8 * @attention
yuliyasm 2:fcb521c36965 9 *
yuliyasm 2:fcb521c36965 10 * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
yuliyasm 2:fcb521c36965 11 * All rights reserved.</center></h2>
yuliyasm 2:fcb521c36965 12 *
yuliyasm 5:0f04c6c72fc9 13 * This software component is licensed by ST under BSD 3-Clause license,
yuliyasm 5:0f04c6c72fc9 14 * the "License"; You may not use this file except in compliance with the
yuliyasm 5:0f04c6c72fc9 15 * License. You may obtain a copy of the License at:
yuliyasm 5:0f04c6c72fc9 16 * opensource.org/licenses/BSD-3-Clause
yuliyasm 2:fcb521c36965 17 *
yuliyasm 2:fcb521c36965 18 ******************************************************************************
yuliyasm 2:fcb521c36965 19 */
yuliyasm 2:fcb521c36965 20 /* USER CODE END Header */
yuliyasm 2:fcb521c36965 21
yuliyasm 2:fcb521c36965 22 /* Define to prevent recursive inclusion -------------------------------------*/
yuliyasm 2:fcb521c36965 23 #ifndef __MAIN_H
yuliyasm 2:fcb521c36965 24 #define __MAIN_H
yuliyasm 2:fcb521c36965 25
yuliyasm 2:fcb521c36965 26 #ifdef __cplusplus
yuliyasm 2:fcb521c36965 27 extern "C" {
yuliyasm 2:fcb521c36965 28 #endif
yuliyasm 2:fcb521c36965 29
yuliyasm 2:fcb521c36965 30 /* Includes ------------------------------------------------------------------*/
yuliyasm 2:fcb521c36965 31 #include "stm32h7xx_hal.h"
yuliyasm 2:fcb521c36965 32
yuliyasm 2:fcb521c36965 33 /* Private includes ----------------------------------------------------------*/
yuliyasm 2:fcb521c36965 34 /* USER CODE BEGIN Includes */
yuliyasm 2:fcb521c36965 35
yuliyasm 2:fcb521c36965 36 /* USER CODE END Includes */
yuliyasm 2:fcb521c36965 37
yuliyasm 2:fcb521c36965 38 /* Exported types ------------------------------------------------------------*/
yuliyasm 2:fcb521c36965 39 /* USER CODE BEGIN ET */
yuliyasm 2:fcb521c36965 40
yuliyasm 2:fcb521c36965 41 /* USER CODE END ET */
yuliyasm 2:fcb521c36965 42
yuliyasm 2:fcb521c36965 43 /* Exported constants --------------------------------------------------------*/
yuliyasm 2:fcb521c36965 44 /* USER CODE BEGIN EC */
yuliyasm 2:fcb521c36965 45
yuliyasm 2:fcb521c36965 46 /* USER CODE END EC */
yuliyasm 2:fcb521c36965 47
yuliyasm 2:fcb521c36965 48 /* Exported macro ------------------------------------------------------------*/
yuliyasm 2:fcb521c36965 49 /* USER CODE BEGIN EM */
yuliyasm 2:fcb521c36965 50
yuliyasm 2:fcb521c36965 51 /* USER CODE END EM */
yuliyasm 2:fcb521c36965 52
yuliyasm 2:fcb521c36965 53 /* Exported functions prototypes ---------------------------------------------*/
yuliyasm 5:0f04c6c72fc9 54 //void Error_Handler();
yuliyasm 2:fcb521c36965 55
yuliyasm 2:fcb521c36965 56 /* USER CODE BEGIN EFP */
yuliyasm 5:0f04c6c72fc9 57
yuliyasm 2:fcb521c36965 58 /* USER CODE END EFP */
yuliyasm 2:fcb521c36965 59
yuliyasm 2:fcb521c36965 60 /* Private defines -----------------------------------------------------------*/
yuliyasm 5:0f04c6c72fc9 61 #define B1_Pin GPIO_PIN_13
yuliyasm 5:0f04c6c72fc9 62 #define B1_GPIO_Port GPIOC
yuliyasm 5:0f04c6c72fc9 63 #define LD1_Pin GPIO_PIN_0
yuliyasm 5:0f04c6c72fc9 64 #define LD1_GPIO_Port GPIOB
yuliyasm 5:0f04c6c72fc9 65 #define LD3_Pin GPIO_PIN_14
yuliyasm 5:0f04c6c72fc9 66 #define LD3_GPIO_Port GPIOB
yuliyasm 5:0f04c6c72fc9 67 #define STLINK_RX_Pin GPIO_PIN_8
yuliyasm 5:0f04c6c72fc9 68 #define STLINK_RX_GPIO_Port GPIOD
yuliyasm 5:0f04c6c72fc9 69 #define STLINK_TX_Pin GPIO_PIN_9
yuliyasm 5:0f04c6c72fc9 70 #define STLINK_TX_GPIO_Port GPIOD
yuliyasm 5:0f04c6c72fc9 71 #define USB_OTG_FS_PWR_EN_Pin GPIO_PIN_10
yuliyasm 5:0f04c6c72fc9 72 #define USB_OTG_FS_PWR_EN_GPIO_Port GPIOD
yuliyasm 5:0f04c6c72fc9 73 #define PHASE_A_CS_Pin GPIO_PIN_14
yuliyasm 5:0f04c6c72fc9 74 #define PHASE_A_CS_GPIO_Port GPIOD
yuliyasm 5:0f04c6c72fc9 75 #define PHASE_B_CS_Pin GPIO_PIN_15
yuliyasm 5:0f04c6c72fc9 76 #define PHASE_B_CS_GPIO_Port GPIOD
yuliyasm 5:0f04c6c72fc9 77 #define USB_OTG_FS_OVCR_Pin GPIO_PIN_7
yuliyasm 5:0f04c6c72fc9 78 #define USB_OTG_FS_OVCR_GPIO_Port GPIOG
yuliyasm 5:0f04c6c72fc9 79 #define LD2_Pin GPIO_PIN_1
yuliyasm 5:0f04c6c72fc9 80 #define LD2_GPIO_Port GPIOE
yuliyasm 2:fcb521c36965 81 /* USER CODE BEGIN Private defines */
yuliyasm 2:fcb521c36965 82
yuliyasm 2:fcb521c36965 83 /* USER CODE END Private defines */
yuliyasm 2:fcb521c36965 84
yuliyasm 2:fcb521c36965 85 #ifdef __cplusplus
yuliyasm 2:fcb521c36965 86 }
yuliyasm 2:fcb521c36965 87 #endif
yuliyasm 2:fcb521c36965 88
yuliyasm 2:fcb521c36965 89 #endif /* __MAIN_H */
yuliyasm 2:fcb521c36965 90
yuliyasm 2:fcb521c36965 91 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
yuliyasm 2:fcb521c36965 92