Funcionando: FDC eixo x y z
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_IHM01A1 by
Revision 15:40470df81d9a, committed 2015-12-10
- Comitter:
- Davidroid
- Date:
- Thu Dec 10 15:04:57 2015 +0000
- Parent:
- 14:73823a4344be
- Child:
- 16:bec7dd79f328
- Commit message:
- + Comments related to the component updated.
Changed in this revision
--- a/Components/l6474/l6474_class.cpp Wed Dec 09 14:59:53 2015 +0000
+++ b/Components/l6474/l6474_class.cpp Thu Dec 10 15:04:57 2015 +0000
@@ -55,24 +55,25 @@
#include "l6474.h"
-/* Private constants ---------------------------------------------------------*/
+/* Definitions ---------------------------------------------------------------*/
-/// Error while initialising the SPI
+/* Error while initialising the SPI. */
#define L6474_ERROR_0 (0x8000)
-/// Error: Bad SPI transaction
+
+/* Error of bad SPI transaction. */
#define L6474_ERROR_1 (0x8001)
-/// Maximum number of steps
+/* Maximum number of steps. */
#define MAX_STEPS (0x7FFFFFFF)
-/// Maximum frequency of the PWMs in Hz
+/* Maximum frequency of the PWMs in Hz. */
#define L6474_MAX_PWM_FREQ (10000)
-/// Minimum frequency of the PWMs in Hz
+/* Minimum frequency of the PWMs in Hz. */
#define L6474_MIN_PWM_FREQ (2)
-/* Private variables --------------------------------------------------------*/
+/* Variables ----------------------------------------------------------------*/
/* Number of devices. */
uint8_t L6474::numberOfDevices = 0;
--- a/Components/l6474/l6474_class.h Wed Dec 09 14:59:53 2015 +0000
+++ b/Components/l6474/l6474_class.h Thu Dec 10 15:04:57 2015 +0000
@@ -102,10 +102,8 @@
* line. *
* *
* Example: *
- * T0_out = 0; *
- * T1_out = 0; *
- * T0_degC = 0; *
- * T1_degC = 0; *
+ * measure = 0; *
+ * instance_id = number_of_instances++; *
*--------------------------------------------------------------------*/
errorHandlerCallback = 0;
deviceInstance = numberOfDevices;
