Advertisement
Guest User

patch against dpf-ax rev 10 for black 1.5inch dpf

a guest
Apr 22nd, 2012
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 4.71 KB | None | 0 0
  1. diff -Naur dpf-ax.10//fw/knowndpfs.py dpf-ax.10-black//fw/knowndpfs.py
  2. --- dpf-ax.10//fw/knowndpfs.py  2012-04-22 18:50:58.594630896 +0800
  3. +++ dpf-ax.10-black//fw/knowndpfs.py    2012-04-22 18:17:50.951713965 +0800
  4. @@ -26,6 +26,11 @@
  5.         "",
  6.         ([ 0x54cc8527 ], [ 0xd5efd5d9 ]),
  7.     ],
  8. +   [       () ,
  9. +       "black from ebay seller delight-digi",
  10. +       "",
  11. +       ([ 0xda6ee4c3 ], [ 0xdda9c297 ]),
  12. +   ],
  13.  ##################### 128 x 144 #############################
  14.     [       () ,
  15.         "focalprice144",
  16. diff -Naur dpf-ax.10//src/buildall.sh dpf-ax.10-black//src/buildall.sh
  17. --- dpf-ax.10//src/buildall.sh  2012-04-22 18:50:58.590631019 +0800
  18. +++ dpf-ax.10-black//src/buildall.sh    2012-04-22 10:17:03.419504187 +0800
  19. @@ -1,6 +1,6 @@
  20.  #!/bin/sh
  21.  
  22. -MODELS="blue white pink pearl pearl_landscape focal focal_landscape linkdelight agk_violet focalprice144"
  23. +MODELS="blue white pink pearl pearl_landscape focal focal_landscape linkdelight agk_violet focalprice144 black"
  24.  
  25.  for i in $MODELS; do
  26.     echo --------------------------------------
  27. diff -Naur dpf-ax.10//src/.buildno dpf-ax.10-black//src/.buildno
  28. --- dpf-ax.10//src/.buildno 1970-01-01 07:30:00.000000000 +0730
  29. +++ dpf-ax.10-black//src/.buildno   2012-04-22 18:54:18.304490165 +0800
  30. @@ -0,0 +1 @@
  31. +1
  32. diff -Naur dpf-ax.10//src/config.h dpf-ax.10-black//src/config.h
  33. --- dpf-ax.10//src/config.h 2012-04-22 18:50:58.586631140 +0800
  34. +++ dpf-ax.10-black//src/config.h   2012-04-22 17:07:46.362201055 +0800
  35. @@ -54,6 +54,11 @@
  36.  #  define LCD_CONTROLLER_CUSTOM
  37.  #  define LCD_ORIENTATION_RGB RGB_UP
  38.  #  define DEFAULT_ORIENTATION ROT_UP
  39. +#elif defined (DPFMODEL_black)
  40. +#  define LCD_128x128
  41. +#  define LCD_CONTROLLER_CUSTOM
  42. +#  define LCD_ORIENTATION_RGB RGB_LEFT
  43. +#  define DEFAULT_ORIENTATION ROT_LEFT
  44.  // <<<< INSERT NEW DPFS BEFORE THIS LINE <<<<
  45.  #else
  46.  #error "Unrecognized DPF TYPE specification"
  47. diff -Naur dpf-ax.10//src/lcd/black/lcdblit.s dpf-ax.10-black//src/lcd/black/lcdblit.s
  48. --- dpf-ax.10//src/lcd/black/lcdblit.s  1970-01-01 07:30:00.000000000 +0730
  49. +++ dpf-ax.10-black//src/lcd/black/lcdblit.s    2012-04-22 17:37:02.541421307 +0800
  50. @@ -0,0 +1,31 @@
  51. +   .include 'dpf.inc'
  52. +
  53. +   .area BLIT (CODE)
  54. +
  55. +ar0 = 0x00
  56. +
  57. +_custom_blit::
  58. +   mov a,#0x43
  59. +   clr LCD_A0
  60. +   lcall   otp_lcd_write
  61. +   mov a,_g_blit+x0
  62. +   add a,#0x0
  63. +   clr LCD_A0
  64. +   lcall   otp_lcd_write
  65. +   mov a,_g_blit+x1
  66. +   add a,#0x0
  67. +   clr LCD_A0
  68. +   lcall   otp_lcd_write
  69. +   mov a,#0x42
  70. +   clr LCD_A0
  71. +   lcall   otp_lcd_write
  72. +   mov a,_g_blit+y0
  73. +   add a,#0x4
  74. +   clr LCD_A0
  75. +   lcall   otp_lcd_write
  76. +   mov a,_g_blit+y1
  77. +   add a,#0x4
  78. +   clr LCD_A0
  79. +   lcall   otp_lcd_write
  80. +   setb    LCD_A0
  81. +   ret
  82. diff -Naur dpf-ax.10//src/lcd/black/lcdinit.s dpf-ax.10-black//src/lcd/black/lcdinit.s
  83. --- dpf-ax.10//src/lcd/black/lcdinit.s  1970-01-01 07:30:00.000000000 +0730
  84. +++ dpf-ax.10-black//src/lcd/black/lcdinit.s    2012-04-22 10:15:08.819509167 +0800
  85. @@ -0,0 +1,28 @@
  86. +   .include 'dpf.inc'
  87. +
  88. +   .area LCDAUX (CODE)
  89. +
  90. +_lcd_custom_init::
  91. +   mov dptr,#_custom_initseq
  92. +   ljmp    _lcd_init_by_table
  93. +
  94. +   .area LCDAUX (CODE)
  95. +
  96. +_custom_initseq::
  97. +  .db  #0x00, #0xb0, #0x64, #0x11, #0xb0, #0x0a, #0x10, #0xb0, #0x64, #0x11, #0xb0, #0x64
  98. +  .db  #0x71, #0x2c, #0xb0, #0x0a, #0x71, #0xeb, #0xb0, #0x14, #0x71, #0x02, #0x71, #0x01
  99. +  .db   #0xb0, #0x0a, #0x71, #0x26, #0x71, #0x01, #0xb0, #0x0a, #0x71, #0x26, #0x71, #0x09
  100. +  .db   #0xb0, #0x0a, #0x71, #0x26, #0x71, #0x0b, #0xb0, #0x0a, #0x71, #0x26, #0x71, #0x0f
  101. +  .db   #0xb0, #0x0a, #0x71, #0x40, #0x71, #0x80, #0xb0, #0x0a, #0x71, #0x18, #0x71, #0x00
  102. +  .db   #0xb0, #0x0a, #0x71, #0x2c, #0xb0, #0x0a, #0x71, #0x02, #0x71, #0x00, #0xb0, #0x0a  
  103. +  .db   #0x71, #0x2a, #0x71, #0x5e, #0xb0, #0x0a, #0x71, #0x10, #0x71, #0x0a, #0xb0, #0x0a
  104. +  .db   #0x71, #0x28, #0x71, #0x00, #0xb0, #0x0a, #0x71, #0x30, #0x71, #0x0b, #0xb0, #0x0a
  105. +  .db   #0x71, #0x32, #0x71, #0x06, #0xb0, #0x0a, #0x71, #0x34, #0x71, #0x91, #0xb0, #0x0a
  106. +  .db   #0x71, #0x36, #0x71, #0x00, #0xb0, #0x0a, #0x71, #0x45, #0x71, #0x00, #0xb0, #0x0a
  107. +  .db   #0x71, #0x53, #0x71, #0x00, #0xb0, #0x0a, #0x71, #0x56, #0x71, #0x00, #0xb0, #0x0a
  108. +  .db   #0x71, #0x57, #0x71, #0x83, #0xb0, #0x0a, #0x71, #0x70, #0x71, #0x1c, #0xb0, #0x0a
  109. +  .db   #0x71, #0x7f, #0x71, #0x50, #0xb0, #0x0a, #0x71, #0x51
  110. +  .db #0xFF
  111. +
  112. +
  113. +
  114. diff -Naur dpf-ax.10//src/lcd/black/lcdsetor.s dpf-ax.10-black//src/lcd/black/lcdsetor.s
  115. --- dpf-ax.10//src/lcd/black/lcdsetor.s 1970-01-01 07:30:00.000000000 +0730
  116. +++ dpf-ax.10-black//src/lcd/black/lcdsetor.s   2012-04-22 09:30:42.455145693 +0800
  117. @@ -0,0 +1,10 @@
  118. +   .include 'dpf.inc'
  119. +
  120. +   .area INIT (CODE)
  121. +
  122. +; Just a nop at the moment - only landscape supported!
  123. +; If you want other orientations, add code here,
  124. +; create a correspondig method to lcdblit_*.s" and modify lcdinit_*.c accordingly.
  125. +;
  126. +_lcd_custom_setorientation::
  127. +   ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement