generated from PEG/EE690-EmSys-TiVA-Template
Added systick timer
This commit is contained in:
parent
b8debabeb1
commit
4ec5552313
7
main.c
7
main.c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue