Skip to content

Commit

Permalink
placed correct interrupt handlers to XINT part of PIE vector #49
Browse files Browse the repository at this point in the history
  • Loading branch information
SergNikitin committed May 18, 2014
1 parent 0cc35c9 commit 1bf79a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion firmware/SatStepperBegin/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

static void WDogDisable(void) {
EALLOW;
SysCtrlRegs.WDCR= 0x0068;
SysCtrlRegs.WDCR = 0x0068;
EDIS;
}

Expand Down
6 changes: 3 additions & 3 deletions firmware/SatStepperBegin/sensors/encoder/encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ interrupt void encoderInputCIntHandler(void) {

void encoderInit() {
EALLOW; // This is needed to write to EALLOW protected registers
PieVectTable.XINT1 = &emptySharedHandler;
PieVectTable.XINT2 = &emptySharedHandler;
PieVectTable.XINT3 = &emptySharedHandler;
PieVectTable.XINT1 = encoderInputAIntHandler;
PieVectTable.XINT2 = encoderInputBIntHandler;
PieVectTable.XINT3 = encoderInputCIntHandler;

/*
* 00 Interrupt generated on a falling edge (high-to-low transition)
Expand Down

0 comments on commit 1bf79a2

Please sign in to comment.