ugfx/drivers/gdisp/SSD1963/gdisp_lld_panel.h

54 lines
1.6 KiB
C
Raw Normal View History

2012-08-30 20:40:28 +00:00
/*
ChibiOS/GFX Copyright (C) 2012
2012-09-02 22:52:40 +00:00
Joel Bodenmann aka Tectu <joel@unormal.org>
2012-08-30 20:40:28 +00:00
This file is part of ChibiOS/GFX.
2012-08-30 20:40:28 +00:00
ChibiOS/GFX is free software; you can redistribute it and/or modify
2012-08-30 20:40:28 +00:00
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
ChibiOS/GFX is distributed in the hope that it will be useful,
2012-08-30 20:40:28 +00:00
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2012-08-31 18:09:22 +00:00
/**
* @file SSD1963/gdisp_lld_panel.h
* @brief TFT LCD panel properties.
*
* @addtogroup GDISP
* @{
*/
2012-08-30 20:40:28 +00:00
#ifndef _GDISP_LLD_PANEL_H
#define _GDISP_LLD_PANEL_H
/* LCD panel specs */
#define GDISP_SCREEN_WIDTH 480
#define GDISP_SCREEN_HEIGHT 272
2012-08-30 20:40:28 +00:00
#define SCREEN_FPS 60ULL
#define SCREEN_HSYNC_BACK_PORCH 2LL
#define SCREEN_HSYNC_FRONT_PORCH 2ULL
#define SCREEN_HSYNC_PULSE 41ULL
#define SCREEN_VSYNC_BACK_PORCH 2ULL
#define SCREEN_VSYNC_FRONT_PORCH 2ULL
#define SCREEN_VSYNC_PULSE 10ULL
#define SCREEN_HSYNC_PERIOD (SCREEN_HSYNC_PULSE + SCREEN_HSYNC_BACK_PORCH + GDISP_SCREEN_WIDTH + SCREEN_HSYNC_FRONT_PORCH)
#define SCREEN_VSYNC_PERIOD (SCREEN_VSYNC_PULSE + SCREEN_VSYNC_BACK_PORCH + GDISP_SCREEN_HEIGHT + SCREEN_VSYNC_FRONT_PORCH)
2012-08-30 20:40:28 +00:00
#define SCREEN_PCLK (SCREEN_HSYNC_PERIOD * SCREEN_VSYNC_PERIOD * SCREEN_FPS)
#define GDISP_FPR ((SCREEN_PCLK * 1048576)/100000000)
2012-08-30 20:40:28 +00:00
#endif
2012-09-02 22:52:40 +00:00
/** @} */