aboutsummaryrefslogtreecommitdiff
path: root/hwdef-noctigon-kr4.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-04-29 01:54:19 -0600
committerSelene ToyKeeper2023-04-29 01:54:19 -0600
commit278d58e747f5692ef614eb6605774688f85656e3 (patch)
tree7e1672f3d066c1fbb457050729c967cac517d42a /hwdef-noctigon-kr4.h
parentKR4: ramp can use 8 bits, since values never go over 255 (diff)
downloadanduril-278d58e747f5692ef614eb6605774688f85656e3.tar.gz
anduril-278d58e747f5692ef614eb6605774688f85656e3.tar.bz2
anduril-278d58e747f5692ef614eb6605774688f85656e3.zip
D4v2 can use 8-bit ramp tables too
Diffstat (limited to 'hwdef-noctigon-kr4.h')
-rw-r--r--hwdef-noctigon-kr4.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwdef-noctigon-kr4.h b/hwdef-noctigon-kr4.h
index 2e19ba4..b20effc 100644
--- a/hwdef-noctigon-kr4.h
+++ b/hwdef-noctigon-kr4.h
@@ -77,7 +77,7 @@
#define PWM_BITS 16 // dynamic 16-bit, but never goes over 255
#define PWM_GET PWM_GET8
-#define PWM_DATATYPE uint16_t // is used for PWM_TOPS
+#define PWM_DATATYPE uint16_t // is used for PWM_TOPS (which goes way over 255)
#define PWM_DATATYPE2 uint16_t // only needs 32-bit if ramp values go over 255
#define PWM1_DATATYPE uint8_t // linear ramp
#define PWM2_DATATYPE uint8_t // DD FET ramp