diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-11-10 18:20:28 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-11-10 18:20:28 -0500 |
| commit | 9bc3a97b269b2dcbb2656bcb74d4cbca637d19c4 (patch) | |
| tree | 9d617e8b52ef00d42f50e20acc3d398bdddfea92 /fw/main.c | |
| parent | d69740f148892a28c543afed7eda4ba9b5a5e4e2 (diff) | |
| download | can-gauge-interface-9bc3a97b269b2dcbb2656bcb74d4cbca637d19c4.zip | |
use short register names
Diffstat (limited to 'fw/main.c')
| -rw-r--r-- | fw/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |