Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
cm-projects
RIOT
Commits
fe594126
Commit
fe594126
authored
9 years ago
by
Kaspar Schleiser
Browse files
Options
Downloads
Patches
Plain Diff
cpu: x86: remove obsolete uart0 code
parent
f433c9a5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/x86/x86_uart.c
+0
-33
0 additions, 33 deletions
cpu/x86/x86_uart.c
with
0 additions
and
33 deletions
cpu/x86/x86_uart.c
+
0
−
33
View file @
fe594126
...
...
@@ -97,39 +97,6 @@ ssize_t x86_uart_read(char *buf, size_t len)
return
read
;
}
#ifdef MODULE_UART0
static
void
com_handler
(
uint8_t
irq_num
)
{
(
void
)
irq_num
;
/* == UART_IRQ */
switch
(
inb
(
UART_PORT
+
IIR
)
&
IIR_INT_MASK
)
{
case
IIR_INT_BR
:
{
while
(
is_input_empty
())
{
asm
volatile
(
"pause"
);
}
do
{
uint8_t
c
=
inb
(
UART_PORT
+
RBR
);
uart0_handle_incoming
(
c
);
}
while
(
!
is_input_empty
());
uart0_notify_thread
();
break
;
}
case
IIR_INT_TH
:
case
IIR_INT_LS
:
case
IIR_INT_TO
:
default:
break
;
}
}
#endif
/* ifdef MODULE_UART0 */
void
x86_init_uart
(
void
)
{
#ifdef MODULE_UART0
x86_pic_set_handler
(
UART_IRQ
,
com_handler
);
x86_pic_enable_irq
(
UART_IRQ
);
outb
(
UART_PORT
+
IER
,
IER_RECV
);
/* Enable receive interrupt */
puts
(
"UART initialized"
);
#endif
}
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