From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15817 invoked by alias); 6 Jun 2005 23:28:17 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 15785 invoked by uid 22791); 6 Jun 2005 23:28:14 -0000 Received: from postfix3-2.free.fr (HELO postfix3-2.free.fr) (213.228.0.169) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 06 Jun 2005 23:28:14 +0000 Received: from imp1-q.free.fr (imp1-q.free.fr [212.27.42.1]) by postfix3-2.free.fr (Postfix) with ESMTP id D313CC018 for ; Tue, 7 Jun 2005 01:28:12 +0200 (CEST) Received: by imp1-q.free.fr (Postfix, from userid 33) id A5EE5B4719; Mon, 6 Jun 2005 16:33:11 +0200 (MEST) Received: from sesame.thalesgroup.com (sesame.thalesgroup.com [195.101.39.67]) by imp1-q.free.fr (IMP) with HTTP for ; Mon, 6 Jun 2005 16:33:11 +0200 Message-ID: <1118068391.42a45ea7b812b@imp1-q.free.fr> Date: Mon, 06 Jun 2005 23:28:00 -0000 From: jpath@free.fr To: ecos-discuss@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 Subject: [ECOS] problem writing a serial hardware interface driver X-SW-Source: 2005-06/txt/msg00045.txt.bz2 Hello, I'm porting a BSP from PSOS to the HAL from ECOS (my target is a PPC860) for my application, and I have a problem writing my serial hardware interface driver. I already have all my I/O function "handlers" to attach to the DEVTAB_ENTRY/handlers, but I don't understand what is exactly done in the DEVTAB_ENTRY/"module_init" function. Here are my questions: 1) Is there a setup of the serial device driver already done in the ECOS's HAL (before the DEVTAB_ENTRY/init), or do I have to add MY driver setup in the hal_variant_init() or in the hal_platform_init()? 2) the DEVTAB_ENTRY/"init" function is said to be "called when eCos is initialized. This function can query the device, setup hardware, etc." When is it exactly called in the HAL? in which file? 3) What am I supposed to initialize exactly in the DEVTAB_ENTRY/init function? 4) Is there a "Print()" function furnished with ECOS to print messages on the console when my serial device driver will be installed? Sincerely yours, Jenny -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss