This commit is contained in:
2023-03-03 16:11:29 +01:00
parent 8d56267f66
commit 87aa31868a
13 changed files with 176 additions and 120 deletions

View File

@@ -75,6 +75,14 @@
#define RC2_SetDigitalInput() do { TRISCbits.TRISC2 = 1; } while(0)
#define RC2_SetDigitalOutput() do { TRISCbits.TRISC2 = 0; } while(0)
// get/set RC6 procedures
#define RC6_SetHigh() do { LATCbits.LATC6 = 1; } while(0)
#define RC6_SetLow() do { LATCbits.LATC6 = 0; } while(0)
#define RC6_Toggle() do { LATCbits.LATC6 = ~LATCbits.LATC6; } while(0)
#define RC6_GetValue() PORTCbits.RC6
#define RC6_SetDigitalInput() do { TRISCbits.TRISC6 = 1; } while(0)
#define RC6_SetDigitalOutput() do { TRISCbits.TRISC6 = 0; } while(0)
// get/set voltage aliases
#define voltage_TRIS TRISFbits.TRISF0
#define voltage_LAT LATFbits.LATF0