-
Notifications
You must be signed in to change notification settings - Fork 0
/
DR_SysTick.c
41 lines (32 loc) · 1.07 KB
/
DR_SysTick.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*******************************************************************************************************************************//**
*
* @file DR_SysTick.c
* @brief Descripcion del modulo
* @date 4 de may. de 2016
* @author Ing. Marcelo Trujillo
*
**********************************************************************************************************************************/
/***********************************************************************************************************************************
*** INCLUDES
**********************************************************************************************************************************/
#include "DR_SysTick.h"
#include "DR_lcd.h"
#include "DR_gpio.h"
#include "PR_Timers.h"
#include "PR_debounce.h"
#include "DR_JoyPS2.h"
void SysTick_Inicializacion ( void )
{
STRELOAD = ( STCALIB / 4) - 1; // 2.5 ms
STCURR = 0;
CLKSOURCE = 1;
ENABLE = 1;
TICKINT = 1;
}
void SysTick_Handler(void)
{
TimerCheck();
Debounce();
DriverDemoraLCD();
joy_refresh(1);
}