GFX Develop Branch

This commit is contained in:
2024-06-11 19:38:14 +02:00
parent e23389a0b9
commit b0ef96e390
647 changed files with 10174 additions and 6435 deletions

View File

@ -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****/

View File

@ -2,13 +2,13 @@
******************************************************************************
* File Name : app_touchgfx.h
******************************************************************************
* 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
@ -22,7 +22,7 @@
#ifndef APP_TOUCHGFX_H
#define APP_TOUCHGFX_H
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
@ -44,7 +44,7 @@
/* Exported functions prototypes ---------------------------------------------*/
void MX_TouchGFX_PreOSInit(void);
UINT MX_TouchGFX_Init(VOID *memory_ptr);
UINT MX_TouchGFX_Init(VOID* memory_ptr);
void MX_TouchGFX_Process(void);
void TouchGFX_Task(unsigned long thread_input);