Choco OS  V.0.16.9.0
Join to the chocolate world
oc_screens_cfg.c
1 
27 #include <oc_screen.h>
28 #include <oc_screenman.h>
29 #include <oc_system_cfg.h>
30 
31 #if CFG_BOOL_GUI_ENABLED
32 
38 #define _________________________________________DRIVER_CONFIGURATIONS_SECTION______________________________________________________________
39 
40 #ifdef oC_LCDTFT_LLD_AVAILABLE
41 static const oC_LCDTFT_Config_t lcdtft_config = {
42  .Width = 480 ,
43  .Height = 272 ,
44  .ColorFormat = oC_ColorFormat_RGB565 ,
45  .ClockFrequency = kHz( 9600 ) ,
46  .PixelClockPolarity = oC_LCDTFT_PixelClockPolarity_InputPixelClock ,
47  .HSyncPolarity = oC_LCDTFT_Polarity_ActiveLow ,
48  .VSyncPolarity = oC_LCDTFT_Polarity_ActiveLow ,
49  .DESyncPolarity = oC_LCDTFT_Polarity_ActiveLow ,
50  .ColorMap = NULL,
51  .TimingParameters.HSYNC.PulseWidth = 41 ,
52  .TimingParameters.VSYNC.PulseWidth = 2 ,
53  .TimingParameters.HSYNC.BackPorch = 26 ,
54  .TimingParameters.VSYNC.BackPorch = 20 ,
55  .TimingParameters.HSYNC.FrontPorch = 32 ,
56  .TimingParameters.VSYNC.FrontPorch = 2 ,
57  .Pins.R[0] = oC_Pin_LCDTFT_R0 ,
58  .Pins.R[1] = oC_Pin_LCDTFT_R1 ,
59  .Pins.R[2] = oC_Pin_LCDTFT_R2 ,
60  .Pins.R[3] = oC_Pin_LCDTFT_R3 ,
61  .Pins.R[4] = oC_Pin_LCDTFT_R4 ,
62  .Pins.R[5] = oC_Pin_LCDTFT_R5 ,
63  .Pins.R[6] = oC_Pin_LCDTFT_R6 ,
64  .Pins.R[7] = oC_Pin_LCDTFT_R7 ,
65  .Pins.G[0] = oC_Pin_LCDTFT_G0 ,
66  .Pins.G[1] = oC_Pin_LCDTFT_G1 ,
67  .Pins.G[2] = oC_Pin_LCDTFT_G2 ,
68  .Pins.G[3] = oC_Pin_LCDTFT_G3 ,
69  .Pins.G[4] = oC_Pin_LCDTFT_G4 ,
70  .Pins.G[5] = oC_Pin_LCDTFT_G5 ,
71  .Pins.G[6] = oC_Pin_LCDTFT_G6 ,
72  .Pins.G[7] = oC_Pin_LCDTFT_G7 ,
73  .Pins.B[0] = oC_Pin_LCDTFT_B0 ,
74  .Pins.B[1] = oC_Pin_LCDTFT_B1 ,
75  .Pins.B[2] = oC_Pin_LCDTFT_B2 ,
76  .Pins.B[3] = oC_Pin_LCDTFT_B3 ,
77  .Pins.B[4] = oC_Pin_LCDTFT_B4 ,
78  .Pins.B[5] = oC_Pin_LCDTFT_B5 ,
79  .Pins.B[6] = oC_Pin_LCDTFT_B6 ,
80  .Pins.B[7] = oC_Pin_LCDTFT_B7 ,
81  .Pins.VSYNC = oC_Pin_LCDTFT_VSYNC ,
82  .Pins.HSYNC = oC_Pin_LCDTFT_HSYNC ,
83  .Pins.DE = oC_Pin_LCDTFT_DE ,
84  .Pins.CLK = oC_Pin_LCDTFT_CLK ,
85  .Pins.BL_CTRL = oC_Pin_LCDTFT_BL_CTRL ,
86  .Pins.DISP = oC_Pin_LCDTFT_DISP ,
87 };
88 #endif
89 
90 #undef _________________________________________DRIVER_CONFIGURATIONS_SECTION______________________________________________________________
91 
92 #ifdef oC_LCDTFT_LLD_AVAILABLE
93 //==========================================================================================================================================
100 //==========================================================================================================================================
101 #define CFG_SCREENS_LIST(ADD_SCREEN) \
102  ADD_SCREEN(lcdtft , LCDTFT , lcdtft_config ) \
103 
104 #else
105 #define CFG_SCREENS_LIST(ADD_SCREEN)
106 #endif
107 
108 #define CFG_STRING_DEFAULT_SCREEN "lcdtft"
109 
110 #endif
The file with interface of the Screen Manager module.
#define kHz(Freq)
Number of kHz.
Definition: oc_cfg.h:103
File with interface for the screen objects.
LCDTFT driver configuration structure.
Definition: oc_lcdtft.h:92
#define NULL
pointer to a zero
Definition: oc_null.h:37