sGUI  V1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
Configuration
+ Collaboration diagram for Configuration:

Files

file  lcd_conf_template.h
 Simple graphic library configuration.
 

Macros

#define TFT320x240
 
#define TFT_FPS   50ULL
 
#define TFT_WIDTH   320ULL
 
#define TFT_HSYNC_BACK_PORCH   40ULL
 
#define TFT_HSYNC_FRONT_PORCH   20ULL
 
#define TFT_HSYNC_PULSE   28ULL
 
#define TFT_HEIGHT   240ULL
 
#define TFT_VSYNC_BACK_PORCH   17ULL
 
#define TFT_VSYNC_FRONT_PORCH   4ULL
 
#define TFT_VSYNC_PULSE   3ULL
 
#define TFT_HSYNC_PERIOD
 
#define TFT_VSYNC_PERIOD
 
#define TFT_PCLK
 
#define LCD_FPR   ((TFT_PCLK * 1048576)/100000000)
 
#define WR_HIGH_BYTE(x)   (x >> 8)
 
#define WR_LOW_BYTE(x)   (x & 0xFF)
 
#define USE_16BIT_PMP
 
#define LCD_HOR_RESOLUTION   320ULL
 
#define LCD_VER_RESOLUTION   240ULL
 
#define LCD_HOR_PULSE_WIDTH   64ULL /* 64 */
 
#define LCD_HOR_BACK_PORCH   96ULL /* 96 */
 
#define LCD_HOR_FRONT_PORCH   48ULL /* 48 */
 
#define LCD_VER_PULSE_WIDTH   2ULL /* 2 */
 
#define LCD_VER_BACK_PORCH   34ULL /* 34 */
 
#define LCD_VER_FRONT_PORCH   11ULL /* 11 */
 
#define HT   (LCD_HOR_RESOLUTION + LCD_HOR_PULSE_WIDTH + LCD_HOR_BACK_PORCH + LCD_HOR_FRONT_PORCH)
 
#define HPS   (LCD_HOR_PULSE_WIDTH + LCD_HOR_BACK_PORCH)
 
#define VT   (LCD_VER_PULSE_WIDTH + LCD_VER_BACK_PORCH + LCD_VER_FRONT_PORCH + LCD_VER_RESOLUTION)
 
#define VSP   (LCD_VER_PULSE_WIDTH + LCD_VER_BACK_PORCH)
 
#define X_BYTES   40
 
#define Y_BYTES   30
 
#define SCRN_LEFT   0
 
#define SCRN_TOP   0
 
#define SCRN_RIGHT   LCD_HOR_RESOLUTION-1
 
#define SCRN_BOTTOM   LCD_VER_RESOLUTION-1
 
#define CCW   -1
 
#define CW   1
 
#define DOTS_PER_CM_X   64
 
#define DOTS_PER_CM_Y   60
 
#define INCR   1
 
#define DECR   -1
 
#define PREDX   1
 
#define PREDY   0
 
#define COEFF_PIXELS_MM   1.5
 

Detailed Description

Macro Definition Documentation

#define COEFF_PIXELS_MM   1.5

1.5 pixels for 1 mm when width[mm] = 2.0mm then width[pixels] = 2*1.5 = 3 pixels

Definition at line 211 of file lcd_conf_template.h.

#define HT   (LCD_HOR_RESOLUTION + LCD_HOR_PULSE_WIDTH + LCD_HOR_BACK_PORCH + LCD_HOR_FRONT_PORCH)

Define horizontal timing HT - horizontal period HPS - hsync width + front porch HPW - horizontal sync pulse width LPS - horizontal sync pulse location

Definition at line 175 of file lcd_conf_template.h.

#define LCD_HOR_PULSE_WIDTH   64ULL /* 64 */

Overview: Horizontal synchronization timing in pixels (from the glass datasheet).

Definition at line 156 of file lcd_conf_template.h.

#define LCD_HOR_RESOLUTION   320ULL

Overview: Horizontal and vertical display resolution (from the glass datasheet).

Definition at line 149 of file lcd_conf_template.h.

#define LCD_VER_PULSE_WIDTH   2ULL /* 2 */

Overview: Vertical synchronization timing in lines (from the glass datasheet).

Definition at line 164 of file lcd_conf_template.h.

#define TFT_HSYNC_PERIOD
Value:
(TFT_HSYNC_PULSE + TFT_HSYNC_BACK_PORCH + \
TFT_WIDTH + TFT_HSYNC_FRONT_PORCH)

Definition at line 132 of file lcd_conf_template.h.

#define TFT_PCLK
Value:
(TFT_HSYNC_PERIOD * TFT_VSYNC_PERIOD * \
TFT_FPS)

Definition at line 136 of file lcd_conf_template.h.

#define TFT_VSYNC_PERIOD
Value:
(TFT_VSYNC_PULSE + TFT_VSYNC_BACK_PORCH + \
TFT_HEIGHT + TFT_VSYNC_FRONT_PORCH)

Definition at line 134 of file lcd_conf_template.h.

#define VT   (LCD_VER_PULSE_WIDTH + LCD_VER_BACK_PORCH + LCD_VER_FRONT_PORCH + LCD_VER_RESOLUTION)

Define vertical timing VT - vertical period VPS - vsync width + front porch VPW - vertical sync pulse width FPS - vertical sync pulse location

Definition at line 185 of file lcd_conf_template.h.