summaryrefslogtreecommitdiff
path: root/nuttx/configs/eagle100/src/up_leds.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/eagle100/src/up_leds.c')
-rw-r--r--nuttx/configs/eagle100/src/up_leds.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/configs/eagle100/src/up_leds.c b/nuttx/configs/eagle100/src/up_leds.c
index 2b8dcfb6b..bf23b1eaa 100644
--- a/nuttx/configs/eagle100/src/up_leds.c
+++ b/nuttx/configs/eagle100/src/up_leds.c
@@ -70,6 +70,10 @@
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
{
+ /* Make sure that the GPIOE peripheral is enabled */
+
+ modifyreg32(LM3S_SYSCON_RCGC2_OFFSET, 0, SYSCON_RCGC2_GPIOE);
+
/* Configure Port E, Bit 1 as an output, initial value=OFF */
lm3s_configgpio(GPIO_DIR_OUTPUT | GPIO_VALUE_ZERO | GPIO_PORTE | 1);