mirror of
https://github.com/azure-rtos/guix.git
synced 2025-01-28 07:03:11 +08:00
354445beac
8c96f6775 Update release version and date for 6.3.0 minor release. dc8ff31a6 Added partial canvas buffer support for 565rgb color format. 09becae29 Fixed a pattern line draw bug. 8c1e619c2 Remove font page count limitation for standalone binary resource. 34a028615 Drop-list not correctly drawing child widgets. 180ddf8c9 Added VC++ runtime dependency. 57181a765 Fixed GUIX Studio command line to support the opening of a GXP project by specifying the project's pathname. 33c984599 Fixed GUIX Studio test failures. 079b75e09 Improved some error checkings. f166c7633 Improved the performance of the Helium version 24xrgb JPEG decoding. 8ba85ed38 Support standalone binary resource generation and loading. f0b95a87a Re-generate the FreeType library with the Z_PREFIX configuration. ab7e1299a Bump GUIX Studio version to 6.2.1.4. f0a659115 Improved logic to mitigate test failure caused by low-performance test machine. e8100dc1c Fixed crash when delete a color or pixelmap folder with page heap enabled. 9fb6d5d94 Fixed MSRC 81023 bug caused by glyph width casting overflow. ff1ad8aff Fixed potential crash issue with the expand/collapse animation in the accordion menu. 93483ff72 Specify package pipeline triggers to avoid being triggered on everything. 6eea10524 Add pipeline to run codeql. b9c83924e Updated GUIX Studio version and readme for 6.2.1.3 release. b7443814c Enable codeql in onebranch pipeline 5442979ba Bump GUIX Studio version number to 6.2.1.3.
149 lines
7.2 KiB
C
149 lines
7.2 KiB
C
/**************************************************************************/
|
|
/* */
|
|
/* Copyright (c) Microsoft Corporation. All rights reserved. */
|
|
/* */
|
|
/* This software is licensed under the Microsoft Software License */
|
|
/* Terms for Microsoft Azure RTOS. Full text of the license can be */
|
|
/* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
|
|
/* and in the root directory of this software. */
|
|
/* */
|
|
/**************************************************************************/
|
|
|
|
|
|
/**************************************************************************/
|
|
/**************************************************************************/
|
|
/** */
|
|
/** GUIX Component */
|
|
/** */
|
|
/** Port Specific */
|
|
/** */
|
|
/**************************************************************************/
|
|
/**************************************************************************/
|
|
/**************************************************************************/
|
|
/* */
|
|
/* APPLICATION INTERFACE DEFINITION RELEASE */
|
|
/* */
|
|
/* gx_port.h ARM9/GNU */
|
|
/* 6.1.8 */
|
|
/* AUTHOR */
|
|
/* */
|
|
/* Kenneth Maxwell, Microsoft Corporation */
|
|
/* */
|
|
/* DESCRIPTION */
|
|
/* */
|
|
/* This file contains data type definitions and constants specific */
|
|
/* to the implementation of high-performance GUIX UI framework. */
|
|
/* */
|
|
/* RELEASE HISTORY */
|
|
/* */
|
|
/* DATE NAME DESCRIPTION */
|
|
/* */
|
|
/* 09-30-2020 Kenneth Maxwell Initial Version 6.1 */
|
|
/* 04-02-2021 Kenneth Maxwell Modified comment(s), */
|
|
/* resulting in version 6.1.6 */
|
|
/* 08-02-2021 Kenneth Maxwell Modified comment(s), removed */
|
|
/* GX_SYSTEM_TIMER_TICKS and */
|
|
/* GX_TICKS_SECOND definitions,*/
|
|
/* resulting in version 6.1.8 */
|
|
/* */
|
|
/**************************************************************************/
|
|
|
|
#ifndef GX_PORT_H
|
|
#define GX_PORT_H
|
|
|
|
/* Determine if the optional GUIX user define file should be used. */
|
|
|
|
#ifdef GX_INCLUDE_USER_DEFINE_FILE
|
|
|
|
/* Include the user defines in gx_user.h. The defines in this file may
|
|
alternately be defined on the command line. */
|
|
|
|
#include "gx_user.h"
|
|
#endif
|
|
|
|
typedef INT GX_BOOL;
|
|
|
|
typedef SHORT GX_VALUE;
|
|
|
|
#define GX_VALUE_MAX 0x7FFF
|
|
|
|
|
|
/* Define the basic system parameters. */
|
|
|
|
#ifndef GX_THREAD_STACK_SIZE
|
|
#define GX_THREAD_STACK_SIZE 4096
|
|
#endif
|
|
|
|
#define GX_CONST const
|
|
|
|
#define GX_INCLUDE_DEFAULT_COLORS
|
|
|
|
#define GX_MAX_ACTIVE_TIMERS 32
|
|
|
|
#define GX_MAX_VIEWS 32
|
|
|
|
#define GX_MAX_DISPLAY_HEIGHT 800
|
|
|
|
|
|
/* Define several macros for the error checking shell in GUIX. */
|
|
|
|
#ifndef TX_TIMER_PROCESS_IN_ISR
|
|
|
|
#define GX_CALLER_CHECKING_EXTERNS extern TX_THREAD *_tx_thread_current_ptr; \
|
|
extern TX_THREAD _tx_timer_thread; \
|
|
extern volatile ULONG _tx_thread_system_state;
|
|
|
|
#define GX_THREADS_ONLY_CALLER_CHECKING if ((_tx_thread_system_state) || \
|
|
(_tx_thread_current_ptr == TX_NULL) || \
|
|
(_tx_thread_current_ptr == &_tx_timer_thread)) \
|
|
return(GX_CALLER_ERROR);
|
|
|
|
#define GX_INIT_AND_THREADS_CALLER_CHECKING if (((_tx_thread_system_state) && (_tx_thread_system_state < ((ULONG) 0xF0F0F0F0))) || \
|
|
(_tx_thread_current_ptr == &_tx_timer_thread)) \
|
|
return(GX_CALLER_ERROR);
|
|
|
|
|
|
#define GX_NOT_ISR_CALLER_CHECKING if ((_tx_thread_system_state) && (_tx_thread_system_state < ((ULONG) 0xF0F0F0F0))) \
|
|
return(GX_CALLER_ERROR);
|
|
|
|
#define GX_THREAD_WAIT_CALLER_CHECKING if ((wait_option) && \
|
|
((_tx_thread_current_ptr == NX_NULL) || (_tx_thread_system_state) || (_tx_thread_current_ptr == &_tx_timer_thread))) \
|
|
return(GX_CALLER_ERROR);
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define GX_CALLER_CHECKING_EXTERNS extern TX_THREAD *_tx_thread_current_ptr; \
|
|
extern volatile ULONG _tx_thread_system_state;
|
|
|
|
#define GX_THREADS_ONLY_CALLER_CHECKING if ((_tx_thread_system_state) || \
|
|
(_tx_thread_current_ptr == TX_NULL)) \
|
|
return(GX_CALLER_ERROR);
|
|
|
|
#define GX_INIT_AND_THREADS_CALLER_CHECKING if (((_tx_thread_system_state) && (_tx_thread_system_state < ((ULONG) 0xF0F0F0F0)))) \
|
|
return(GX_CALLER_ERROR);
|
|
|
|
#define GX_NOT_ISR_CALLER_CHECKING if ((_tx_thread_system_state) && (_tx_thread_system_state < ((ULONG) 0xF0F0F0F0))) \
|
|
return(GX_CALLER_ERROR);
|
|
|
|
#define GX_THREAD_WAIT_CALLER_CHECKING if ((wait_option) && \
|
|
((_tx_thread_current_ptr == NX_NULL) || (_tx_thread_system_state))) \
|
|
return(GX_CALLER_ERROR);
|
|
|
|
#endif
|
|
|
|
|
|
/* Define the version ID of GUIX. This may be utilized by the application. */
|
|
|
|
#ifdef GX_SYSTEM_INIT
|
|
CHAR _gx_version_id[] =
|
|
"Copyright (c) Microsoft Corporation. All rights reserved. * GUIX ARM9/GNU Version 6.3.0 *";
|
|
#else
|
|
extern CHAR _gx_version_id[];
|
|
#endif
|
|
|
|
#endif
|
|
|