37 lines
647 B
C
Raw Normal View History

2016-08-11 14:06:45 +02:00
/*
* 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;
const struct driver *enable;
};
static struct engine_ctrl right_forward = {
.pwm = &pwm_2,
.enable = &gpio_c0,
};
2016-08-11 21:35:45 +02:00
static struct engine_ctrl right_backward = {
.pwm = &pwm_1,
.enable = &gpio_c1,
2016-08-11 14:06:45 +02:00
};
2016-08-11 21:35:45 +02:00
static struct engine_ctrl left_forward = {
2016-08-11 14:06:45 +02:00
.pwm = &pwm_4,
.enable = &gpio_c2,
};
2016-08-11 21:35:45 +02:00
static struct engine_ctrl left_backward = {
.pwm = &pwm_3,
.enable = &gpio_c3,
};
2016-08-11 14:06:45 +02:00
#endif /* SOURCE_APPLICATION_INCLUDE_ENGINES_H_ */