fixed bldc and started adding ads1299 dma
This commit is contained in:
@@ -52,11 +52,16 @@ void TC4_Handler(void)
|
||||
static void M1_RESET_BAR(void)
|
||||
{
|
||||
volatile int x = 0;
|
||||
Motor1.motor_state.currentstate = MOTOR_FAULT;
|
||||
Motor1.motor_state.fault = MOTOR_DRIVER_OVER_CURRENT;
|
||||
|
||||
}
|
||||
|
||||
static void M2_RESET_BAR(void)
|
||||
{
|
||||
volatile int x = 0;
|
||||
Motor2.motor_state.currentstate = MOTOR_FAULT;
|
||||
Motor2.motor_state.fault = MOTOR_DRIVER_OVER_CURRENT;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@@ -144,6 +144,12 @@ void enable_NVIC_IRQ(void)
|
||||
NVIC_SetPriority(SERCOM1_1_IRQn, 0);
|
||||
//NVIC_EnableIRQ(SERCOM1_3_IRQn);
|
||||
//NVIC_EnableIRQ(EIC_5_IRQn);
|
||||
|
||||
/* Reset Latch Interrupt */
|
||||
ext_irq_register(PIN_PB30, M1_RESET_BAR);
|
||||
ext_irq_register(PIN_PB31, M2_RESET_BAR);
|
||||
NVIC_EnableIRQ(EIC_14_IRQn);
|
||||
NVIC_EnableIRQ(EIC_15_IRQn);
|
||||
}
|
||||
|
||||
void APPLICATION_StateMachine(void)
|
||||
|
||||
Reference in New Issue
Block a user