Added Discovery F429ZI 8 bit SPI support. Added helper methods to character based locate.

Fork of SPI_TFT_ILI9341 by Peter Drescher

Added Discovery F429ZI 8 bit SPI support to the original lib.

Revision:
14:a1133923c034
Parent:
12:98cc5c193ecd
diff -r b2b3e5430f81 -r a1133923c034 SPI_TFT_ILI9341_NUCLEO.cpp
--- a/SPI_TFT_ILI9341_NUCLEO.cpp	Wed Jun 25 16:51:27 2014 +0000
+++ b/SPI_TFT_ILI9341_NUCLEO.cpp	Sat Feb 11 18:56:31 2017 +0000
@@ -12,9 +12,9 @@
  */
 
  // 24.06.14   initial version
- // 25.06.14   add Nucleo F103RB 
+ // 25.06.14   add Nucleo F103RB
 
-// only include this file if target is L152 or F103RB : 
+// only include this file if target is L152 or F103RB :
 #if defined TARGET_NUCLEO_L152RE || defined TARGET_NUCLEO_F103RB
 
 #include "SPI_TFT_ILI9341.h"
@@ -34,7 +34,7 @@
 //extern Serial pc;
 //extern DigitalOut xx;     // debug !!
 
-DMA_InitTypeDef DMA_InitStructure; 
+DMA_InitTypeDef DMA_InitStructure;
 
 
 SPI_TFT_ILI9341::SPI_TFT_ILI9341(PinName mosi, PinName miso, PinName sclk, PinName cs, PinName reset, PinName dc, const char *name)
@@ -98,7 +98,7 @@
 #define bit_SPI2_bsy  *((volatile unsigned int *)0x4207011C)
 #define bit_SPI3_bsy  *((volatile unsigned int *)0x4207811C)
 
-void inline SPI_TFT_ILI9341::spi_bsy(void){    
+void inline SPI_TFT_ILI9341::spi_bsy(void){
 switch(spi_num){        // decide which SPI is to use
 case (1):
     while(bit_SPI1_bsy == 1);   // SPI1->SR bit 7
@@ -481,9 +481,9 @@
 // use DMA to transfer pixel data to the screen
 void SPI_TFT_ILI9341::cls (void)
 {
-    // we can use the fillrect function 
+    // we can use the fillrect function
    fillrect(0,0,width()-1,height()-1,_background);
-}    
+}
 
 void SPI_TFT_ILI9341::circle(int x0, int y0, int r, int color)
 {
@@ -892,7 +892,7 @@
         free ((uint16_t *) buffer);
         spi_16(0);
     }
-    
+
     else{
         #endif
         zeichen = &font[((c -32) * offset) + 4]; // start of char bitmap
@@ -911,9 +911,9 @@
         spi_bsy();
         _cs = 1;
         spi_16(0);
-    #ifdef use_ram   
+    #ifdef use_ram
     }
-    #endif    
+    #endif
     _cs = 1;
     WindowMax();
     if ((w + 2) < hor) {                   // x offset to next char
@@ -1046,3 +1046,4 @@
 
 #endif
 
+