Hi all,
I'm testing the binary version of the BSP for WinCE 6.0 (version 0.9.9) and I've seen that the display driver settings could be modified with the file:
C:\WINCE600\PLATFORM\AT91SAM9261EK_BIN\SRC\DRIVERS\AT91SAM9261Display\AT91SAM9261GraphicChip.reg
Code:
[HKEY_LOCAL_MACHINE\System\GDI\ROTATION]
"Angle"=dword:5A
; Video driver settings
[HKEY_LOCAL_MACHINE\Drivers\Display\LCDC]
;board does have 240x320 16 bpp color LCD
"Width"=dword:F0
"Height"=dword:140
"Bpp"=dword:10
"forceRGB"=dword:0
; "Cached"=dword:1
"VRAMWidthInPixel"=dword:F0
"VRAMHeightInPixel"=dword:155
; When the frame buffer of the screen is located in SRAM, PCK can't be shut down in idle mode
; cause it causes the screen to oscillate. If you locate the frame buffer in SDRAM
; in the display file, you can enable PCK shut down in common\arm\atmel\at91sam926x\kernel\power\waitforinterrupt.s
; "VRAMaddress"=dword:23f00000 ; allocate the video memory in SDRAM
"VRAMaddress"=dword:300000 ; allocate the video memory in SRAM
"UpperMargin"=dword:21
"LowerMargin"=dword:13
"LeftMargin"=dword:44
"RightMargin"=dword:0A
"Vsync"=dword:1
"Hsync"=dword:1
"PixelClock"=dword:5B8D80 ; 6000000 Hz
[HKEY_LOCAL_MACHINE\System\GDI\Drivers]
"Display"="at91sam9261ek_DDI.dll"
[HKEY_LOCAL_MACHINE\system\gdi\monitors]
"TOTAL MONITORS"=dword:1
I need to change the video orientation (from portrait to landscape).
I think I've to change the rotation (In red I've made the modification to set it to 90, whereas the original value was zero).
Should I invert also any 320 and 240 reference? If yes, I need to inverse only "Height" and "Width" values or even other keys?
thanks in advance.
cheers