Código finalizado do projeto!!

Dependencies:   ST_INTERFACES X_NUCLEO_COMMON

Fork of X_NUCLEO_IHM01A1 by ST

Files at this revision

API Documentation at this revision

Comitter:
Davidroid
Date:
Fri Oct 28 13:24:55 2016 +0000
Parent:
29:cc8d254e21bd
Child:
31:c4d0fee5ce75
Commit message:
Removed a warning due to changes in mbed's Ticker class.

Changed in this revision

Components/l6474/l6474_class.cpp Show annotated file Show diff for this revision Revisions of this file
Components/l6474/l6474_class.h Show annotated file Show diff for this revision Revisions of this file
--- a/Components/l6474/l6474_class.cpp	Tue Sep 27 12:15:41 2016 +0000
+++ b/Components/l6474/l6474_class.cpp	Fri Oct 28 13:24:55 2016 +0000
@@ -66,7 +66,7 @@
 #define MAX_STEPS            (0x7FFFFFFF)
 
 /* Maximum frequency of the PWMs in Hz. */
-#define L6474_MAX_PWM_FREQ   (10000)
+#define L6474_MAX_PWM_FREQ   (20000)
 
 /* Minimum frequency of the PWMs in Hz. */
 #define L6474_MIN_PWM_FREQ   (2)
--- a/Components/l6474/l6474_class.h	Tue Sep 27 12:15:41 2016 +0000
+++ b/Components/l6474/l6474_class.h	Fri Oct 28 13:24:55 2016 +0000
@@ -872,7 +872,7 @@
         pwm.write(0.5f);
 
         /* Setting a callback with the same period of PWM's, to update the state machine. */
-        ticker.attach(this, &L6474::L6474_StepClockHandler, period);
+        ticker.attach(Callback<void()>(this, &L6474::L6474_StepClockHandler), period);
     }
 
     /**