From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6455 invoked by alias); 28 Sep 2007 10:06:10 -0000 Received: (qmail 6446 invoked by uid 22791); 28 Sep 2007 10:06:09 -0000 X-Spam-Check-By: sourceware.org Received: from pop132.ocn.ne.jp (HELO pop132.ocn.ne.jp) (60.37.31.215) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 28 Sep 2007 10:06:06 +0000 Received: from ariga (p1143-ipbf2202marunouchi.tokyo.ocn.ne.jp [122.17.131.143]) by pop132.ocn.ne.jp (OCN) with SMTP id l8SA62xx026577; Fri, 28 Sep 2007 19:06:03 +0900 (JST) Message-ID: <001501c801b7$2de8bed0$1c0110ac@ariga> From: "ariga masahiro" To: "Andrew Lunn" Cc: Date: Fri, 28 Sep 2007 10:06:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Question about interrupt trigger mode. X-SW-Source: 2007-09/txt/msg00150.txt.bz2 Hi, My target uses SMSC LAN91C111 chip,CPU is SH7709S. As ethernet interrupt,uses IRQ3 line. I build "net" template,eCos source is updated by CVS checkout. Please help me next 2 questions. (1) When IRQ3 aserted,enter into ISR routine,so far so good. But although IRQ3 line continually hold assert-state(LOW), and never chang to OFF(HIGH)state,ISR is repeatedly entered. My question is,if interrupt trigger mode is setted edge trigger mode, ISR routine is only entered once,isn't it ? I assume trigger mode is setted by next routine. packages\kernel\current\src\intr\intr.cxx HAL_INTERRUPT_CONFIGURE( vector, level, up ); or Cyg_Interrupt::configure_interrupt routine. I checked source but never found using HAL_INTERRUPT_CONFIGURE or Cyg_Interrupt::configure_interrupt. Is it only setted by default ? I like to quarantee it is working egde trigger mode. Could I know by cheching global area ? How should I do to be confirmed that ? (2) After IRQ3 was aserted,does eCos's SMSC LAN91C111 driver delete factors causing IRQ3 toward LAN chip ? If it does,and it is possible,please let me know where it is done ? Or is it user's responsibility to do in ISR ? Please enlighten me. Masahiro Ariga -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss