Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
openocd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
openocd
Commits
89a8a379
Commit
89a8a379
authored
15 years ago
by
oyvind
Browse files
Options
Downloads
Patches
Plain Diff
Switch from svn to git version string handling.
parent
76b4ee89
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/jtag/zy1000/zy1000.c
+4
-7
4 additions, 7 deletions
src/jtag/zy1000/zy1000.c
with
4 additions
and
7 deletions
src/jtag/zy1000/zy1000.c
+
4
−
7
View file @
89a8a379
...
...
@@ -23,15 +23,15 @@
#include
"embeddedice.h"
#include
"minidriver.h"
#include
"interface.h"
#include
"zy1000_version.h"
#include
<cyg/hal/hal_io.h>
// low level i/o
#include
<cyg/hal/hal_diag.h>
#define ZYLIN_VERSION "1.55"
#define ZYLIN_VERSION GIT_ZY1000_VERSION
#define ZYLIN_DATE __DATE__
#define ZYLIN_TIME __TIME__
#define ZYLIN_OPENOCD
"$Revision$"
#define ZYLIN_OPENOCD
GIT_OPENOCD_VERSION
#define ZYLIN_OPENOCD_VERSION "Zylin JTAG ZY1000 " ZYLIN_VERSION " " ZYLIN_DATE " " ZYLIN_TIME
/* low level command set
...
...
@@ -270,10 +270,7 @@ static int jim_zy1000_version(Jim_Interp *interp, int argc, Jim_Obj *const *argv
const
char
*
str
=
Jim_GetString
(
argv
[
1
],
NULL
);
if
(
strcmp
(
"openocd"
,
str
)
==
0
)
{
int
revision
;
revision
=
atol
(
ZYLIN_OPENOCD
+
strlen
(
"XRevision: "
));
sprintf
(
buff
,
"%d"
,
revision
);
version_str
=
buff
;
version_str
=
ZYLIN_OPENOCD
;
}
else
if
(
strcmp
(
"zy1000"
,
str
)
==
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment