Added systick timer

This commit is contained in:
Aravind 2024-09-21 21:23:42 +05:30
parent b8debabeb1
commit 4ec5552313
No known key found for this signature in database
GPG Key ID: A65B144ABA883771
2 changed files with 8 additions and 7 deletions

9
main.c
View File

@ -15,16 +15,15 @@ int main(void)
GPIO_PORTF_IBE_R = (~(1<<4));
GPIO_PORTF_IEV_R = (~(1<<4));
GPIO_PORTF_IM_R = (1<<4);
GPIO_PORTF_AHB_ICR_R = (1<<4);
NVIC_EN0_R |= (1<<30);
while(1)
{
}
}
}
void Syst

View File

@ -33,6 +33,8 @@ void ResetISR(void);
static void NmiSR(void);
static void FaultISR(void);
static void IntDefaultHandler(void);
static void Portf_interrupt_handler(void);
static void Systick_Handler(void);
//*****************************************************************************
//
@ -82,7 +84,7 @@ void (* const g_pfnVectors[])(void) =
IntDefaultHandler, // Debug monitor handler
0, // Reserved
IntDefaultHandler, // The PendSV handler
IntDefaultHandler, // The SysTick handler
Systick_Handler, // The SysTick handler
IntDefaultHandler, // GPIO Port A
IntDefaultHandler, // GPIO Port B
IntDefaultHandler, // GPIO Port C
@ -113,7 +115,7 @@ void (* const g_pfnVectors[])(void) =
IntDefaultHandler, // Analog Comparator 2
IntDefaultHandler, // System Control (PLL, OSC, BO)
IntDefaultHandler, // FLASH Control
IntDefaultHandler, // GPIO Port F
Portf_interrupt_handler, // GPIO Port F
IntDefaultHandler, // GPIO Port G
IntDefaultHandler, // GPIO Port H
IntDefaultHandler, // UART2 Rx and Tx