Contiki 2.5
Functions
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. More...
 
int8u halGpioGetPxIN (int32u gpio)
 Read single GPIO bit from PxIN. More...
 
void leds_arch_init (void)
 Leds implementation.
 

Detailed Description

           Leds.
Author
Salvatore Pitrulli salvo.nosp@m.pitr.nosp@m.u@use.nosp@m.rs.s.nosp@m.ource.nosp@m.forg.nosp@m.e.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.