aboutsummaryrefslogtreecommitdiff
path: root/hwdef-Sofirn_SP10-Pro.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-11-06 02:20:34 -0600
committerSelene ToyKeeper2021-11-06 02:20:34 -0600
commit3ab0110af192cf7746dadbcf5966bd125b49860f (patch)
treed64477574875085c95c1b94942082637a485559c /hwdef-Sofirn_SP10-Pro.h
parentmerged recent anduril2 branch updates (diff)
downloadanduril-3ab0110af192cf7746dadbcf5966bd125b49860f.tar.gz
anduril-3ab0110af192cf7746dadbcf5966bd125b49860f.tar.bz2
anduril-3ab0110af192cf7746dadbcf5966bd125b49860f.zip
greatly smoothed out SP10 ramp, and configured defaults
also fixed random ramp stuttering, by adding phase-reset register to hwdef (though it still has a brief stutter sometimes while ramping down across the channel boundary, at least it always seems to be smooth while going up now)
Diffstat (limited to 'hwdef-Sofirn_SP10-Pro.h')
-rw-r--r--hwdef-Sofirn_SP10-Pro.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hwdef-Sofirn_SP10-Pro.h b/hwdef-Sofirn_SP10-Pro.h
index 5ed716d..3cd405c 100644
--- a/hwdef-Sofirn_SP10-Pro.h
+++ b/hwdef-Sofirn_SP10-Pro.h
@@ -38,6 +38,7 @@ PA1 : Boost Enable
#ifndef PWM1_PIN
#define PWM1_PIN PB5
#define PWM1_LVL TCA0.SINGLE.CMP2 // PB5 is Alternate MUX for TCA Compare 2
+#define PWM1_CNT TCA0.SINGLE.CNT // for resetting phase after each TOP adjustment
#endif
// Big channel