H753_CPP_SPI_BT817_EVE_01 1.0
STM32H753 drives a Bridgetek BT817 (ME817EV + DP-0701-01A) over SPI: a chip-ID start-up check, then Bridgetek's simple demo through the STM32_Bridgetek_EVE_API library
Loading...
Searching...
No Matches
main.h
Go to the documentation of this file.
1/* USER CODE BEGIN Header */
19/* USER CODE END Header */
20
21/* Define to prevent recursive inclusion -------------------------------------*/
22#ifndef __MAIN_H
23#define __MAIN_H
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/* Includes ------------------------------------------------------------------*/
30#include "stm32h7xx_hal.h"
31
32/* Private includes ----------------------------------------------------------*/
33/* USER CODE BEGIN Includes */
34
35/* USER CODE END Includes */
36
37/* Exported types ------------------------------------------------------------*/
38/* USER CODE BEGIN ET */
39
40/* USER CODE END ET */
41
42/* Exported constants --------------------------------------------------------*/
43/* USER CODE BEGIN EC */
44
45/* USER CODE END EC */
46
47/* Exported macro ------------------------------------------------------------*/
48/* USER CODE BEGIN EM */
49
50/* USER CODE END EM */
51
52/* Exported functions prototypes ---------------------------------------------*/
53
54/* USER CODE BEGIN EFP */
55
56/* USER CODE END EFP */
57
58/* Private defines -----------------------------------------------------------*/
59#define EVE_INT_Pin GPIO_PIN_3
60#define EVE_INT_GPIO_Port GPIOF
61#define EVE_INT_EXTI_IRQn EXTI3_IRQn
62#define STLINK_RX_Pin GPIO_PIN_8
63#define STLINK_RX_GPIO_Port GPIOD
64#define STLINK_TX_Pin GPIO_PIN_9
65#define STLINK_TX_GPIO_Port GPIOD
66#define EVE_PD__Pin GPIO_PIN_15
67#define EVE_PD__GPIO_Port GPIOD
68#define EVE_CS__Pin GPIO_PIN_6
69#define EVE_CS__GPIO_Port GPIOB
70
71/* USER CODE BEGIN Private defines */
72
73void _Error_Handler(const char *file, int line);
74
75#define Error_Handler() _Error_Handler((const char *)__FILE__, __LINE__)
76#define REDIRECT_PRINTF
77
78/* USER CODE END Private defines */
79
80#ifdef __cplusplus
81}
82#endif
83
84#endif /* __MAIN_H */