-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTimer.h
More file actions
36 lines (28 loc) · 846 Bytes
/
Timer.h
File metadata and controls
36 lines (28 loc) · 846 Bytes
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
/*
* Timer.h
*
* Created on: 19 Nov 2016
* Author: David
*/
#ifndef _TIMER_H_
#define _TIMER_H_
// Included Libraries
#include "fsl_device_registers.h"
#include "board.h"
#include "fsl_debug_console.h"
#include "VT100_Commands.h"
#include "rtc_lpo.h"
#include "TimeHolder.h"
// Included extern global functions
extern char char_received();
extern void terminalFormat();
// Included extern global variables
extern volatile int g_updateTime;
extern bool g_clockMode;
extern int g_terminalColour;
/*FUNCTION PROTOTYPES*************************************/
// Function to handle timer functionality from the main loop
void tmr_HandleTimer(char *functionChar, TimeHolder *myTime, TimeHolder *alarm);
// Routine to load the timer with its initial value.
void tmr_LoadTimer(TimeHolder *timer);
#endif /* CUSTOM_LIBRARIES_TIMER_H_ */