diff options
Diffstat (limited to 'converter/ibm4704_usb/config.h')
| -rw-r--r-- | converter/ibm4704_usb/config.h | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/converter/ibm4704_usb/config.h b/converter/ibm4704_usb/config.h index 812d95c67..4f267b3b7 100644 --- a/converter/ibm4704_usb/config.h +++ b/converter/ibm4704_usb/config.h | |||
| @@ -41,9 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 41 | 41 | ||
| 42 | 42 | ||
| 43 | 43 | ||
| 44 | /* | 44 | /* Pin configuration */ |
| 45 | * Busywait | ||
| 46 | */ | ||
| 47 | #define IBM4704_CLOCK_PORT PORTD | 45 | #define IBM4704_CLOCK_PORT PORTD |
| 48 | #define IBM4704_CLOCK_PIN PIND | 46 | #define IBM4704_CLOCK_PIN PIND |
| 49 | #define IBM4704_CLOCK_DDR DDRD | 47 | #define IBM4704_CLOCK_DDR DDRD |
| @@ -53,19 +51,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 53 | #define IBM4704_DATA_DDR DDRD | 51 | #define IBM4704_DATA_DDR DDRD |
| 54 | #define IBM4704_DATA_BIT 0 | 52 | #define IBM4704_DATA_BIT 0 |
| 55 | 53 | ||
| 56 | /* | 54 | /* Pin interrupt on rising edge */ |
| 57 | * Pin interrupt | 55 | #define IBM4704_INT_INIT() do { EICRA |= ((1<<ISC11)|(0<<ISC10)); } while (0) |
| 58 | */ | 56 | #define IBM4704_INT_ON() do { EIMSK |= (1<<INT1); } while (0) |
| 59 | #define IBM4704_INT_INIT() do { \ | 57 | #define IBM4704_INT_OFF() do { EIMSK &= ~(1<<INT1); } while (0) |
| 60 | EICRA |= ((1<<ISC11) | \ | ||
| 61 | (0<<ISC10)); \ | ||
| 62 | } while (0) | ||
| 63 | #define IBM4704_INT_ON() do { \ | ||
| 64 | EIMSK |= (1<<INT1); \ | ||
| 65 | } while (0) | ||
| 66 | #define IBM4704_INT_OFF() do { \ | ||
| 67 | EIMSK &= ~(1<<INT1); \ | ||
| 68 | } while (0) | ||
| 69 | #define IBM4704_INT_VECT INT1_vect | 58 | #define IBM4704_INT_VECT INT1_vect |
| 70 | 59 | ||
| 71 | 60 | ||
