X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=boards%2Fek-lm3s1968%2Fexamples%2Fgps%2Fcfg%2Fcfg_dc_motor.h;h=59650e431f8df5c35957d87c4eeb9cb3adb377fe;hb=144f8f1b4079593b00cded5db9b7f2b2da5ecc87;hp=05af01b8ed545cf8929b28f83d4678ad2b4e3a84;hpb=2f8ddd222403c832825f4bc9b875ed5dd60a613c;p=bertos.git diff --git a/boards/ek-lm3s1968/examples/gps/cfg/cfg_dc_motor.h b/boards/ek-lm3s1968/examples/gps/cfg/cfg_dc_motor.h index 05af01b8..59650e43 100644 --- a/boards/ek-lm3s1968/examples/gps/cfg/cfg_dc_motor.h +++ b/boards/ek-lm3s1968/examples/gps/cfg/cfg_dc_motor.h @@ -63,4 +63,49 @@ */ #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 + + +/** + * Max value of DC motor speed. + * \note Generally this value is the max value of the ADC conversion, + * if you use it. + * + * $WIZ$ type = "int" + * $WIZ$ max = 65535 + */ +#define CONFIG_DC_MOTOR_MAX_SPEED 65535 + + +/** + * Sampling period in millisecond. + * $WIZ$ type = "int" + */ +#define CONFIG_DC_MOTOR_SAMPLE_PERIOD 40 + +/** + * Amount of millisecond before to read sample. + * $WIZ$ type = "int" + */ +#define CONFIG_DC_MOTOR_SAMPLE_DELAY 2 + +/** + * This control set which mode the driver use to lock share + * resources when we use the preempitive kernel. + * If we set to 1 we use the semaphore module otherwise the + * driver disable the switch context every time we need to access + * to shared sources. + * + * $WIZ$ type = "int" + */ +#define CONFIG_DC_MOTOR_USE_SEM 1 + #endif /* CFG_DC_MOTOR_H */