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
549b4358
Commit
549b4358
authored
Nov 04, 2011
by
Sebastien Bourdeauducq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo: reset TDC core at startup
parent
460cec86
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
main.c
demo/software/demo/main.c
+1
-1
tdc.c
demo/software/demo/tdc.c
+5
-0
tdc.h
demo/software/demo/tdc.h
+1
-0
No files found.
demo/software/demo/main.c
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 "
);
...
...
demo/software/demo/tdc.c
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
;
...
...
demo/software/demo/tdc.h
View file @
549b4358
...
...
@@ -19,6 +19,7 @@
#ifndef __TDC_H
#define __TDC_H
void
tdc_reset
();
void
rofreq
();
void
calinfo
();
void
mraw
();
...
...
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