summaryrefslogtreecommitdiff
path: root/bsp/mini2440/drivers/led.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/mini2440/drivers/led.c')
-rw-r--r--bsp/mini2440/drivers/led.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bsp/mini2440/drivers/led.c b/bsp/mini2440/drivers/led.c
index 3cc830012e..88e83d33ef 100644
--- a/bsp/mini2440/drivers/led.c
+++ b/bsp/mini2440/drivers/led.c
@@ -18,19 +18,19 @@
void rt_hw_led_init(void)
{
- /* GPB5,GPB6,GPB7,GPB8 for LED */
- GPBCON = GPBCON & (~(0xff << 10)) | (0x55 << 10);
- GPBUP |= (0x0f << 5);
+ /* GPB5,GPB6,GPB7,GPB8 for LED */
+ GPBCON = GPBCON & (~(0xff << 10)) | (0x55 << 10);
+ GPBUP |= (0x0f << 5);
}
void rt_hw_led_on(unsigned char value)
{
- GPBDAT &= ~ ((value & 0x0f) << 5);
+ GPBDAT &= ~ ((value & 0x0f) << 5);
}
void rt_hw_led_off(unsigned char value)
{
- GPBDAT |= (value & 0x0f) << 5;
+ GPBDAT |= (value & 0x0f) << 5;
}
/*@}*/