2021-10-01 00:21:50 +08:00

74 lines
2.0 KiB
C

/*
* Copyright (c) 2009-2021 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef __TOP_APP_CFG_H__
#define __TOP_APP_CFG_H__
/*============================ INCLUDES ======================================*/
#include <assert.h>
#if !defined(__GNUC__)
# error This demo requires GNU extensions
#endif
/*============================ MACROS ========================================*/
#ifndef ITERATION_CNT
# define ITERATION_CNT 1000
#endif
/*============================ MACROFIED FUNCTIONS ===========================*/
#define ASSERT(...) assert(__VA_ARGS__)
/*! \note FPB Size
*! 8 * 8 128B
*! 16 * 16 512B
*! 48 * 8 768B
*! 20 * 20 800B
*! 24 * 24 1152B
*! 32 * 32 2K
*! 480 * 1 960B
*! 480 * 2 1920B
*! 480 * 4 3840B
*! 480 * 8 7680B
*/
//#define PFB_BLOCK_WIDTH 120
//#define PFB_BLOCK_HEIGHT 120
#define PFB_BLOCK_WIDTH GLCD_WIDTH
#define PFB_BLOCK_HEIGHT 20
#define BUSY_WHEEL_SPIN_SPEED 100
#ifndef APP_SCREEN_WIDTH
# define APP_SCREEN_WIDTH GLCD_WIDTH
#endif
#ifndef APP_SCREEN_HEIGHT
# define APP_SCREEN_HEIGHT GLCD_HEIGHT
#endif
/*============================ TYPES =========================================*/
/*============================ GLOBAL VARIABLES ==============================*/
/*============================ PROTOTYPES ====================================*/
#endif