Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Killer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
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
Vytor Calixto
Killer
Commits
4f66bc89
Commit
4f66bc89
authored
10 years ago
by
Vytor Calixto
Browse files
Options
Downloads
Patches
Plain Diff
Adicionado arquivo handlerUART.s
parent
1ba27cc9
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cMIPS/include/handlers.s
+6
-6
6 additions, 6 deletions
cMIPS/include/handlers.s
cMIPS/tests/handlerUART.s
+15
-0
15 additions, 0 deletions
cMIPS/tests/handlerUART.s
with
21 additions
and
6 deletions
cMIPS/include/handlers.s
+
6
−
6
View file @
4f66bc89
...
...
@@ -108,11 +108,11 @@ UARTinterr:
#----------------------------------
#
while
you
are
developing
the
complete
handler
,
#
uncomment
the
line
below
and
comment
out
lines
up
to
UARTret
#
.
include
"../tests/handlerUART.s"
.
include
"../tests/handlerUART.s"
#----------------------------------
andi
$a0
,
$k1
,
UART_rx_irq
#
Is
this
reception
?
beq
$a0
,
$zero
,
UARTret
#
no
,
ignore
it
and
return
#
andi
$a0
,
$k1
,
UART_rx_irq
#
Is
this
reception
?
#
beq
$a0
,
$zero
,
UARTret
#
no
,
ignore
it
and
return
lui
$a0
,
%
hi
(
HW_uart_addr
)
ori
$a0
,
$a0
,
%
lo
(
HW_uart_addr
)
...
...
This diff is collapsed.
Click to expand it.
cMIPS/tests/handlerUART.s
0 → 100644
+
15
−
0
View file @
4f66bc89
#--------------------------------------------------------------------------
#
interrupt
handler
for
UART
RX
:
andi
$a0
,
$k1
,
UART_rx_irq
#
Is
this
reception
?
beq
$a0
,
$zero
,
TX
#
no
,
test
if
it
's transmission
nop
#
TODO
:
Read
data
,
store
it
to
buffer
and
decrement
nrx
(
we
're reading a char)
TX
:
andi
$a0
,
$k1
,
UART_tx_irq
#
Is
this
transmission
?
beq
$a0
,
$zero
,
END
#
no
,
end
handler
nop
#
TODO
:
Increment
ntx
(
we
're sending a char)
END
:
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