aboutsummaryrefslogtreecommitdiff
path: root/hwdef-gchart-fet1-t16.h
diff options
context:
space:
mode:
authorGabriel Hart2021-02-01 10:33:43 -0600
committerGabriel Hart2021-02-01 10:33:43 -0600
commit4dfe5e628823c478124a03e381ee6bcdcb9ca314 (patch)
treef572286b9751123b8d2c60cf4acfc1cf6e5fbf1c /hwdef-gchart-fet1-t16.h
parentUpdated the Sofirn SP10S Anduril board (diff)
downloadanduril-4dfe5e628823c478124a03e381ee6bcdcb9ca314.tar.gz
anduril-4dfe5e628823c478124a03e381ee6bcdcb9ca314.tar.bz2
anduril-4dfe5e628823c478124a03e381ee6bcdcb9ca314.zip
Add RGB Aux functionality for 1-Series
Diffstat (limited to '')
-rw-r--r--hwdef-gchart-fet1-t16.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/hwdef-gchart-fet1-t16.h b/hwdef-gchart-fet1-t16.h
index 3a79586..e8fd11c 100644
--- a/hwdef-gchart-fet1-t16.h
+++ b/hwdef-gchart-fet1-t16.h
@@ -23,12 +23,11 @@ Read voltage from VCC pin, has diode with ~0.4v drop
#define PWM_CHANNELS 2
#ifndef SWITCH_PIN
-#define SWITCH_PIN 2
+#define SWITCH_PIN PIN2_bp
#define SWITCH_PORT VPORTB.IN
#define SWITCH_ISC_REG PORTB.PIN2CTRL
#define SWITCH_VECT PORTB_PORT_vect
#define SWITCH_INTFLG VPORTB.INTFLAGS
-//#define SWITCH_ISC_REG _SFR_MEM8(&PORTB + 0x10 + SWITCH_PIN)
#endif
@@ -52,9 +51,8 @@ Read voltage from VCC pin, has diode with ~0.4v drop
// lighted button
#ifndef AUXLED_PIN
-#define AUXLED_PIN PIN3_bm
+#define AUXLED_PIN PIN3_bp
#define AUXLED_PORT PORTB
-#define AUXLED_CTRL PIN3CTRL
#endif