Work around paper feed issues
This commit is contained in:
parent
79ccdda9e3
commit
94b7ac4f8f
4 changed files with 16 additions and 16 deletions
|
@ -42,8 +42,7 @@ static void InitStepper(void)
|
|||
| (0x01 << (4 * PIN_STEPPER_BP - 32)) // Output, max. 10 MHz
|
||||
;
|
||||
|
||||
// The SysTick is clocked by AHB / 8
|
||||
SysTick_Config(48000000 / 8 / LTP1245_MAX_DRIVE_FREQ - 1);
|
||||
SysTick_Config(48000000 / LTP1245_MAX_DRIVE_FREQ - 1);
|
||||
}
|
||||
|
||||
static void InitSensors(void)
|
||||
|
@ -385,6 +384,8 @@ void SysTick_Handler(void)
|
|||
const int GPIO_MASK = ((1 << PIN_STEPPER_AM) | (1 << PIN_STEPPER_AP)
|
||||
| (1 << PIN_STEPPER_BM) | (1 << PIN_STEPPER_BP));
|
||||
|
||||
GPIOC->BRR = (1 << PIN_LED);
|
||||
|
||||
if(Stepper_Delta != 0)
|
||||
{
|
||||
off = false;
|
||||
|
@ -420,6 +421,8 @@ void SysTick_Handler(void)
|
|||
}
|
||||
|
||||
AdvanceStateMachine();
|
||||
|
||||
GPIOC->BSRR = (1 << PIN_LED);
|
||||
}
|
||||
|
||||
void ADC1_2_IRQHandler(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue