Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
TDC core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
TDC core
Commits
859c9361
Commit
859c9361
authored
Oct 24, 2011
by
Sebastien Bourdeauducq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo: add rofreq command
parent
80ae39d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
Makefile
demo/software/demo/Makefile
+1
-1
main.c
demo/software/demo/main.c
+6
-1
No files found.
demo/software/demo/Makefile
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
...
...
demo/software/demo/main.c
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
"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment