Contiki 2.6

leds-arch.c File Reference

Leds. More...

#include "hal/micro/led.h"
#include "hal/micro/micro-common.h"
#include "hal/micro/cortexm3/micro-common.h"
#include "contiki-conf.h"
#include "dev/leds.h"

Go to the source code of this file.

Functions

int8u halGpioGetPxOUT (int32u gpio)
 Read single GPIO bit from PxOUT.
int8u halGpioGetPxIN (int32u gpio)
 Read single GPIO bit from PxIN.
void leds_arch_init (void)
 Leds implementation.

Detailed Description

Leds.

Author:
Salvatore Pitrulli <salvopitru@users.sourceforge.net>

Definition in file leds-arch.c.


Function Documentation

int8u halGpioGetPxIN ( int32u  gpio)

Read single GPIO bit from PxIN.

Parameters:
ioThe io pin to use, can be specified with the convenience macros PORTA_PIN(), PORTB_PIN(), PORTC_PIN()
Returns:
Bit value: 1 if bit is set, 0 otherwise.

Definition at line 79 of file leds-arch.c.

References BIT.

int8u halGpioGetPxOUT ( int32u  gpio)

Read single GPIO bit from PxOUT.

Parameters:
ioThe io pin to use, can be specified with the convenience macros PORTA_PIN(), PORTB_PIN(), PORTC_PIN()
Returns:
Bit value: 1 if bit is set, 0 otherwise.

Definition at line 62 of file leds-arch.c.

References BIT.