Defines | |
| #define | Joy_init() (DDRB &= ~((1<<PINB7)|(1<<PINB6)|(1<<PINB5)), PORTB |= ((1<<PINB7)|(1<<PINB6)|(1<<PINB5)), DDRE &= ~((1<<PINE5)|(1<<PINE4)), PORTE |= ((1<<PINE5)|(1<<PINE4))) |
| #define | Is_btn_left() Is_hwb() |
| #define | Is_btn_middle() ((PINB & (1<<PINB5)) ? FALSE : TRUE) |
| #define | Is_btn_right() FALSE |
| #define | Is_joy_up() ((PINB & (1<<PINB7)) ? FALSE : TRUE) |
| #define | Is_joy_left() ((PINB & (1<<PINB6)) ? FALSE : TRUE) |
| #define | Is_joy_down() ((PINE & (1<<PINE5)) ? FALSE : TRUE) |
| #define | Is_joy_right() ((PINE & (1<<PINE4)) ? FALSE : TRUE) |
| #define | Is_btn_not_left() Is_not_hwb() |
| #define | Is_btn_not_middle() ((PINB & (1<<PINB5)) ? TRUE : FALSE) |
| #define | Is_btn_not_right() TRUE |
| #define | Is_joy_not_up() ((PINB & (1<<PINB7)) ? TRUE : FALSE) |
| #define | Is_joy_not_left() ((PINB & (1<<PINB6)) ? TRUE : FALSE) |
| #define | Is_joy_not_down() ((PINE & (1<<PINE5)) ? TRUE : FALSE) |
| #define | Is_joy_not_right() ((PINE & (1<<PINE4)) ? TRUE : FALSE) |
| #define | Switches_enable_it() |
Enable interrupts for switches (PINB5 to PINB7)
| |
| #define | Switches_disable_it() |
Disable interrupts for switches (PINB5 to PINB7)
| |
| #define Joy_init | ( | ) | (DDRB &= ~((1<<PINB7)|(1<<PINB6)|(1<<PINB5)), PORTB |= ((1<<PINB7)|(1<<PINB6)|(1<<PINB5)), DDRE &= ~((1<<PINE5)|(1<<PINE4)), PORTE |= ((1<<PINE5)|(1<<PINE4))) |
Definition at line 102 of file usb_key.h.
Referenced by device_mouse_task_init(), hid_task_init(), host_dfu_task_init(), host_ms_task_init(), and launch_test().
| #define Is_btn_middle | ( | ) | ((PINB & (1<<PINB5)) ? FALSE : TRUE) |
| #define Is_joy_up | ( | ) | ((PINB & (1<<PINB7)) ? FALSE : TRUE) |
Definition at line 108 of file usb_key.h.
Referenced by hid_report_in(), host_dfu_task(), and launch_test().
| #define Is_joy_left | ( | ) | ((PINB & (1<<PINB6)) ? FALSE : TRUE) |
Definition at line 109 of file usb_key.h.
Referenced by hid_report_in(), host_dfu_task(), host_ms_task(), and launch_test().
| #define Is_joy_down | ( | ) | ((PINE & (1<<PINE5)) ? FALSE : TRUE) |
| #define Is_joy_right | ( | ) | ((PINE & (1<<PINE4)) ? FALSE : TRUE) |
Definition at line 111 of file usb_key.h.
Referenced by hid_report_in(), host_ms_task(), and launch_test().
| #define Is_btn_not_middle | ( | ) | ((PINB & (1<<PINB5)) ? TRUE : FALSE) |
| #define Is_joy_not_up | ( | ) | ((PINB & (1<<PINB7)) ? TRUE : FALSE) |
| #define Is_joy_not_left | ( | ) | ((PINB & (1<<PINB6)) ? TRUE : FALSE) |
| #define Is_joy_not_down | ( | ) | ((PINE & (1<<PINE5)) ? TRUE : FALSE) |
| #define Is_joy_not_right | ( | ) | ((PINE & (1<<PINE4)) ? TRUE : FALSE) |
| #define Switches_enable_it | ( | ) |
| #define Switches_disable_it | ( | ) |
1.5.3