finish devleop can interface not yet tested

This commit is contained in:
2023-08-23 13:45:34 +02:00
parent ff9137a026
commit 21f9cb7f62
23 changed files with 927 additions and 1144 deletions

View File

@@ -64,16 +64,16 @@ void PIN_MANAGER_Initialize(void)
/**
TRISx registers
*/
TRISA = 0xFF;
TRISB = 0xFE;
TRISA = 0x00;
TRISB = 0xF6;
TRISC = 0xFF;
/**
ANSELx registers
*/
ANSELC = 0xFF;
ANSELB = 0xF6;
ANSELA = 0x7F;
ANSELB = 0xEE;
ANSELA = 0x00;
/**
WPUx registers
@@ -112,7 +112,8 @@ void PIN_MANAGER_Initialize(void)
CANRXPPS = 0x0B; //RB3->ECAN:CANRX;
CANRXPPS = 0x0C; //RB4->ECAN:CANRX;
RB3PPS = 0x33; //RB3->ECAN:CANTX0;
}
void PIN_MANAGER_IOC(void)