#include "led_types.h"
#include "types.h"
#include <stdint.h>
Go to the source code of this file.
◆ LED_NUM
Definition at line 9 of file led.h.
◆ LED_Clear()
Clears the LEDs.
Definition at line 32 of file led.c.
◆ LED_Deinit()
Definition at line 11 of file led.c.
12{
13 LPC_GPIO2->FIODIR &= ~0xFF;
14}
◆ LED_Init()
Definition at line 4 of file led.c.
5{
6 LPC_PINCON->PINSEL4 &= 0xFFFF0000;
7 LPC_GPIO2->FIODIR |= 0xFF;
9}
void LED_Off(u8 which)
Turns off the specified LEDs.
◆ LED_Off()
Turns off the specified LEDs.
- Parameters
-
leds | Bitmask of LEDs to turn off [LED(0..7)] |
Definition at line 21 of file led.c.
22{
23 LPC_GPIO2->FIOCLR = which;
24}
◆ LED_On()
Turns on the specified LEDs.
- Parameters
-
leds | Bitmask of LEDs to turn on [LED(0..7)] |
Definition at line 16 of file led.c.
17{
18 LPC_GPIO2->FIOSET = which;
19}
◆ LED_Output()
void LED_Output |
( |
u8 |
value | ) |
|
Displays the value using LEDs.
- Parameters
-
value | The 8 bit value to display |
Definition at line 26 of file led.c.
27{
30}
void LED_On(u8 which)
Turns on the specified LEDs.