engine_control/source/application/include/engines.h
2016-08-30 10:07:47 +02:00

32 lines
529 B
C

/*
* engines.h
*
* Created on: Aug 10, 2016
* Author: tkl
*/
#ifndef SOURCE_APPLICATION_INCLUDE_ENGINES_H_
#define SOURCE_APPLICATION_INCLUDE_ENGINES_H_
struct engine_ctrl {
const struct driver *pwm;
};
static struct engine_ctrl left_forward = {
.pwm = &pwm_4,
};
static struct engine_ctrl right_backward = {
.pwm = &pwm_3,
};
static struct engine_ctrl right_forward = {
.pwm = &pwm_2,
};
static struct engine_ctrl left_backward = {
.pwm = &pwm_1,
};
#endif /* SOURCE_APPLICATION_INCLUDE_ENGINES_H_ */