X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fcfg_dc_motor.h;h=12a8afd8c55bab5186a773ebe93990bf60ed9aa2;hb=d9fe3f9d7d77c90968bd26fc1fa5b89d2b010a64;hp=b04359e93a87cc2f77064c43eb76c8fb7502aff2;hpb=2d4ed0db91173bdb604fa50892409ed6c81db6a2;p=bertos.git diff --git a/bertos/cfg/cfg_dc_motor.h b/bertos/cfg/cfg_dc_motor.h index b04359e9..12a8afd8 100644 --- a/bertos/cfg/cfg_dc_motor.h +++ b/bertos/cfg/cfg_dc_motor.h @@ -32,7 +32,6 @@ * * \brief Configuration file for DC motor module. * - * \version $Id$ * * \author Daniele Basile */ @@ -41,10 +40,49 @@ #define CFG_DC_MOTOR_H /** - * Number of the DC motors to mange. + * Number of the DC motors to manage. * - * $WIZARD = { "type" : "enum" } + * $WIZ$ type = "int" + * $WIZ$ min = 1 */ -#define CONFIG_NUM_DC_MOTOR 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 */