From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16507 invoked by alias); 20 Nov 2008 15:23:58 -0000 Received: (qmail 16458 invoked by uid 22791); 20 Nov 2008 15:23:57 -0000 X-Spam-Check-By: sourceware.org Received: from ey-out-1920.google.com (HELO ey-out-1920.google.com) (74.125.78.146) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 20 Nov 2008 15:23:06 +0000 Received: by ey-out-1920.google.com with SMTP id 4so231987eyg.24 for ; Thu, 20 Nov 2008 07:23:03 -0800 (PST) Received: by 10.86.100.19 with SMTP id x19mr1653072fgb.29.1227194582893; Thu, 20 Nov 2008 07:23:02 -0800 (PST) Received: from localhost (212-41-71-184.adsl.solnet.ch [212.41.71.184]) by mx.google.com with ESMTPS id e11sm2464089fga.9.2008.11.20.07.23.00 (version=SSLv3 cipher=RC4-MD5); Thu, 20 Nov 2008 07:23:01 -0800 (PST) Date: Thu, 20 Nov 2008 15:34:00 -0000 To: MailingList:ecos-discuss ; Reply-To: Bob.Brusa@gmail.com Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: User-Agent: Opera Mail/9.62 (Linux) From: Robert Brusa 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] priority of main thread X-SW-Source: 2008-11/txt/msg00159.txt.bz2 Hi, in my system, I have a cyg_user_start() as well as a main() function. The first includes calls to initialize various modules. main() contains an eternal loop and is assumed to work as a normal thread. The problem is that main produces a hanger when I call cyg_spi_transfer to read my onboard-RTC. When using this RTC-module in a test program with a single thread it works. It also works (in main) when I change the transfer-mode to polling. This let me think that there is some kind of priority problem. How can I access and manipulate the priority of main? I have no handle for this thread. Thanks for advice. Robert -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss