diff options
Diffstat (limited to 'drivers/haptic/solenoid.h')
| -rw-r--r-- | drivers/haptic/solenoid.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/drivers/haptic/solenoid.h b/drivers/haptic/solenoid.h index dd6ececa6..f2a3bc4c3 100644 --- a/drivers/haptic/solenoid.h +++ b/drivers/haptic/solenoid.h | |||
| @@ -29,6 +29,22 @@ | |||
| 29 | # define SOLENOID_MIN_DWELL 4 | 29 | # define SOLENOID_MIN_DWELL 4 |
| 30 | #endif | 30 | #endif |
| 31 | 31 | ||
| 32 | #ifndef SOLENOID_DWELL_STEP_SIZE | ||
| 33 | # define SOLENOID_DWELL_STEP_SIZE 1 | ||
| 34 | #endif | ||
| 35 | |||
| 36 | #ifndef SOLENOID_DEFAULT_BUZZ | ||
| 37 | # define SOLENOID_DEFAULT_BUZZ 0 | ||
| 38 | #endif | ||
| 39 | |||
| 40 | #ifndef SOLENOID_BUZZ_ACTUATED | ||
| 41 | # define SOLENOID_BUZZ_ACTUATED SOLENOID_MIN_DWELL | ||
| 42 | #endif | ||
| 43 | |||
| 44 | #ifndef SOLENOID_BUZZ_NONACTUATED | ||
| 45 | # define SOLENOID_BUZZ_NONACTUATED SOLENOID_MIN_DWELL | ||
| 46 | #endif | ||
| 47 | |||
| 32 | #ifndef SOLENOID_PIN | 48 | #ifndef SOLENOID_PIN |
| 33 | # error SOLENOID_PIN not defined | 49 | # error SOLENOID_PIN not defined |
| 34 | #endif | 50 | #endif |
| @@ -37,8 +53,6 @@ void solenoid_buzz_on(void); | |||
| 37 | void solenoid_buzz_off(void); | 53 | void solenoid_buzz_off(void); |
| 38 | void solenoid_set_buzz(int buzz); | 54 | void solenoid_set_buzz(int buzz); |
| 39 | 55 | ||
| 40 | void solenoid_dwell_minus(uint8_t solenoid_dwell); | ||
| 41 | void solenoid_dwell_plus(uint8_t solenoid_dwell); | ||
| 42 | void solenoid_set_dwell(uint8_t dwell); | 56 | void solenoid_set_dwell(uint8_t dwell); |
| 43 | 57 | ||
| 44 | void solenoid_stop(void); | 58 | void solenoid_stop(void); |
