summaryrefslogtreecommitdiff
path: root/nuttx/configs/teensy/src
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-06-20 02:35:20 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-06-20 02:35:20 +0000
commit59ec83c253ed8d24d6da0caf83284b2ff3fc86b6 (patch)
treef79e18849c6162bd22d42888977561f0765da8c8 /nuttx/configs/teensy/src
parente3a554007303d79b4656f361b4151130cdab7db8 (diff)
downloadpx4-nuttx-59ec83c253ed8d24d6da0caf83284b2ff3fc86b6.tar.gz
px4-nuttx-59ec83c253ed8d24d6da0caf83284b2ff3fc86b6.tar.bz2
px4-nuttx-59ec83c253ed8d24d6da0caf83284b2ff3fc86b6.zip
Preparing for AVR USB driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3725 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/teensy/src')
-rwxr-xr-xnuttx/configs/teensy/src/up_leds.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/nuttx/configs/teensy/src/up_leds.c b/nuttx/configs/teensy/src/up_leds.c
index 9ca1499f0..7aabae5c3 100755
--- a/nuttx/configs/teensy/src/up_leds.c
+++ b/nuttx/configs/teensy/src/up_leds.c
@@ -126,7 +126,7 @@ void up_ledon(int led)
switch (led)
{
- case 0:
+ case 0:
/* The steady state is OFF */
g_ncoff = true;
@@ -135,18 +135,18 @@ void up_ledon(int led)
/* Turn the LED off */
PORTD &= ~(1 << 6);
- break;
+ break;
- case 1:
- /* Turn the LED on */
+ case 1:
+ /* The steady state is ON */
PORTD |= (1 << 6);
g_ncoff = false;
- break;
+ break;
- default:
- return;
- }
+ default:
+ return;
+ }
}
/****************************************************************************
@@ -168,7 +168,7 @@ void up_ledoff(int led)
switch (led)
{
- case 2:
+ case 2:
/* If the "no-change" state is OFF, then turn the LED off */
if (g_ncoff)
@@ -177,18 +177,18 @@ void up_ledoff(int led)
break;
}
- /* Otherwise, fall through to turn the LED ON */
+ /* Otherwise, fall through to turn the LED ON */
- case 0:
- case 1:
+ case 0:
+ case 1:
/* Turn the LED on */
PORTD |= (1 << 6);
- break;
+ break;
- default:
- return;
- }
+ default:
+ return;
+ }
}
#endif /* CONFIG_ARCH_LEDS */