[ab32vg1] update file format

This commit is contained in:
ZHU Hao 2021-04-14 09:20:53 +08:00 committed by GitHub
parent ada0570b47
commit 368676a42f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -190,9 +190,9 @@ static void irrx_isr(int vector, void *param)
static void timer3_init(void)
{
rt_hw_interrupt_install(IRQ_IRRX_VECTOR, irrx_isr, RT_NULL, "irrx_isr");
TMR3CNT = 0;
TMR3PR = TMR3_RCLK*110 - 1; //110ms Timer overflow interrupt
TMR3CON = BIT(8) | BIT(7) | BIT(5) | BIT(2) | BIT(1) | BIT(0); //capture & overflow interrupt enable, falling edge, Capture Mode
TMR3CNT = 0;
TMR3PR = TMR3_RCLK*110 - 1; //110ms Timer overflow interrupt
TMR3CON = BIT(8) | BIT(7) | BIT(5) | BIT(2) | BIT(1) | BIT(0); //capture & overflow interrupt enable, falling edge, Capture Mode
}
static void _irrx_hw_init(void)