From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7585 invoked by alias); 4 May 2007 09:40:32 -0000 Received: (qmail 7567 invoked by uid 22791); 4 May 2007 09:40:32 -0000 X-Spam-Check-By: sourceware.org Received: from smtp20.orange.fr (HELO smtp20.orange.fr) (80.12.242.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 04 May 2007 09:40:23 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2007.orange.fr (SMTP Server) with ESMTP id 68ECD1C0008B for ; Fri, 4 May 2007 11:40:20 +0200 (CEST) Received: from [192.168.1.5] (ASt-Lambert-153-1-107-141.w90-2.abo.wanadoo.fr [90.2.34.141]) by mwinf2007.orange.fr (SMTP Server) with ESMTP id 4AFE31C0008D for ; Fri, 4 May 2007 11:40:20 +0200 (CEST) X-ME-UUID: 20070504094020307.4AFE31C0008D@mwinf2007.orange.fr Message-ID: <463AFFE8.10703@pragmadev.com> Date: Fri, 04 May 2007 09:40:00 -0000 From: LONY David User-Agent: Mozilla Thunderbird 1.0.2-6 (X11/20050513) MIME-Version: 1.0 To: ecos-discuss@ecos.sourceware.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 def_alm (UITRON) X-SW-Source: 2007-05/txt/msg00029.txt.bz2 Hi all, I wrote a small program which define an alarm (def_alm function). I wanted to know if eCos with UITRON compatibilty support extended informations (VP attribute) and if it supported how I can have them when the handler (alarm_hand) is called. This is my program : #include #include void alarm_hand(void* a) { char test_chaine[]="test chaine"; printf("In alarm_hand param a-->%s test_chaine--->%s\n",a,test_chaine); } int main() { T_DALM dalm; int retval; char chaine[]="salut"; VP info = (VP)chaine; dalm.exinf = (VP)info; dalm.almatr = TA_HLNG; dalm.almhdr = (FP)&alarm_hand; dalm.tmmode = TTM_REL; dalm.almtim = 1000; retval = def_alm(20, &dalm); if(retval != E_OK) { printf("Error --> Cannot create a alarm in main %d !!!\n",retval); } else { printf("Good --> I succeded to create a alarm in main! \n"); printf("I finish to create a alarm and RETVAL equals %d\n",retval); } return 0; } Does I make something wrong ? I debug this program in GDB, and I cannot have the extended information.... This is GDB output : Good --> I succeded to create a alarm in main! I finish to create a alarm and RETVAL equals 0 In alarm_hand param a--> test_chaine--->test chaine Thanks a lot. David -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss