aboutsummaryrefslogtreecommitdiffstats
path: root/fw/can.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-11-10 18:20:28 -0500
committerSam Anthony <sam@samanthony.xyz>2025-11-10 18:20:28 -0500
commit9bc3a97b269b2dcbb2656bcb74d4cbca637d19c4 (patch)
tree9d617e8b52ef00d42f50e20acc3d398bdddfea92 /fw/can.h
parentd69740f148892a28c543afed7eda4ba9b5a5e4e2 (diff)
downloadcan-gauge-interface-9bc3a97b269b2dcbb2656bcb74d4cbca637d19c4.zip
use short register names
Diffstat (limited to 'fw/can.h')
-rw-r--r--fw/can.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fw/can.h b/fw/can.h
index 37c6bc7..d5c0db9 100644
--- a/fw/can.h
+++ b/fw/can.h
@@ -15,8 +15,8 @@
*/
// Pin mapping
-#define CAN_CS_TRIS TRISAbits.TRISA5
-#define CAN_CS LATAbits.LATA5
+#define CAN_CS_TRIS TRISA5
+#define CAN_CS RA5
// Bit timings (CNF1, CNF2, CNF3)
#define CAN_TIMING_10K 0xDD, 0xAD, 0x06 // BRP=30, PropSeg=6, PS1=6, PS2=7, SP=65%, SJW=4