H753_CPP_SPI_Resistive_Touch_Screen_Controller 1.0
STM32H753 SPI resistive touchscreen (Adafruit 333 overlay + 5767 TSC2046 controller) driver and tutorial
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 LED01_Pin GPIO_PIN_11
60#define LED01_GPIO_Port GPIOF
61#define Buzzer_Pin GPIO_PIN_5
62#define Buzzer_GPIO_Port GPIOG
63#define LED03_Pin GPIO_PIN_8
64#define LED03_GPIO_Port GPIOG
65#define TSC2046_IRQ_Pin GPIO_PIN_7
66#define TSC2046_IRQ_GPIO_Port GPIOC
67#define TSC2046_BUSY_Pin GPIO_PIN_8
68#define TSC2046_BUSY_GPIO_Port GPIOA
69#define TSC2046_CS_Pin GPIO_PIN_6
70#define TSC2046_CS_GPIO_Port GPIOB
71#define LED02_Pin GPIO_PIN_0
72#define LED02_GPIO_Port GPIOE
73
74/* USER CODE BEGIN Private defines */
75
76void _Error_Handler(const char *file, int line);
77
78#define Error_Handler() _Error_Handler((const char *)__FILE__, __LINE__)
79#define REDIRECT_PRINTF
80
82#define TOUCH_SELFTEST_ENABLE
83
84/* USER CODE END Private defines */
85
86#ifdef __cplusplus
87}
88#endif
89
90#endif /* __MAIN_H */