Git
Wiki
Site
projects
/
soft
/
lpc122x
/
core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
421bffc
)
Make timer a parameter of the RGB led test function Remove RGB Led related code from...
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Sat, 4 Jan 2014 12:28:41 +0000
(13:28 +0100)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000
(17:03 +0100)
drivers/serial.c
patch
|
blob
|
history
diff --git
a/drivers/serial.c
b/drivers/serial.c
index
b8bb6f1
..
c9b1692
100644
(file)
--- a/
drivers/serial.c
+++ b/
drivers/serial.c
@@
-78,15
+78,9
@@
static void UART_Handler(struct uart_device* uart)
uint32_t intr = uart->regs->func.intr_pending;
if ((intr & LPC_UART_INT_MASK) == LPC_UART_INT_RX) {
- static int i = 0;
uint8_t data = uart->regs->func.buffer;
/* Echo */
uart->regs->func.buffer = data;
- /* Change RGB Led color */
- timer_set_match(LPC_TIMER_32B1, i++, data);
- if (i > 2) {
- i = 0;
- }
}
/* We are currently sending, send next char */
if ((intr & LPC_UART_INT_MASK) == LPC_UART_INT_TX) {
Techno-Innov
42 impasse de la Combe du Bois
01150 Blyes - France
contact@techno-innov.fr
Design et hébergement du site :
Techno-Innov
Techno-Innov
- SARL Coopérative
539 169 417 RCS Bourg-en-Bresse
Ce site n'utilise pas de cookies, désolé pour les gourmands !