brazos-trapezoidal
TimerInterrupt.c
Go to the documentation of this file.
1
14//-------------------------------------- Include Files ----------------------------------------------------------------
15#include "TimerInterrupt.h"
16//-------------------------------------- PUBLIC (Variables) -----------------------------------------------------------
17
18//-------------------------------------- PRIVATE (Variables, Constants & Defines) -------------------------------------
19
20//-------------------------------------- PRIVATE (Function Prototypes) ------------------------------------------------
21
22
23//=====================================================================================================================
24//-------------------------------------- Public Functions -------------------------------------------------------------
25//=====================================================================================================================
26
27//---------------------------------------------------------------------------------------------------------------------
34{
35
36 systick_initialize(INTERRUPT_METHOD);
37
38 hw_systick_ctrl_en(SysTick);
39 hw_cmu_write_systick_clk_sel(CMU, CMU_CFG_SYSTICK_CLK_SEL_SYS_CLK); //
40 hw_systick_ctrl_sel_clk_en(SysTick); // Processor Clock
41
42 /* Systick interrupt will not be used, instead Timer0 will determine the calls timings*/
43 /*hw_systick_ctrl_int_en(SysTick); //Enable Interrupt*/
44
45 hw_systick_load(SysTick, SYSTICK_PER_CNT);
46
47 __enable_irq();
48}
49
50
51//=====================================================================================================================
52//-------------------------------------- Private Functions ------------------------------------------------------------
53//=====================================================================================================================
54
55
void TimerInterrupt__Initialize(void)
This method initializes TimerInterrupt module.
Header file for TimerInterrupt.h.c.
#define INTERRUPT_METHOD
Defines the method that will be called upon a timer interrupt,
#define SYSTICK_PER_CNT