Library for Modtronix NZ32 STM32 boards, like the NZ32-SC151, NZ32-SB072, NZ32-SE411 and others

Revision:
17:86034c970ea0
Parent:
15:3fd3c1ce01be
--- a/nz32s.h	Sat Aug 13 12:57:48 2016 +1000
+++ b/nz32s.h	Fri Aug 19 15:50:48 2016 +1000
@@ -21,12 +21,11 @@
 #ifndef NZ32S_H_
 #define NZ32S_H_
 
-#include "mbed.h"
+#include "nz32s_default_config.h"
 #include "mx_tick.h"
 #include "mx_helpers.h"
 #include "mx_circular_buffer.h"
 #include "mx_cmd_buffer.h"
-#include "nz32s_default_config.h"
 
 
 // Debugging //////////////////////////////////////////////////////////////////
@@ -119,9 +118,9 @@
      * "Fast Charge" (J13 on NZ32-SC151) on the back of the board is made!
      */
     static inline void enable_fast_charging(void) {
-        #if (DONT_USE_A13_A14 == 0)
+        #if (NZ32S_USE_A13_A14 == 1)
         enableFastCharge.output();
-        enableFastCharge = 0;
+        enableFastCharge = 0; //Enable fast charging
         #endif
     }
 
@@ -129,7 +128,7 @@
     /** Disable fast charging
      */
     static inline void disable_fast_charging(void) {
-        #if (DONT_USE_A13_A14 == 0)
+        #if (NZ32S_USE_A13_A14 == 1)
         NZ32S::enableFastCharge.input();
         NZ32S::enableFastCharge.mode(PullNone);
         #endif
@@ -258,7 +257,7 @@
     static DigitalOut led1;
     static DigitalIn  btn1;
 
-    #if (DONT_USE_A13_A14 == 0)
+    #if (NZ32S_USE_A13_A14 == 1)
     static DigitalInOut enableFastCharge;
     #endif
 };