|
Defines |
#define | Joy_init() {DDRC &= ~0x40; PORTC |= 0x40; if(!Is_JTAG_enable()) {DDRF &= ~0xF0; PORTF |= 0xF0;}} |
#define | Is_joy_right() (Is_JTAG_enable() || (PINF & (1<<PINF7)) ? FALSE : TRUE) |
#define | Is_joy_not_right() ((!Is_JTAG_enable()) && (PINF & (1<<PINF7)) ? TRUE : FALSE) |
#define | Is_joy_select() (Is_JTAG_enable() || (PINF & (1<<PINF6)) ? FALSE : TRUE) |
#define | Is_joy_not_select() ((!Is_JTAG_enable()) && (PINF & (1<<PINF6)) ? TRUE : FALSE) |
#define | Is_joy_up() (Is_JTAG_enable() || (PINF & (1<<PINF5)) ? FALSE : TRUE) |
#define | Is_joy_not_up() ((!Is_JTAG_enable()) && (PINF & (1<<PINF5)) ? TRUE : FALSE) |
#define | Is_joy_left() (Is_JTAG_enable() || (PINF & (1<<PINF4)) ? FALSE : TRUE) |
#define | Is_joy_not_left() ((!Is_JTAG_enable()) && (PINF & (1<<PINF4)) ? TRUE : FALSE) |
#define | Is_joy_down() ((PINC & (1<<PINC6)) ? FALSE : TRUE) |
#define | Is_joy_not_down() ((PINC & (1<<PINC6)) ? TRUE : FALSE) |
#define | Switches_enable_it() |
| Enable interrupts for switches (no possible).
|
#define | Switches_disable_it() |
| Disable interrupts for switches (no possible).
|