Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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
Simple PCIe FMC carrier SPEC - Software
Commits
ddec2e35
Commit
ddec2e35
authored
May 31, 2012
by
root
Committed by
Alessandro Rubini
Jul 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec-vuart: wait until TX is ready before transmitting a byte
parent
ab412e32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
spec-vuart.c
tools/spec-vuart.c
+1
-0
wb_uart.h
tools/wb_uart.h
+1
-0
No files found.
tools/spec-vuart.c
View file @
ddec2e35
...
...
@@ -26,6 +26,7 @@ int vc_rx(void *ptr)
void
vc_tx
(
void
*
ptr
,
int
c
)
{
while
(
*
(
int
*
)(
ptr
+
UART_REG_SR
)
&
UART_SR_RX_RDY
);
*
(
int
*
)(
ptr
+
UART_REG_HOST_TDR
)
=
UART_HOST_TDR_DATA_W
(
c
);
}
...
...
tools/wb_uart.h
View file @
ddec2e35
...
...
@@ -85,6 +85,7 @@
#define UART_HOST_RDR_COUNT_W(value) WBGEN2_GEN_WRITE(value, 9, 16)
#define UART_HOST_RDR_COUNT_R(reg) WBGEN2_GEN_READ(reg, 9, 16)
#define UART_REG_SR 0x0
#define UART_REG_HOST_TDR 0x10
#define UART_REG_HOST_RDR 0x14
...
...
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