aboutsummaryrefslogtreecommitdiffstats
path: root/fw/main.c
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/main.c
parentd69740f148892a28c543afed7eda4ba9b5a5e4e2 (diff)
downloadcan-gauge-interface-9bc3a97b269b2dcbb2656bcb74d4cbca637d19c4.zip
use short register names
Diffstat (limited to 'fw/main.c')
-rw-r--r--fw/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fw/main.c b/fw/main.c
index c0e750e..499d0f0 100644
--- a/fw/main.c
+++ b/fw/main.c
@@ -114,8 +114,8 @@ loadSigFmts(void) {
Status status;
// Disable interrupts so the volatile address pointers can be passed safely
- oldGie = INTCONbits.GIE;
- INTCONbits.GIE = 0;
+ oldGie = GIE;
+ GIE = 0;
for (k = 0u; k < NSIG; k++) {
status = serReadSigFmt(sigFmtAddrs[k], (SigFmt *)&sigFmts[k]);
@@ -186,7 +186,7 @@ main(void) {
// Enable interrupts
INTCON = 0x00; // clear flags
- OPTION_REGbits.INTEDG = 0; // interrupt on falling edge of INT pin
+ INTEDG = 0; // interrupt on falling edge of INT pin
INTE = 1; // enable INT pin
PEIE = 1; // enable peripheral interrupts
GIE = 1; // enable global interrupts