stm32h7 udp server with adc

Dependencies:   ADE7912

Committer:
yuliyasm
Date:
Tue Oct 27 12:13:27 2020 +0000
Revision:
2:fcb521c36965
Child:
5:0f04c6c72fc9
bug

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 2:fcb521c36965 13 * This software component is licensed by ST under Ultimate Liberty license
yuliyasm 2:fcb521c36965 14 * SLA0044, the "License"; You may not use this file except in compliance with
yuliyasm 2:fcb521c36965 15 * the License. You may obtain a copy of the License at:
yuliyasm 2:fcb521c36965 16 * www.st.com/SLA0044
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 2:fcb521c36965 54 void Error_Handler(void);
yuliyasm 2:fcb521c36965 55
yuliyasm 2:fcb521c36965 56 /* USER CODE BEGIN EFP */
yuliyasm 2:fcb521c36965 57 //extern UART_HandleTypeDef huart3;
yuliyasm 2:fcb521c36965 58 //extern SPI_HandleTypeDef hspi1;
yuliyasm 2:fcb521c36965 59 /* USER CODE END EFP */
yuliyasm 2:fcb521c36965 60
yuliyasm 2:fcb521c36965 61 /* Private defines -----------------------------------------------------------*/
yuliyasm 2:fcb521c36965 62 #define G_LED_Pin GPIO_PIN_0
yuliyasm 2:fcb521c36965 63 #define G_LED_GPIO_Port GPIOB
yuliyasm 2:fcb521c36965 64 #define R_LED_Pin GPIO_PIN_14
yuliyasm 2:fcb521c36965 65 #define R_LED_GPIO_Port GPIOB
yuliyasm 2:fcb521c36965 66 #define SPI1_CS_Pin GPIO_PIN_14
yuliyasm 2:fcb521c36965 67 #define SPI1_CS_GPIO_Port GPIOD
yuliyasm 2:fcb521c36965 68 #define DReady_Pin GPIO_PIN_15
yuliyasm 2:fcb521c36965 69 #define DReady_GPIO_Port GPIOD
yuliyasm 2:fcb521c36965 70 #define DReady_EXTI_IRQn EXTI15_10_IRQn
yuliyasm 2:fcb521c36965 71 #define Y_LED_Pin GPIO_PIN_1
yuliyasm 2:fcb521c36965 72 #define Y_LED_GPIO_Port GPIOE
yuliyasm 2:fcb521c36965 73 /* USER CODE BEGIN Private defines */
yuliyasm 2:fcb521c36965 74
yuliyasm 2:fcb521c36965 75 /* USER CODE END Private defines */
yuliyasm 2:fcb521c36965 76
yuliyasm 2:fcb521c36965 77 #ifdef __cplusplus
yuliyasm 2:fcb521c36965 78 }
yuliyasm 2:fcb521c36965 79 #endif
yuliyasm 2:fcb521c36965 80
yuliyasm 2:fcb521c36965 81 #endif /* __MAIN_H */
yuliyasm 2:fcb521c36965 82
yuliyasm 2:fcb521c36965 83 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
yuliyasm 2:fcb521c36965 84