Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tdc-core
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
hdl-core-lib
tdc-core
Commits
859c9361
Commit
859c9361
authored
13 years ago
by
Sebastien Bourdeauducq
Browse files
Options
Downloads
Patches
Plain Diff
demo: add rofreq command
parent
80ae39d8
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
demo/software/demo/Makefile
+1
-1
1 addition, 1 deletion
demo/software/demo/Makefile
demo/software/demo/main.c
+6
-1
6 additions, 1 deletion
demo/software/demo/main.c
with
7 additions
and
2 deletions
demo/software/demo/Makefile
+
1
−
1
View file @
859c9361
MMDIR
=
../..
include
$(MMDIR)/software/include.mak
OBJECTS
=
crt0.o main.o
OBJECTS
=
crt0.o main.o
tdc.o
SEGMENTS
=
-j
.text
-j
.data
-j
.rodata
all
:
demo.bin demo.h0 demo.h1 demo.h2 demo.h3
...
...
This diff is collapsed.
Click to expand it.
demo/software/demo/main.c
+
6
−
1
View file @
859c9361
/*
* Milkymist SoC (Software)
* Copyright (C) 2007, 2008, 2009, 2010 Sebastien Bourdeauducq
* Copyright (C) 2011 CERN
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -25,6 +26,8 @@
#include
<hw/gpio.h>
#include
<hw/uart.h>
#include
"tdc.h"
/* General address space functions */
#define NUMBER_OF_BYTES_ON_A_LINE 16
...
...
@@ -213,9 +216,11 @@ static void do_command(char *c)
else
if
(
strcmp
(
token
,
"mw"
)
==
0
)
mw
(
get_token
(
&
c
),
get_token
(
&
c
),
get_token
(
&
c
));
else
if
(
strcmp
(
token
,
"mc"
)
==
0
)
mc
(
get_token
(
&
c
),
get_token
(
&
c
),
get_token
(
&
c
));
else
if
(
strcmp
(
token
,
"crc"
)
==
0
)
crc
(
get_token
(
&
c
),
get_token
(
&
c
));
else
if
(
strcmp
(
token
,
"reboot"
)
==
0
)
reboot
();
/* payload */
else
if
(
strcmp
(
token
,
"rofreq"
)
==
0
)
rofreq
();
else
if
(
strcmp
(
token
,
""
)
!=
0
)
printf
(
"Command not found
\n
"
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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