[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] external interrupt sample code
From: |
E. Weddington |
Subject: |
Re: [avr-gcc-list] external interrupt sample code |
Date: |
Wed, 14 Apr 2004 22:02:42 -0600 |
On 15 Apr 2004 at 9:58, Ian Caddy wrote:
> Hi David,
>
> Here is a snipit of code from our system where we use INT0:
>
> /* Now lastly we enable the HINT interrupt on INT0, on falling edge */
> outp(BV(ISC01) , EICRA);
> outp(BV(INT0) , EIMSK);
>
Note that the outp, inp, outb, inb macros are all deprecated. You should do:
EICRA = BV(ISC01);
EIMSK = BV(INT0);