LV8548 Motor Driver Stepper Motor Dc MOtor

Dependents:   LV8548_ON_MD_Modlle_kit_DCMtr_And_STEPMtr

Revision:
1:e60c7c42e6fc
Parent:
0:04db82da014d
Child:
2:627825272d30
--- a/LV8548.h	Fri Nov 16 16:45:46 2018 +0000
+++ b/LV8548.h	Sat Nov 17 05:05:13 2018 +0000
@@ -13,6 +13,7 @@
 #define MAXCH   (2)
 
 #define STEPMAX_FREQ (4800)
+#define USE_PWM_PORT       (FALSE)
 
 /** Motor Use  */
  enum DriverType {
@@ -71,7 +72,11 @@
 class LV8548 {
 public:
     LV8548(PinName in1, PinName in2, PinName in3, PinName in4, DriverType drivertype = DCMOTOR ,uint16_t baseus = 64);
+#if USE_PWM_PORT
     PwmOut _in1,_in2,_in3,_in4;
+#else
+    DigitalOut _in1,_in2,_in3,_in4;
+#endif
     DriverType   _Drivertype;
     uint16_t     _baseus; 
 /***************************************************************************************************/