Remove Port F interrupt

This commit is contained in:
Uttam Bhavimani Bhavimani 2024-11-29 14:44:01 +05:30
parent cb4f7c7b11
commit 7ff54a38e0
1 changed files with 42 additions and 47 deletions

5
main.c
View File

@ -11,11 +11,6 @@ void GPIO_PORT_F_init(void)
GPIO_PORTF_DIR_R = 0x0E; // SET PF0, PF4 as input and PF1, PF2 and PF3 as output GPIO_PORTF_DIR_R = 0x0E; // SET PF0, PF4 as input and PF1, PF2 and PF3 as output
GPIO_PORTF_PUR_R = 0x11; // PORTF PF0 and PF4 IS PULLED UP GPIO_PORTF_PUR_R = 0x11; // PORTF PF0 and PF4 IS PULLED UP
NVIC_EN0_R |= 1 << 30;
GPIO_PORTF_IS_R = 0x00; // EDGE SENSITIVE
GPIO_PORTF_IBE_R = 0x00; // ONE EDGE
GPIO_PORTF_IEV_R = 0x00; // INTERRUPT EVENT FALLING
GPIO_PORTF_IM_R |= 0x11; // UNMASK INTERRUPT
} }