aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/SSD2119/gdisp_lld.c
diff options
context:
space:
mode:
authorMateusz Tomaszkiewicz <silentdemon@gmail.com>2013-06-20 22:49:36 +0200
committerMateusz Tomaszkiewicz <silentdemon@gmail.com>2013-06-20 22:49:36 +0200
commitd57eacc345da25732ec6bace92878a76b587e548 (patch)
treed62cb3e567729eb6b2926c1f15d8e3c321f4e191 /drivers/gdisp/SSD2119/gdisp_lld.c
parentf820fb90d51e5dba715a520baf40474d521bdce2 (diff)
downloaduGFX-d57eacc345da25732ec6bace92878a76b587e548.tar.gz
uGFX-d57eacc345da25732ec6bace92878a76b587e548.tar.bz2
uGFX-d57eacc345da25732ec6bace92878a76b587e548.zip
SSD2119: FSMC settings tuned
With FSMC BTR timing register settings tuned and DMA on, we get over 10.2 Mpx/s instead of 4.7 Mpx/s.
Diffstat (limited to 'drivers/gdisp/SSD2119/gdisp_lld.c')
-rw-r--r--drivers/gdisp/SSD2119/gdisp_lld.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/gdisp/SSD2119/gdisp_lld.c b/drivers/gdisp/SSD2119/gdisp_lld.c
index 8ace4912..b3fa4fd3 100644
--- a/drivers/gdisp/SSD2119/gdisp_lld.c
+++ b/drivers/gdisp/SSD2119/gdisp_lld.c
@@ -472,19 +472,9 @@ void gdisp_lld_draw_pixel(coord_t x, coord_t y, color_t color) {
set_cursor(x, y);
stream_start();
- #if defined(GDISP_USE_FSMC)
- /* FSMC timing */
- FSMC_Bank1->BTCR[FSMC_Bank + 1] = FSMC_BTR1_ADDSET_3 | FSMC_BTR1_DATAST_3 | FSMC_BTR1_BUSTURN_0;
- #endif // defined(GDISP_USE_FSMC)
-
color = read_data(); // dummy read
color = read_data();
- #if defined(GDISP_USE_FSMC)
- /* FSMC timing */
- FSMC_Bank1->BTCR[FSMC_Bank + 1] = FSMC_BTR1_ADDSET_0 | FSMC_BTR1_DATAST_2 | FSMC_BTR1_BUSTURN_0;
- #endif // defined(GDISP_USE_FSMC)
-
stream_stop();
release_bus();
@@ -540,20 +530,10 @@ void gdisp_lld_draw_pixel(coord_t x, coord_t y, color_t color) {
set_viewport(x, row0, cx, 1);
stream_start();
- #if defined(GDISP_USE_FSMC)
- /* FSMC timing */
- FSMC_Bank1->BTCR[FSMC_Bank + 1] = FSMC_BTR1_ADDSET_3 | FSMC_BTR1_DATAST_3 | FSMC_BTR1_BUSTURN_0;
- #endif // defined(GDISP_USE_FSMC)
-
j = read_data(); // dummy read
for (j = 0; (coord_t)j < cx; j++)
buf[j] = read_data();
- #if defined(GDISP_USE_FSMC)
- /* FSMC timing */
- FSMC_Bank1->BTCR[FSMC_Bank + 1] = FSMC_BTR1_ADDSET_0 | FSMC_BTR1_DATAST_2 | FSMC_BTR1_BUSTURN_0;
- #endif // defined(GDISP_USE_FSMC)
-
stream_stop();
set_viewport(x, row1, cx, 1);