public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: "Meiring, H, Mnr <meiring@sun.ac.za>" <meiring@sun.ac.za>
To: <ecos-devel@ecos.sourceware.org>
Subject: AT91SAM7 HAL and CDL
Date: Thu, 12 Jul 2007 15:57:00 -0000	[thread overview]
Message-ID: <FC829C66C7DA824A96A893C28F1B7AD969E88F@STBEVS01.stb.sun.ac.za> (raw)


Hi, I finally got started with the ATMEL AT91SAM7A2 port, but have a few questions regarding porting.

I still have some distance to go but if you can confirm the following pls, all the edited files should be provided for with a diff file for updating, and the new port provided in a tar and those sent to this list. 
How do I go about to change the directory structure?

As the hal structure currently stands 

Common HAL                                        -           Common HAL
ARM HAL                                              -           Architectural HAL
AT91 HAL                                             -           Variant HAL
AT91SAM7                                            -           Platform HAL
            AT91SAM7SEK             AT91SAM7XEK             AT91SAM7AEK-            Auxiliary HAL’s?

The AT91SAM7 platform HAL is currently located in the directory /AT91/AT91SAM7S/  
If the following could perhaps be changed in the /HAL/ARM/AT91/ folder: change at91sam7s directory name to at91sam7
Then:
\packages\hal\arm\at91\at91sam7\current\cdl\ hal_arm_at91sam7s.cdl 
=>        \packages\hal\arm\at91\at91sam7\current\cdl\ hal_arm_at91sam7.cdl

\packages\hal\arm\at91\at91sam7\current\src\at91sam7s_misc.c
=>        \packages\hal\arm\at91\at91sam7\current\src\at91sam7_misc.c

In the hal_arm_at91sam7.cdl file the following was changed:
compile       at91sam7s_misc.c
=>        compile       at91sam7_misc.c

And in the ecos.db file:

package CYGPKG_HAL_ARM_AT91SAM7 {
            alias                 { "Atmel AT91SAM7" hal_arm_at91sam7 arm_at91_sam7 }
            directory            hal/arm/at91/at91sam7
            script                hal_arm_at91sam7.cdl
            hardware
        description "
            The at91sam7 HAL package provides the support needed to run eCos on 
        an Atmel AT91SAM7 family of CPUs."
}

Further the AT91 variant HAL contains really allot of platform specific macros. I am willing to re-locate the macros that are more applicable to the AT91SAM7 platforms from the AT91 Variant HAL to the AT91SAM7 Platform HAL if the powers that be want me to.

The CDL question in “hal_arm_at91sam7s.cdl”: 
What is the default flavor of and cdl option if none is specified. How I understand it, it would be the same as flavour none, but that would make cdl_option CYGHWR_HAL_ARM_ AT91SAM7S etc redundent, or am I understanding this wrong?
If I am right, is line #3 not supposed to be    (!(“at91sam7s32” == CYGHWR_HAL_ARM_AT91SAM7) &&( CYGHWR_HAL_ARM_AT91SAM7S)) 

#1 cdl_option CYGBLD_HAL_ARM_AT91SAM7_USB {
#2        display       "USB device"
#3        active_if     {!( "at91sam7s32" == CYGHWR_HAL_ARM_AT91SAM7S) || 
#4                        CYGHWR_HAL_ARM_AT91SAM7X                     ||
#5                        CYGHWR_HAL_ARM_AT91SAM7XC}
#6        implements    CYGINT_DEVS_USB_AT91_HAS_USB
        default_value 1
        no_define
        description   "
            All but the AT91SAM7S32 and AT91SAM7A has the USB device"
    }

I first want to understand it before I start doing mad stuff....

Regards
Hendrik Meiring


                 reply	other threads:[~2007-07-12 15:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FC829C66C7DA824A96A893C28F1B7AD969E88F@STBEVS01.stb.sun.ac.za \
    --to=meiring@sun.ac.za \
    --cc=ecos-devel@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).