aboutsummaryrefslogtreecommitdiff
path: root/hwdef-noctigon-kr4.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-04-29 02:50:03 -0600
committerSelene ToyKeeper2023-04-29 02:50:03 -0600
commit882567cd08e15d73aee0802fd1b1c31076801a02 (patch)
tree30acf038e041d406da504d7ab713a68561bb062a /hwdef-noctigon-kr4.h
parentD4v2 can use 8-bit ramp tables too (diff)
downloadanduril-882567cd08e15d73aee0802fd1b1c31076801a02.tar.gz
anduril-882567cd08e15d73aee0802fd1b1c31076801a02.tar.bz2
anduril-882567cd08e15d73aee0802fd1b1c31076801a02.zip
converted KR4-nofet build
Diffstat (limited to 'hwdef-noctigon-kr4.h')
-rw-r--r--hwdef-noctigon-kr4.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/hwdef-noctigon-kr4.h b/hwdef-noctigon-kr4.h
index b20effc..d6c33ff 100644
--- a/hwdef-noctigon-kr4.h
+++ b/hwdef-noctigon-kr4.h
@@ -37,7 +37,9 @@
#define ATTINY 1634
#include <avr/io.h>
+#ifndef HWDEF_C_FILE
#define HWDEF_C_FILE hwdef-noctigon-kr4.c
+#endif
// allow using aux LEDs as extra channel modes
#include "chan-rgbaux.h"
@@ -92,10 +94,6 @@
#define CH1_PWM OCR1A // OCR1A is the output compare register for PB3
#define CH1_ENABLE_PIN PB0 // pin 19, Opamp power
#define CH1_ENABLE_PORT PORTB // control port for PB0
-// TODO: remove these
-#define PWM1_PHASE_RESET_OFF // force reset while shutting off
-#define PWM1_PHASE_RESET_ON // force reset while turning on
-#define PWM1_PHASE_SYNC // manual sync while changing level
// DD FET channel
#define CH2_PIN PA6 // pin 1, DD FET PWM