OpenCores
URL https://opencores.org/ocsvn/layer2/layer2/trunk

Subversion Repositories layer2

[/] [layer2/] [trunk/] [sw/] [void/] [view.h] - Blame information for rev 2

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 idiolatrie
/******************************************************************************
2
 * void - Bootloader Version 0.2.1                                            *
3
 ******************************************************************************
4
 * Copyright (C)2011  Mathias Hörtnagl <mathias.hoertnagl@gmail.com>          *
5
 *                                                                            *
6
 * This program is free software: you can redistribute it and/or modify       *
7
 * it under the terms of the GNU General Public License as published by       *
8
 * the Free Software Foundation, either version 3 of the License, or          *
9
 * (at your option) any later version.                                        *
10
 *                                                                            *
11
 * This program is distributed in the hope that it will be useful,            *
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
14
 * GNU General Public License for more details.                               *
15
 *                                                                            *
16
 * You should have received a copy of the GNU General Public License          *
17
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.      *
18
 ******************************************************************************/
19
#include "ui.h"
20
 
21
#ifndef _VIEW_H
22
#define _VIEW_H
23
 
24
/******************************************************************************
25
 * Error Messages                                                             *
26
 ******************************************************************************/
27
Message errFlashNotReady = {
28
   ID_MESSAGE,
29
   {0,0},
30
   "Flash is not ready, although it should be."
31
};
32
 
33
Message errFlashState = {
34
   ID_MESSAGE,
35
   {0,0},
36
   "Flash is in an errorous state. Please restart."
37
};
38
 
39
Message errErrorFlashSize = {
40
   ID_MESSAGE,
41
   {0,0},
42
   "Image size exceeds available flash memory."
43
};
44
 
45
Message errErrorFlashLocked = {
46
   ID_MESSAGE,
47
   {0,0},
48
   "Flash block is locked."
49
};
50
 
51
Message errErrorFlashWrite = {
52
   ID_MESSAGE,
53
   {0,0},
54
   "Could not write to flash."
55
};
56
 
57
Message errErrorFlashErase = {
58
   ID_MESSAGE,
59
   {0,0},
60
   "Could not erase flash block."
61
};
62
 
63
/******************************************************************************
64
 * Upload View                                                                *
65
 ******************************************************************************/
66
Message msgUploadErase = {
67
   ID_MESSAGE,
68
   {0,0},
69
   "Erasing flash contents ..."
70
};
71
 
72
Message msgUploadWait = {
73
   ID_MESSAGE,
74
   {0,0},
75
   "Waiting for incomming transmission ..."
76
};
77
 
78
Message msgUploadWrite = {
79
   ID_MESSAGE,
80
   {0,0},
81
   "Uploading data ..."
82
};
83
 
84
ProgressBar pbUpload = {
85
   ID_PROGRESS_BAR,
86
   {0,1},
87
 
88
};
89
 
90
Window wUpload = {
91
   {16, 12, 68, 6},
92
   {WHITE, BLACK},
93
   "Image Upload",
94
   2,
95
   {&msgUploadWait, &pbUpload}
96
};
97
 
98
 
99
/******************************************************************************
100
 * Memory View                                                                *
101
 ******************************************************************************/
102
Window wFlashMemory = {
103
   {1, 1, 98, 15},
104
   {YELLOW, BLACK},
105
   "Flash Memory",
106
   0,
107
   NULL
108
};
109
 
110
Window wDDRMemory = {
111
   {1, 17, 98, 15},
112
   {YELLOW, BLACK},
113
   "DDR Memory",
114
   0,
115
   NULL
116
};
117
 
118
 
119
/******************************************************************************
120
 * Boot View                                                                  *
121
 ******************************************************************************/
122
#define OPTION_UPLOAD    0
123
#define OPTION_MEMORY    1
124
#define OPTION_START     2
125
 
126
MenuItem menuUpload = {
127
   "Upload image ..."
128
};
129
 
130
MenuItem menuMemory = {
131
   "View memory contents ..."
132
};
133
 
134
MenuItem menuStart = {
135
   "Start ..."
136
};
137
 
138
Menu menu = {
139
   ID_MENU,
140
   {0,0},
141
   OPTION_UPLOAD,
142
   3,
143
   { &menuUpload, &menuMemory, &menuStart }
144
};
145
 
146
Window wBoot = {
147
   {25, 12, 50, 7},
148
   {WHITE, BLACK},
149
   "void Bootloader v0.2.1",
150
   1,
151
   { &menu }
152
};
153
 
154
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.