Add abstraction layer for toolchains.
[bertos.git] / bertos / cfg / cfg_dc_motor.h
index 3475059db24c0db16437ec6297b92b25a75a99ba..12a8afd8c55bab5186a773ebe93990bf60ed9aa2 100644 (file)
@@ -32,7 +32,6 @@
  *
  * \brief Configuration file for DC motor module.
  *
- * \version $Id$
  *
  * \author Daniele Basile <asterix@develer.com>
  */
 #ifndef CFG_DC_MOTOR_H
 #define CFG_DC_MOTOR_H
 
-//DC motor configuration
-#define CONFIG_NUM_DC_MOTOR       1
+/**
+ * Number of the DC motors to manage.
+ *
+ * $WIZ$ type = "int"
+ * $WIZ$ min = 1
+ */
+#define CONFIG_NUM_DC_MOTOR       4
+
+/**
+ * Module logging level.
+ *
+ * $WIZ$ type = "enum"
+ * $WIZ$ value_list = "log_level"
+ */
+#define DC_MOTOR_LOG_LEVEL      LOG_LVL_WARN
+
+/**
+ * Module logging format.
+ *
+ * $WIZ$ type = "enum"
+ * $WIZ$ value_list = "log_format"
+ */
+#define DC_MOTOR_LOG_FORMAT     LOG_FMT_TERSE
+
+
+/**
+ * Min value of DC motor speed.
+ * \note Generally this value is the min value of the ADC conversion,
+ * if you use it.
+ *
+ * $WIZ$ type = "int"
+ */
+#define CONFIG_DC_MOTOR_MIN_SPEED              0
+
+
+/**
+ * Min value of DC motor speed.
+ * \note Generally this value is the min value of the ADC conversion,
+ * if you use it.
+ *
+ * $WIZ$ type = "int"
+ * $WIZ$ max = 65535
+ */
+#define CONFIG_DC_MOTOR_MAX_SPEED         65535
+
 
 #endif /* CFG_DC_MOTOR_H */