-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStopWatch.h
More file actions
37 lines (30 loc) · 947 Bytes
/
StopWatch.h
File metadata and controls
37 lines (30 loc) · 947 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
37
/*
* StopWatch.hF
*
* Created on: 19 Nov 2016
* Author: David
*/
#ifndef _STOPWATCH_H_
#define _STOPWATCH_H_
// Included Libraries
#include "fsl_device_registers.h"
#include "board.h"
#include "fsl_debug_console.h"
#include "fsl_pit_driver.h"
#include "VT100_Commands.h"
#include "rtc_lpo.h"
#include "Timeholder.h"
// Included extern global functions
extern char char_received();
// Included extern global variables
extern volatile int g_updateTime;
extern volatile int g_millis;
extern int g_terminalColour;
/*FUNCTION PROTOTYPES*************************************/
// Used to control and print out the stop watch counter.
void sw_HandleStopWatch(char *inputChar);
void sw_RunStopWatch(char *inputChar, TimeHolder *currentStopWatchTime,
TimeHolder *lapTime, TimeHolder *temp);
void sw_PrintStopwatchTime(TimeHolder *currentStopWatchTime,
TimeHolder *lapTime, TimeHolder *temp);
#endif /* CUSTOM_LIBRARIES_STOPWATCH_H_ */