BeRTOS
|
Configuration file for DC motor module. More...
Go to the source code of this file.
Defines | |
#define | CONFIG_NUM_DC_MOTOR 4 |
Number of the DC motors to manage. | |
#define | DC_MOTOR_LOG_LEVEL LOG_LVL_INFO |
Module logging level. | |
#define | DC_MOTOR_LOG_FORMAT LOG_FMT_VERBOSE |
Module logging format. | |
#define | CONFIG_DC_MOTOR_MIN_SPEED 0 |
Min value of DC motor speed. | |
#define | CONFIG_DC_MOTOR_MAX_SPEED 65535 |
Max value of DC motor speed. | |
#define | CONFIG_DC_MOTOR_SAMPLE_PERIOD 40 |
Sampling period in millisecond. | |
#define | CONFIG_DC_MOTOR_SAMPLE_DELAY 2 |
Amount of millisecond before to read sample. | |
#define | CONFIG_DC_MOTOR_USE_SEM 1 |
This control set which mode the driver use to lock share resources when we use the preempitive kernel. |
Configuration file for DC motor module.
Definition in file cfg_dc_motor.h.
#define CONFIG_DC_MOTOR_MAX_SPEED 65535 |
Max value of DC motor speed.
Definition at line 85 of file cfg_dc_motor.h.
#define CONFIG_DC_MOTOR_MIN_SPEED 0 |
Min value of DC motor speed.
Definition at line 74 of file cfg_dc_motor.h.
#define CONFIG_DC_MOTOR_USE_SEM 1 |
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.
Definition at line 109 of file cfg_dc_motor.h.