Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
Software for White Rabbit PTP Core
Commits
378b8dab
Commit
378b8dab
authored
Oct 09, 2020
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix uart console
parent
e215868d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
console.c
dev/console.c
+1
-0
simple_uart.c
dev/simple_uart.c
+1
-1
No files found.
dev/console.c
View file @
378b8dab
...
...
@@ -79,6 +79,7 @@ static int con_rx_internal(struct console_device* dev)
}
priv
->
state
=
CON_STATE_IDLE
;
}
return
rx_char
;
}
static
int
con_uart_put_string
(
struct
console_device
*
dev
,
const
char
*
s
)
...
...
dev/simple_uart.c
View file @
378b8dab
...
...
@@ -72,7 +72,7 @@ int suart_poll(struct simple_uart_device *dev)
int
suart_read_byte
(
struct
simple_uart_device
*
dev
)
{
if
(
suart_poll
(
dev
)
<
0
)
if
(
!
suart_poll
(
dev
)
)
return
-
1
;
return
readl
(
dev
->
base
+
UART_REG_RDR
)
&
0xff
;
...
...
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