GFX Develop Branch
This commit is contained in:
@ -2,13 +2,13 @@
|
||||
******************************************************************************
|
||||
* File Name : app_touchgfx.c
|
||||
******************************************************************************
|
||||
* This file was created by TouchGFX Generator 4.22.0. This file is only
|
||||
* This file was created by TouchGFX Generator 4.23.2. This file is only
|
||||
* generated once! Delete this file from your project and re-generate code
|
||||
* using STM32CubeMX or change this file manually to update it.
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* Copyright (c) 2023 STMicroelectronics.
|
||||
* Copyright (c) 2024 STMicroelectronics.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This software is licensed under terms that can be found in the LICENSE file
|
||||
@ -32,11 +32,7 @@
|
||||
#define TOUCHGFX_BYTE_POOL_SIZE (4096)
|
||||
|
||||
/* USER CODE BEGIN PD */
|
||||
// Redefine here so it doesn't get overwritten on code generation
|
||||
#undef TOUCHGFX_STACK_SIZE
|
||||
#define TOUCHGFX_STACK_SIZE (8160)
|
||||
#undef TOUCHGFX_BYTE_POOL_SIZE
|
||||
#define TOUCHGFX_BYTE_POOL_SIZE (8192)
|
||||
|
||||
/* USER CODE END PD */
|
||||
|
||||
/* Private macro -------------------------------------------------------------*/
|
||||
@ -66,43 +62,43 @@ void touchgfx_taskEntry(void);
|
||||
*/
|
||||
void MX_TouchGFX_PreOSInit(void)
|
||||
{
|
||||
// Calling forward to touchgfx_init in C++ domain
|
||||
touchgfx_components_init();
|
||||
touchgfx_init();
|
||||
// Calling forward to touchgfx_init in C++ domain
|
||||
touchgfx_components_init();
|
||||
touchgfx_init();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create TouchGFX Thread
|
||||
*/
|
||||
UINT MX_TouchGFX_Init(VOID *memory_ptr)
|
||||
UINT MX_TouchGFX_Init(VOID* memory_ptr)
|
||||
{
|
||||
UINT ret = TX_SUCCESS;
|
||||
CHAR *pointer = 0;
|
||||
UINT ret = TX_SUCCESS;
|
||||
CHAR* pointer = 0;
|
||||
|
||||
/* Create a byte memory pool from which to allocate the thread stacks. */
|
||||
if (tx_byte_pool_create(&TouchGFXBytePool, (char *)"Byte Pool", memory_ptr,
|
||||
TOUCHGFX_BYTE_POOL_SIZE) != TX_SUCCESS)
|
||||
{
|
||||
ret = TX_POOL_ERROR;
|
||||
}
|
||||
/* Create a byte memory pool from which to allocate the thread stacks. */
|
||||
if (tx_byte_pool_create(&TouchGFXBytePool, (char*)"Byte Pool", memory_ptr,
|
||||
TOUCHGFX_BYTE_POOL_SIZE) != TX_SUCCESS)
|
||||
{
|
||||
ret = TX_POOL_ERROR;
|
||||
}
|
||||
|
||||
/* Allocate the stack for TouchGFX Thread. */
|
||||
else if (tx_byte_allocate(&TouchGFXBytePool, (VOID **) &pointer,
|
||||
TOUCHGFX_STACK_SIZE, TX_NO_WAIT) != TX_SUCCESS)
|
||||
{
|
||||
ret = TX_POOL_ERROR;
|
||||
}
|
||||
/* Allocate the stack for TouchGFX Thread. */
|
||||
else if (tx_byte_allocate(&TouchGFXBytePool, (VOID**) &pointer,
|
||||
TOUCHGFX_STACK_SIZE, TX_NO_WAIT) != TX_SUCCESS)
|
||||
{
|
||||
ret = TX_POOL_ERROR;
|
||||
}
|
||||
|
||||
/* Create TouchGFX Thread */
|
||||
else if (tx_thread_create(&TouchGFXThread, (CHAR *)"TouchGFX", TouchGFX_Task, 0,
|
||||
pointer, TOUCHGFX_STACK_SIZE,
|
||||
5, 5,
|
||||
TX_NO_TIME_SLICE, TX_AUTO_START) != TX_SUCCESS)
|
||||
{
|
||||
ret = TX_THREAD_ERROR;
|
||||
}
|
||||
/* Create TouchGFX Thread */
|
||||
else if (tx_thread_create(&TouchGFXThread, (CHAR*)"TouchGFX", TouchGFX_Task, 0,
|
||||
pointer, TOUCHGFX_STACK_SIZE,
|
||||
5, 5,
|
||||
TX_NO_TIME_SLICE, TX_AUTO_START) != TX_SUCCESS)
|
||||
{
|
||||
ret = TX_THREAD_ERROR;
|
||||
}
|
||||
|
||||
return ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -110,8 +106,8 @@ UINT MX_TouchGFX_Init(VOID *memory_ptr)
|
||||
*/
|
||||
void MX_TouchGFX_Process(void)
|
||||
{
|
||||
// Calling forward to touchgfx_taskEntry in C++ domain
|
||||
touchgfx_taskEntry();
|
||||
// Calling forward to touchgfx_taskEntry in C++ domain
|
||||
touchgfx_taskEntry();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -119,8 +115,8 @@ void MX_TouchGFX_Process(void)
|
||||
*/
|
||||
void TouchGFX_Task(unsigned long thread_input)
|
||||
{
|
||||
// Calling forward to touchgfx_taskEntry in C++ domain
|
||||
touchgfx_taskEntry();
|
||||
// Calling forward to touchgfx_taskEntry in C++ domain
|
||||
touchgfx_taskEntry();
|
||||
}
|
||||
|
||||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
||||
|
||||
Reference in New Issue
Block a user