[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] calling i2cMasterSendNI from SIG_OVERFLOW0
From: |
Joerg Wunsch |
Subject: |
Re: [avr-libc-dev] calling i2cMasterSendNI from SIG_OVERFLOW0 |
Date: |
Fri, 26 Dec 2003 13:46:48 +0100 |
User-agent: |
Mutt/1.2.5i |
As Vinnie Moscaritolo wrote:
> I noticed that every now and then the processor hangs.. I am
> wondering if the i2cMasterSendNI can be called safely at interrupt
> time, and if so maybe there is something that I don't know?
You'd better ask whomever wrote your i2cMasterSendNI() -- it's not
part of avr-libc.
In general, it's a bad idea to do anything time-expensive from within
an interrupt routine. My guess is that I²C bus handling can become
pretty time-intensive, depending of the state of the bus.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/