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

Subversion Repositories layer2

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

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

Line No. Rev Author Line
1 2 idiolatrie
/******************************************************************************
2 5 idiolatrie
 * void - Bootloader Version 0.2.2                                            *
3 2 idiolatrie
 ******************************************************************************
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 4 idiolatrie
 * DDR Upload View                                                            *
101
 ******************************************************************************/
102
Message msgUploadDDR = {
103
   ID_MESSAGE,
104
   {0,0},
105
   "Loading DDR ..."
106
};
107
 
108
Window wDDRUpload = {
109
   {16, 12, 68, 6},
110
   {WHITE, BLACK},
111
   "DDR Load",
112
   2,
113
   {&msgUploadDDR, &pbUpload}
114
};
115
 
116
/******************************************************************************
117 2 idiolatrie
 * Memory View                                                                *
118
 ******************************************************************************/
119
Window wFlashMemory = {
120
   {1, 1, 98, 15},
121
   {YELLOW, BLACK},
122
   "Flash Memory",
123
   0,
124
   NULL
125
};
126
 
127
Window wDDRMemory = {
128
   {1, 17, 98, 15},
129
   {YELLOW, BLACK},
130
   "DDR Memory",
131
   0,
132
   NULL
133
};
134
 
135
 
136
/******************************************************************************
137
 * Boot View                                                                  *
138
 ******************************************************************************/
139
#define OPTION_UPLOAD    0
140
#define OPTION_MEMORY    1
141
#define OPTION_START     2
142
 
143
MenuItem menuUpload = {
144
   "Upload image ..."
145
};
146
 
147
MenuItem menuMemory = {
148
   "View memory contents ..."
149
};
150
 
151
MenuItem menuStart = {
152
   "Start ..."
153
};
154
 
155
Menu menu = {
156
   ID_MENU,
157
   {0,0},
158
   OPTION_UPLOAD,
159
   3,
160
   { &menuUpload, &menuMemory, &menuStart }
161
};
162
 
163
Window wBoot = {
164
   {25, 12, 50, 7},
165
   {WHITE, BLACK},
166 5 idiolatrie
   "void Bootloader v0.2.2",
167 2 idiolatrie
   1,
168
   { &menu }
169
};
170
 
171
#endif

powered by: WebSVN 2.1.0

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