enabled timer
This commit is contained in:
parent
35d1ee2387
commit
e7e2f56db3
2 changed files with 7 additions and 2 deletions
6
main.c
6
main.c
|
@ -15,9 +15,10 @@
|
|||
#include "driverlib/interrupt.h"
|
||||
#include "Crystalfontz128x128_ST7735.h"
|
||||
#include <stdio.h>
|
||||
#include "buttons.h"
|
||||
|
||||
uint32_t gSystemClock; // [Hz] system clock frequency
|
||||
volatile uint32_t gTime = 8345; // time in hundredths of a second
|
||||
volatile uint32_t gTime = 0; // time in hundredths of a second
|
||||
|
||||
int main(void)
|
||||
{
|
||||
|
@ -42,6 +43,9 @@ int main(void)
|
|||
// full-screen rectangle
|
||||
tRectangle rectFullScreen = {0, 0, GrContextDpyWidthGet(&sContext)-1, GrContextDpyHeightGet(&sContext)-1};
|
||||
|
||||
ButtonInit();
|
||||
IntMasterEnable();
|
||||
|
||||
while (true) {
|
||||
GrContextForegroundSet(&sContext, ClrBlack);
|
||||
GrRectFill(&sContext, &rectFullScreen); // fill screen with black
|
||||
|
|
|
@ -33,6 +33,7 @@ void ResetISR(void);
|
|||
static void NmiSR(void);
|
||||
static void FaultISR(void);
|
||||
static void IntDefaultHandler(void);
|
||||
void ButtonISR(void);
|
||||
|
||||
//*****************************************************************************
|
||||
//
|
||||
|
@ -103,7 +104,7 @@ void (* const g_pfnVectors[])(void) =
|
|||
IntDefaultHandler, // ADC Sequence 2
|
||||
IntDefaultHandler, // ADC Sequence 3
|
||||
IntDefaultHandler, // Watchdog timer
|
||||
IntDefaultHandler, // Timer 0 subtimer A
|
||||
ButtonISR, // Timer 0 subtimer A
|
||||
IntDefaultHandler, // Timer 0 subtimer B
|
||||
IntDefaultHandler, // Timer 1 subtimer A
|
||||
IntDefaultHandler, // Timer 1 subtimer B
|
||||
|
|
Loading…
Reference in a new issue