-
Notifications
You must be signed in to change notification settings - Fork 1
/
menu.c
68 lines (58 loc) · 2.13 KB
/
menu.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* ========================================
*
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF your company.
*
* ========================================
*/
/*** INCLUDED COMPONENTS ***/
#include "menu.h"
#include "router_configuration.h"
#include "model_configuration.h"
/*** VARIABLES ***/
/*** FUNCTIONS ***/
void menu(uint8 menu_index){
switch(menu_index){
case 0:
LCD_ClearDisplay();
LCD_Position(0,2);
LCD_PrintString("Memory Explorer");
LCD_Position(1,0);
LCD_PrintString("Numeric System - SW1");
LCD_Position(2,0);
LCD_PrintString("Move Up/Down - SW2");
LCD_Position(3,0);
LCD_PrintString("Address-4PushButtons");
break;
case 1:
LCD_ClearDisplay();
LCD_Position(0,0);
LCD_PrintString("NS:");
if (configure.encoding) LCD_PrintString("Hexadecimal");
else LCD_PrintString("Binary");
LCD_Position(1,0);
LCD_PrintString("Move:");
if (configure.operation) LCD_PrintString("Down");
else LCD_PrintString("Up");
LCD_Position(2,0);
LCD_PrintString("Multiplier: ");
LCD_PrintNumber(Multiplier);
LCD_Position(3,0);
LCD_PrintString("Memory: ");
if (flash_location) LCD_PrintString("Flash");
else if (low_ram_location) LCD_PrintString("Low RAM");
else if (high_ram_location) LCD_PrintString("High RAM");
else if (sram_location) LCD_PrintString("SRAM");
else if (phripherals_location) LCD_PrintString("Pheripherals");
else if (external_ram_location) LCD_PrintString("External RAM");
else if (external_device_location) LCD_PrintString("Ext. Device");
else if (system_region_location) LCD_PrintString("System Region");
break;
}
}
/*** INTERRUPTS ***/
/* [] END OF FILE */