Use TouchGFX

This commit is contained in:
2023-03-06 21:21:00 +01:00
parent 2cadbff590
commit 8a2bdc347c
1214 changed files with 358250 additions and 87 deletions

View File

@ -21,14 +21,16 @@
/* Includes ------------------------------------------------------------------*/
#include "app_azure_rtos.h"
#include "graphics.h"
#include "main.h"
#include "app_touchgfx.h"
#include "stm32h7xx.h"
#include "tx_api.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "app.h"
#include "graphics.h"
#include "main.h"
#include "tx_api.h"
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
@ -164,6 +166,12 @@ VOID tx_application_define(VOID *first_unused_memory) {
TX_AUTO_START) != TX_SUCCESS) {
Error_Handler();
}
if (MX_TouchGFX_Init(mem) != TX_SUCCESS) {
Error_Handler();
}
// TODO: Use TOUCHGFX_BYTE_POOL_SIZE? This is only defined in app_touchgfx.c
mem += 4096;
/* USER CODE END DYNAMIC_MEM_ALLOC */
#endif
}