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
549b4358
Commit
549b4358
authored
13 years ago
by
Sebastien Bourdeauducq
Browse files
Options
Downloads
Patches
Plain Diff
demo: reset TDC core at startup
parent
460cec86
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
demo/software/demo/main.c
+1
-1
1 addition, 1 deletion
demo/software/demo/main.c
demo/software/demo/tdc.c
+5
-0
5 additions, 0 deletions
demo/software/demo/tdc.c
demo/software/demo/tdc.h
+1
-0
1 addition, 0 deletions
demo/software/demo/tdc.h
with
7 additions
and
1 deletion
demo/software/demo/main.c
+
1
−
1
View file @
549b4358
...
...
@@ -284,8 +284,8 @@ int main(int i, char **c)
/* Display a banner as soon as possible to show that the system is alive */
putsnonl
(
banner
);
crcsw
();
tdc_reset
();
while
(
1
)
{
putsnonl
(
"\e[1mTDC>\e[0m "
);
...
...
This diff is collapsed.
Click to expand it.
demo/software/demo/tdc.c
+
5
−
0
View file @
549b4358
...
...
@@ -25,6 +25,11 @@
static
volatile
struct
TDC_WB
*
tdc
=
(
void
*
)
0xa0000000
;
void
tdc_reset
()
{
tdc
->
CS
=
TDC_CS_RST
;
}
void
rofreq
()
{
int
val
;
...
...
This diff is collapsed.
Click to expand it.
demo/software/demo/tdc.h
+
1
−
0
View file @
549b4358
...
...
@@ -19,6 +19,7 @@
#ifndef __TDC_H
#define __TDC_H
void
tdc_reset
();
void
rofreq
();
void
calinfo
();
void
mraw
();
...
...
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