aversive_10-03-12/projects/firefly_example1/firefly2_2.h File Reference

Go to the source code of this file.

Defines

#define INPUT_PIN   0
#define OUTPUT_PIN   1
#define SPI_SS   0
#define SCK   1
#define MOSI   2
#define CSN   0
#define LED_DDR   DDRE
#define LED_PORT   PORTE
#define LED_ORANGE   2
#define LED_BLUE   3
#define LED_GREEN   4
#define LED_RED   5
#define BUTTON_DDR   DDRA
#define BUTTON_PORT   PINA
#define BUTTON_PIN   7
#define DEBUG_0   3
#define DEBUG_1   4
#define DEBUG_2   0
#define DEBUG_3   1
#define SET(port, pin)   port |= (1<<(pin))
#define CLR(port, pin)   port &= ~(1<<(pin))
#define TST(port, pin)   ((port & (1<<(pin)))>>(pin))
#define LED_SET(led)   cbi(LED_PORT, (led))
#define LED_CLR(led)   sbi(LED_PORT, (led))


Define Documentation

#define BUTTON_DDR   DDRA

Definition at line 24 of file firefly2_2.h.

Referenced by init_ports().

#define BUTTON_PIN   7

Definition at line 26 of file firefly2_2.h.

Referenced by init_ports(), and main().

#define BUTTON_PORT   PINA

Definition at line 25 of file firefly2_2.h.

Referenced by main().

#define CLR ( port,
pin   )     port &= ~(1<<(pin))

Definition at line 40 of file firefly2_2.h.

#define CSN   0

Definition at line 13 of file firefly2_2.h.

#define DEBUG_0   3

Definition at line 29 of file firefly2_2.h.

#define DEBUG_1   4

Definition at line 30 of file firefly2_2.h.

#define DEBUG_2   0

Definition at line 31 of file firefly2_2.h.

#define DEBUG_3   1

Definition at line 32 of file firefly2_2.h.

#define INPUT_PIN   0

Definition at line 6 of file firefly2_2.h.

#define LED_BLUE   3

Definition at line 20 of file firefly2_2.h.

Referenced by init_ports(), ISR(), and main().

#define LED_CLR ( led   )     sbi(LED_PORT, (led))

Definition at line 48 of file firefly2_2.h.

Referenced by ISR(), and main().

#define LED_DDR   DDRE

Definition at line 17 of file firefly2_2.h.

Referenced by init_ports().

#define LED_GREEN   4

Definition at line 21 of file firefly2_2.h.

Referenced by init_ports(), ISR(), and main().

#define LED_ORANGE   2

Definition at line 19 of file firefly2_2.h.

Referenced by init_ports(), ISR(), and main().

#define LED_PORT   PORTE

Definition at line 18 of file firefly2_2.h.

#define LED_RED   5

Definition at line 22 of file firefly2_2.h.

Referenced by init_ports(), ISR(), and main().

#define LED_SET ( led   )     cbi(LED_PORT, (led))

Definition at line 47 of file firefly2_2.h.

Referenced by ISR(), and main().

#define MOSI   2

Definition at line 12 of file firefly2_2.h.

#define OUTPUT_PIN   1

Definition at line 7 of file firefly2_2.h.

#define SCK   1

Definition at line 11 of file firefly2_2.h.

#define SET ( port,
pin   )     port |= (1<<(pin))

Definition at line 39 of file firefly2_2.h.

#define SPI_SS   0

Definition at line 10 of file firefly2_2.h.

#define TST ( port,
pin   )     ((port & (1<<(pin)))>>(pin))

Definition at line 44 of file firefly2_2.h.

Referenced by main().


Generated on Fri Mar 12 06:32:07 2010 for AVR by  doxygen 1.5.6