Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software for White Rabbit PTP Core
Manage
Activity
Members
Labels
Plan
Issues
39
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
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
Projects
Software for White Rabbit PTP Core
Commits
e189da53
Commit
e189da53
authored
12 years ago
by
Tomasz Wlostowski
Committed by
Grzegorz Daniluk
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
dev/uart.c: now uart_read_byte() checks if there is data to be received
parent
5c4e478d
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dev/uart.c
+4
-1
4 additions, 1 deletion
dev/uart.c
with
4 additions
and
1 deletion
dev/uart.c
+
4
−
1
View file @
e189da53
...
...
@@ -38,5 +38,8 @@ int uart_poll()
int
uart_read_byte
()
{
return
uart
->
RDR
&
0xff
;
if
(
!
uart_poll
())
return
-
1
;
return
uart
->
RDR
&
0xff
;
}
\ No newline at end of file
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