From f6e01a29448d98177b43556a79d574f42a7b4072 Mon Sep 17 00:00:00 2001
From: Camil Staps
Date: Tue, 23 Aug 2016 23:46:43 +0200
Subject: LCD working; simple test

---
 firmware/t6963c_specific.h | 31 +++++++++++++++----------------
 1 file changed, 15 insertions(+), 16 deletions(-)

(limited to 'firmware/t6963c_specific.h')

diff --git a/firmware/t6963c_specific.h b/firmware/t6963c_specific.h
index 4df7923..5d8d18c 100644
--- a/firmware/t6963c_specific.h
+++ b/firmware/t6963c_specific.h
@@ -17,7 +17,7 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  *
  *******************************************************************************
- * 
+ *
  * File:   t6963c_specific.h
  * Author: Camil Staps
  *
@@ -30,27 +30,27 @@
 #include <xc.h>
 
 #define t6963c_rst(x)    LATFbits.LATF3   = (x) // RESET line
-#define t6963c_cd(x)     LATBbits.LATB6   = (x) // C/D line
-#define t6963c_ce(x)     LATBbits.LATB7   = (x) // CE line
-#define t6963c_rd(x)     LATFbits.LATF4   = (x) // RD line
-#define t6963c_wr(x)     LATFbits.LATF5   = (x) // WR line
+#define t6963c_cd(x)     LATBbits.LATB7   = (x) // C/D line
+#define t6963c_ce(x)     LATBbits.LATB6   = (x) // CE line
+#define t6963c_rd(x)     LATFbits.LATF5   = (x) // RD line
+#define t6963c_wr(x)     LATFbits.LATF4   = (x) // WR line
 #define t6963c_t_rst(x)  TRISFbits.TRISF3 = (x) // TRIS bit of RESET pin
-#define t6963c_t_cd(x)   TRISBbits.TRISB6 = (x) // TRIS bit of C/D pin
-#define t6963c_t_ce(x)   TRISBbits.TRISB7 = (x) // TRIS bit of CE pin
-#define t6963c_t_rd(x)   TRISFbits.TRISF4 = (x) // TRIS bit of RD pin
-#define t6963c_t_wr(x)   TRISFbits.TRISF5 = (x) // TRIS bit of WR pin
+#define t6963c_t_cd(x)   TRISBbits.TRISB7 = (x) // TRIS bit of C/D pin
+#define t6963c_t_ce(x)   TRISBbits.TRISB6 = (x) // TRIS bit of CE pin
+#define t6963c_t_rd(x)   TRISFbits.TRISF5 = (x) // TRIS bit of RD pin
+#define t6963c_t_wr(x)   TRISFbits.TRISF4 = (x) // TRIS bit of WR pin
 #define t6963c_data(x)   LATB  = (LATB  & 0x00ff) | (x << 8) // Data port
 #define t6963c_t_data(x) TRISB = (TRISB & 0x00ff) | (x << 8) // TRIS register of data port
-    
+
 #define t6963c_rows 16           // Number of rows of the LCD
 #define t6963c_columns 40        // Number of columns of the LCD
 
-#ifdef	__cplusplus
+#ifdef __cplusplus
 extern "C" {
 #endif
 
-#define t6963c_nspertick 4000
-    
+#define t6963c_nspertick 64
+
 /**
  * Define the project-specific timer functions here
  * @see t6963c.h
@@ -60,9 +60,8 @@ inline void t6963c_startTimer(void);
 inline unsigned short t6963c_getTimeNs(void);
 inline void t6963c_stopTimer(void);
 
-#ifdef	__cplusplus
+#ifdef __cplusplus
 }
 #endif
 
-#endif	/* T6963C_SPECIFIC_H */
-
+#endif /* T6963C_SPECIFIC_H */
-- 
cgit v1.2.3