projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor afsk IRQ macros in order to handle multiple modems.
[bertos.git]
/
bertos
/
drv
/
dc_motor.h
diff --git
a/bertos/drv/dc_motor.h
b/bertos/drv/dc_motor.h
index 3f4b15dd0ae20f49ec067fcd400ccf3d48480f44..9e7104037bc9f50cc70bb30dc21c350fd0b8f677 100644
(file)
--- a/
bertos/drv/dc_motor.h
+++ b/
bertos/drv/dc_motor.h
@@
-77,6
+77,7
@@
typedef struct DCMotorConfig
PwmDev pwm_dev; ///< Pwm channel.
pwm_freq_t freq; ///< Pwm waveform frequency.
PwmDev pwm_dev; ///< Pwm channel.
pwm_freq_t freq; ///< Pwm waveform frequency.
+ bool pol; ///< Pwm waveform polarity.
adc_ch_t adc_ch; ///< ADC channel.
adcread_t adc_max; ///< ADC max scale value.
adc_ch_t adc_ch; ///< ADC channel.
adcread_t adc_max; ///< ADC max scale value.
@@
-84,6
+85,8
@@
typedef struct DCMotorConfig
mtime_t sample_delay; ///< Delay before to sampling.
bool dir; ///< Default direction for select DC motor.
mtime_t sample_delay; ///< Delay before to sampling.
bool dir; ///< Default direction for select DC motor.
+ int speed_trm_id; ///< Index of trimmer to set speed.
+ dc_speed_t speed; ///< Default speed value for select DC motor.
} DCMotorConfig;
} DCMotorConfig;