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:
5b979f4
)
Do not change data dir for other pins !
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Sun, 29 Dec 2013 21:14:18 +0000
(22:14 +0100)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000
(17:03 +0100)
drivers/gpio.c
patch
|
blob
|
history
diff --git
a/drivers/gpio.c
b/drivers/gpio.c
index
de69999
..
351cd44
100644
(file)
--- a/
drivers/gpio.c
+++ b/
drivers/gpio.c
@@
-225,7
+225,7
@@
void status_led_config(void)
config_gpio(1, LED_GREEN, (LPC_IO_FUNC_ALT(0) | mode));
config_gpio(1, LED_RED, (LPC_IO_FUNC_ALT(0) | mode));
/* Configure both as output */
- gpio1->data_dir = (1 << LED_GREEN) | (1 << LED_RED);
+ gpio1->data_dir
|
= (1 << LED_GREEN) | (1 << LED_RED);
/* Turn both LEDs on */
//gpio1->set = (1 << LED_GREEN) | (1 << LED_RED);
gpio1->set = (1 << LED_GREEN);
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 !