From 77b738770b0c3a5ed4618d36821478508f8d4726 Mon Sep 17 00:00:00 2001 From: Mathias Rasmussen Date: Thu, 1 Oct 2020 04:38:31 +0200 Subject: [PATCH] refactor: Update t1_int interrupt handling --- Bluejay.asm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Bluejay.asm b/Bluejay.asm index 4e14971..63a1345 100644 --- a/Bluejay.asm +++ b/Bluejay.asm @@ -484,9 +484,7 @@ t0_int_dshot_tlm_finish: ; ;**** **** **** **** **** **** **** **** **** **** **** **** **** t1_int: - clr IE_EA clr IE_EX0 ; Disable int0 interrupts - anl EIE1, #0EFh ; Disable pca interrupts clr TCON_TR1 ; Stop timer 1 mov TL1, DShot_Timer_Preset ; Reset sync timer push PSW @@ -497,7 +495,6 @@ t1_int: mov Temp1, TMR2L ; Read timer value mov Temp2, TMR2H setb TMR2CN0_TR2 ; Timer 2 enabled - setb IE_EA ; Reset timer 0 mov TL0, #0 @@ -827,6 +824,8 @@ ENDIF mov Rcp_Timeout_Cntd, #10 ; Set timeout count + anl EIE1, #0EFh ; Disable pca interrupts + IF FETON_DELAY != 0 Clear_COVF_Interrupt Enable_COVF_Interrupt ; Generate a pca interrupt