Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
NanoSoC Tech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
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
Show more breadcrumbs
SoCLabs
NanoSoC Tech
Commits
739d8879
Commit
739d8879
authored
1 year ago
by
dwf1m12
Browse files
Options
Downloads
Patches
Plain Diff
enhance getc from FT1248/UART to support adp test
parent
6e12d2aa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
software/common/retarget/uart_stdout.c
+3
-7
3 additions, 7 deletions
software/common/retarget/uart_stdout.c
with
3 additions
and
7 deletions
software/common/retarget/uart_stdout.c
+
3
−
7
View file @
739d8879
...
...
@@ -94,13 +94,9 @@ unsigned char UartPutc(unsigned char my_ch)
// Get a character
unsigned
char
UartGetc
(
void
)
{
if
((
CMSDK_USRT2
->
CTRL
&
1
)
==
0
)
{
while
((
CMSDK_UART2
->
STATE
&
2
)
==
0
);
return
(
CMSDK_UART2
->
DATA
);
}
else
{
while
((
CMSDK_USRT2
->
STATE
&
2
)
==
0
);
return
(
CMSDK_USRT2
->
DATA
);
}
while
(((
CMSDK_UART2
->
STATE
&
2
)
==
0
)
&
((
CMSDK_USRT2
->
STATE
&
2
)
==
0
));
if
((
CMSDK_UART2
->
STATE
&
2
)
==
2
)
return
(
CMSDK_UART2
->
DATA
);
if
((
CMSDK_USRT2
->
STATE
&
2
)
==
2
)
return
(
CMSDK_USRT2
->
DATA
);
}
void
UartEndSimulation
(
void
)
...
...
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