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
entryPointCPP.hpp
Go to the documentation of this file.
1
15#ifndef INC_ENTRYPOINTCPP_HPP_
16#define INC_ENTRYPOINTCPP_HPP_
17
18
19#include "main.h"
20#include <stdbool.h>
21
22// Define all C function calls that will be called from main.c in the following extern "C" group
23// Using extern "C" stops name mangling and allows "C" code to call C++ code
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29void initTest(SPI_HandleTypeDef *halSPI);
30
31void testLCD(bool buildTest);
32
33void initFRAM(SPI_HandleTypeDef *halSPI);
34
35void testFRAM(void);
36
37bool initTouchCalibration(void);
38
39#ifdef TOUCH_CALIBRATION_ENABLE
69void testTouch(UART_HandleTypeDef *huart);
70#endif /* TOUCH_CALIBRATION_ENABLE */
71
72#ifdef __cplusplus
73}
74#endif
75
76
77#endif /* INC_ENTRYPOINTCPP_HPP_ */
bool initTouchCalibration(void)
Reads the touch calibration stored in the FRAM and reports it on the redirected USART.
void testFRAM(void)
Shows that the FRAM keeps its data, then does a write and read-back test.
void testLCD(bool buildTest)
Runs one of the two display demonstrations.
void initTest(SPI_HandleTypeDef *halSPI)
Creates the display object and starts the RA8875 controller.
void initFRAM(SPI_HandleTypeDef *halSPI)
Creates the FRAM driver object and checks that the chip answers.
void testTouch(UART_HandleTypeDef *huart)
Enables touch, runs the three-point calibration and shows the result.
: Header for main.c file. This file contains the common defines of the application.