F439_CPP_SPI_RA8875_TFT_LCD_04
1.0
STM32F439 SPI RA8875 7-inch TFT display with FRAM-backed touch calibration, built on the STM32_GFX, STM32_RA8875 and STM32_MB85RS64V libraries
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
26
extern
"C"
{
27
#endif
28
29
/* Includes ------------------------------------------------------------------*/
30
#include "stm32f4xx_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 MB85RS64_CS_Pin GPIO_PIN_10
60
#define MB85RS64_CS_GPIO_Port GPIOB
61
#define LCD_RESET_Pin GPIO_PIN_7
62
#define LCD_RESET_GPIO_Port GPIOC
63
#define RA8875_CS_Pin GPIO_PIN_6
64
#define RA8875_CS_GPIO_Port GPIOB
65
66
/* USER CODE BEGIN Private defines */
67
68
void
_Error_Handler(
const
char
*file,
int
line);
69
70
#define Error_Handler() _Error_Handler((const char *)__FILE__, __LINE__)
71
#define REDIRECT_PRINTF
72
73
/* Touch calibration mode: uncomment to build and run it (it always recalibrates and overwrites the FRAM).
74
* Left commented out, none of that code is built and the program runs normally. */
75
/* #define TOUCH_CALIBRATION_ENABLE */
76
77
/* USER CODE END Private defines */
78
79
#ifdef __cplusplus
80
}
81
#endif
82
83
#endif
/* __MAIN_H */
Core
Inc
main.h
Generated by
1.10.0