summaryrefslogtreecommitdiffhomepage
path: root/digital/mimot/src/dirty/pwm.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/mimot/src/dirty/pwm.h')
-rw-r--r--digital/mimot/src/dirty/pwm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/digital/mimot/src/dirty/pwm.h b/digital/mimot/src/dirty/pwm.h
index a751ee9e..b4f12d0d 100644
--- a/digital/mimot/src/dirty/pwm.h
+++ b/digital/mimot/src/dirty/pwm.h
@@ -25,8 +25,11 @@
*
* }}} */
+/** Offset to compensate for H-bridge dead zone at low PWM values. */
+#define PWM_OFFSET 0x40
+
/** Define the absolute maximum PWM value. */
-#define PWM_MAX 0x3ff
+#define PWM_MAX (0x3ff - PWM_OFFSET)
/** PWM control state. */
struct pwm_t