-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVT100_Commands.c
More file actions
60 lines (57 loc) · 1.09 KB
/
VT100_Commands.c
File metadata and controls
60 lines (57 loc) · 1.09 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* VT100_Commands.c
*
* Created on: 10 Nov 2016
* Author: David
*/
#include "fsl_device_registers.h"
#include "board.h"
#include "fsl_debug_console.h"
#include "fsl_pit_driver.h"
#include "VT100_Commands.h"
// Get various styles on the output of the terminal and clear the current console.
void VT100_terminalClearFormat(int select) {
VT100_SetupResetDevice();
VT100_DisplayBBlack();
switch(select)
{
case 0:
VT100_DisplayFGreen();
VT100_DisplayBBlack();
break;
case 1:
VT100_DisplayFBlue();
VT100_DisplayBWhite();
break;
case 2:
VT100_DisplayFYellow();
VT100_DisplayBBlack();
break;
default:
VT100_DisplayFGreen();
VT100_DisplayBBlack();
break;
}
}
// Get various styles on the output of the terminal without clearing the console
void VT100_terminalFormat(int select) {
switch(select)
{
case 0:
VT100_DisplayFGreen();
VT100_DisplayBBlack();
break;
case 1:
VT100_DisplayFBlue();
VT100_DisplayBWhite();
break;
case 2:
VT100_DisplayFYellow();
VT100_DisplayBBlack();
break;
default:
VT100_DisplayFGreen();
VT100_DisplayBBlack();
break;
}
}