From 5570e37d766209a1fc9a3e4ac804a98767c483fc Mon Sep 17 00:00:00 2001 From: Vikram Rajput Date: Thu, 19 Sep 2024 23:07:11 +0530 Subject: [PATCH] Some error corrections --- Lab6_Task1.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Lab6_Task1.c b/Lab6_Task1.c index e688f68..891ce24 100644 --- a/Lab6_Task1.c +++ b/Lab6_Task1.c @@ -14,7 +14,7 @@ void main(void) SYSCTL_RCGCPWM_R = 0x3; // GPIOF_config(); - GPIOF_Interrupt_config(); + GPIOF_Int_Config(); GPIO_PORTF_AFSEL_R |= 0x02; GPIO_PORTF_PCTL_R |= 0x50; @@ -44,20 +44,20 @@ void GPIOF_config() void GPIOF_Int_Config() { - GPIO_PORTF_IM_R &= ~MASK_BITS; - GPIO_PORTF_IS_R &= ~MASK_BITS; - GPIO_PORTF_IEV_R &= ~MASK_BITS; - GPIO_PORTF_IBE_R &= ~MASK_BITS; + GPIO_PORTF_IM_R &= ~mask_bits; + GPIO_PORTF_IS_R &= ~mask_bits; + GPIO_PORTF_IEV_R &= ~mask_bits; + GPIO_PORTF_IBE_R &= ~mask_bits; NVIC_PRI7_R = (NVIC_PRI7_R & 0xFF1FFFFF) | (2 << 21); NVIC_EN0_R |= (1 << 30); - GPIO_PORTF_ICR_R = MASK_BITS; - GPIO_PORTF_IM_R |= MASK_BITS; + GPIO_PORTF_ICR_R = mask_bits; + GPIO_PORTF_IM_R |= mask_bits; } void GPIOF_INT_Handler(void) { - GPIO_PORTF_IM_R &= ~MASK_BITS; + GPIO_PORTF_IM_R &= ~mask_bits; int i; if(GPIO_PORTF_RIS_R & 0x01) { @@ -83,8 +83,8 @@ void GPIOF_INT_Handler(void) } } } - GPIO_PORTF_ICR_R = MASK_BITS; - GPIO_PORTF_IM_R |= MASK_BITS; + GPIO_PORTF_ICR_R = mask_bits; + GPIO_PORTF_IM_R |= mask_bits; }