[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RTEMs config_leon3_drvmgr.c help



Hi,

No, it's not obvious. You have to declare your own grlib_amba_bus structure:

struct ambapp_bus grlib_amba_bus =
{
    .mmaps = NULL,
    .root = NULL
};

You will then use it in grlib_bus_config struct along with your driver
resources struct. You can figure this out by looking to the examples and
understanding section 2 of:

ftp://gaisler.com/gaisler.com/rcc/doc/rtems-gaisler-drivers-1.1.99.13.0.pdf


Best,
JM


On Fri, Dec 3, 2010 at 11:12 AM, Matthews, Lee <l.matthews at imperial.ac.uk>wrote:

>  Hi All,
>
>
>
> I?m a complete beginner to RTEMs and I?m having some problems getting some
> example code to compile correctly, I?d appreciate a hand if anyone is able.
>
>
>
> Essentially  I?m developing for  an Aeroflex Gaisler LEON3 processor that
> is running on a Pender GR-CPCI-AX2000 development board.
>
>
>
> I installed Aeroflex Gaisler?s debug monitor GRTOOLs package which also
> installed a set of rtems example code.
>
>
>
> I?m developing using  Eclipse (v1.3) on top of which I installed the rtems
> plugin (v1.4 from http://www.rtems.com/ftp/pub/rtems/eclipse/updates/) on
> a windows XP machine.
>
>
>
> I can get some of the simple hello world type examples to compile ok, then
> upload and run them on the LEON3 processor without problems.
>
>
>
> However, I?m now trying to get the spacewire example working
> (rtems-spwtest-2boards.c) without much luck. When the compiler reaches the
> file config_leon3_drvmgr.c (included as an attachment), it produces the
> following compilation error :  'ambapp_root' undeclared (first use in this
> function)
>
>
>
> The problem seems to come from this bit of code :
>
>
>
> void system_init2(void)
>
> {
>
>                 /* LEON3 AMBA PnP bus */
>
>                 grlib_amba_bus.mmaps = NULL;
>
>                 grlib_amba_bus.root = ambapp_root;
>
>
>
>                 /* Register GRLIB root bus */
>
>                 drv_mgr_grlib_init(&grlib_bus_config);
>
> }
>
>
>
> It assigns grlib_amba_bus.root  to ambapp_root, but I can?t seem to find a
> declaration of the ambapp_root variable anywhere. Am I missing something
> glaringly obvious?
>
>
>
> Thanks in advance.
>
>
>
> Best wishes,
>
> Lee Matthews
>
>
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rtems.org/pipermail/rtems-users/attachments/20101203/58a7a3aa/attachment.html>