This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | VBUS_SENSE_PORT PORTC |
#define | VBUS_SENSE_PIN PINC |
#define | VBUS_SENSE_DDR DDRC |
#define | VBUS_SENSE_IO 4 |
#define | Leds_init() (DDRD |= 0x33, PORTD &= ~0x33) |
#define | Led0_on() (PORTD |= 0x01) |
#define | Led0_off() (PORTD &= ~0x01) |
#define | Led0_toggle() (PORTD ^= 0x01) |
#define | Led1_on() (PORTD |= 0x02) |
#define | Led1_off() (PORTD &= ~0x02) |
#define | Led1_toggle() (PORTD ^= 0x02) |
#define | Led2_on() (PORTD |= 0x10) |
#define | Led2_off() (PORTD &= ~0x10) |
#define | Led2_toggle() (PORTD ^= 0x10) |
#define | Led3_on() (PORTD |= 0x20) |
#define | Led3_off() (PORTD &= ~0x20) |
#define | Led3_toggle() (PORTD ^= 0x20) |
#define | Leds_set_val(c) (Leds_off(),PORTD |= (c&0x03)+((c&0x0C)<<2)) |
#define | Leds_get_val() ((PORTD&0x30)>>2+(PORTD&0x03)) |
#define | Leds_off() (PORTD &= ~0x33) |
#define | Joy_init() (DDRB &= ~0xF1, PORTB |= 0xF1) |
#define | Push_button_init() Joy_init() |
#define | Is_joy_left() (((PINB&0x10) == 0) ? TRUE : FALSE) |
#define | Is_joy_not_left() (((PINB&0x10) == 0) ? FALSE : TRUE) |
#define | Is_button_left() Is_joy_left() |
#define | Is_button_not_left() Is_joy_not_left() |
#define | Is_joy_middle() (((PINB&0x01) == 0) ? TRUE : FALSE) |
#define | Is_joy_not_middle() (((PINB&0x01) == 0) ? FALSE : TRUE) |
#define | Is_joy_select() Is_joy_middle() |
#define | Is_joy_not_select() Is_joy_not_middle() |
#define | Is_button_middle() Is_joy_middle() |
#define | Is_button_not_middle() Is_joy_not_middle() |
#define | Is_joy_right() (((PINB&0x40) == 0) ? TRUE : FALSE) |
#define | Is_joy_not_right() (((PINB&0x40) == 0) ? FALSE : TRUE) |
#define | Is_button_right() Is_joy_right() |
#define | Is_button_not_right() Is_joy_not_right() |
#define | Is_joy_down() (((PINB&0x80) == 0) ? TRUE : FALSE) |
#define | Is_joy_not_down() (((PINB&0x80) == 0) ? FALSE : TRUE) |
#define | Is_button_down() Is_joy_down() |
#define | Is_button_not_down() Is_joy_not_down() |
#define | Is_joy_up() (((PINB&0x20) == 0) ? TRUE : FALSE) |
#define | Is_joy_not_up() (((PINB&0x20) == 0) ? FALSE : TRUE) |
#define | Is_button_up() Is_joy_up() |
#define | Is_button_not_up() Is_joy_not_up() |
#define | Hwb_button_init() (DDRD &= ~0x80) |
#define | Is_hwb() (((PIND&0x80) == 0) ? TRUE : FALSE) |
#define | DF_8_MB |
Macros to init the environnement for DF on Philips Wired mouse board. | |
#define | DF_SELECT_MEM 0 |
#define | DF_UNSELECT_MEM 1 |
#define | DF_NB_MEM 1 |
#define | Init_df_stk526() (DDRC_Bit2=1,PORTC_Bit2=1,DDRB_Bit0=1) |
#define | DF_CS_PIN PORTC_Bit2 |
#define | DF_CS0 DF_CS_PIN |
#define | DF_CS1 DF_CS0 |
#define | DF_CS2 DF_CS0 |
#define | DF_CS3 DF_CS0 |
#define | Df_select_df(i, val) (DF_CS##i = val) |
#define | Df_desel_all() (DF_CS0=DF_UNSELECT_MEM) |
#define | df_init_spi() Init_df_stk526() |
#define Leds_init | ( | ) | (DDRD |= 0x33, PORTD &= ~0x33) |
#define Led0_toggle | ( | ) | (PORTD ^= 0x01) |
#define Led3_toggle | ( | ) | (PORTD ^= 0x20) |
#define Leds_set_val | ( | c | ) | (Leds_off(),PORTD |= (c&0x03)+((c&0x0C)<<2)) |
#define Joy_init | ( | ) | (DDRB &= ~0xF1, PORTB |= 0xF1) |
#define Is_joy_left | ( | ) | (((PINB&0x10) == 0) ? TRUE : FALSE) |
#define Is_joy_not_left | ( | ) | (((PINB&0x10) == 0) ? FALSE : TRUE) |
#define Is_joy_middle | ( | ) | (((PINB&0x01) == 0) ? TRUE : FALSE) |
#define Is_joy_not_middle | ( | ) | (((PINB&0x01) == 0) ? FALSE : TRUE) |
#define Is_joy_select | ( | ) | Is_joy_middle() |
#define Is_joy_right | ( | ) | (((PINB&0x40) == 0) ? TRUE : FALSE) |
#define Is_joy_not_right | ( | ) | (((PINB&0x40) == 0) ? FALSE : TRUE) |
#define Is_joy_down | ( | ) | (((PINB&0x80) == 0) ? TRUE : FALSE) |
#define Is_joy_not_down | ( | ) | (((PINB&0x80) == 0) ? FALSE : TRUE) |
#define Is_joy_up | ( | ) | (((PINB&0x20) == 0) ? TRUE : FALSE) |
#define Is_joy_not_up | ( | ) | (((PINB&0x20) == 0) ? FALSE : TRUE) |
#define Hwb_button_init | ( | ) | (DDRD &= ~0x80) |
#define Is_hwb | ( | ) | (((PIND&0x80) == 0) ? TRUE : FALSE) |
#define DF_8_MB |
#define Init_df_stk526 | ( | ) | (DDRC_Bit2=1,PORTC_Bit2=1,DDRB_Bit0=1) |