When to register termios devices?
Jan.Sommer at dlr.de
Jan.Sommer at dlr.de
Wed Nov 4 16:16:12 UTC 2020
> -----Original Message-----
> From: Sebastian Huber <sebastian.huber at embedded-brains.de>
> Sent: Wednesday, November 4, 2020 4:00 PM
> To: Sommer, Jan <Jan.Sommer at dlr.de>; users at rtems.org
> Subject: Re: When to register termios devices?
>
> Hello Jan,
>
> if it is a custom BSP, why don't you add it to the console driver of this BSP?
>
> If you add
>
> RTEMS_SYSINIT_ITEM(
>
> register_additional_termios,
>
> RTEMS_SYSINIT_DEVICE_DRIVERS,
>
> RTEMS_SYSINIT_ORDER_LAST_BUT_5
>
> );
>
Thanks, that worked perfectly.
I had the macro declared in a different file and somehow this made the call not show up in the final binary.
Is there some general rule where these declarations have to appear to be included?
I also struggle to comprehend the third parameter.
If one has multiple items declared for the same stage, I assume that the one with RTEMS_SYSINIT_ORDER_FIRST is called before RTEMS_SYSINIT_ORDER_SECOND.
What does ORDER_MIDDLE and ORDER_LAST_BUT_x mean?
Also is it legal to have e.g. RTEMS_SYSINIT_ORDER_FIRST a.s.o. declared twice for the same stage if the functions are different?
Cheers,
Jan
>
> to the module which defines bsp_start(), then your drivers are registered.
> They are also registered, when the application doesn't need them. So, doing
> a driver registration in the application configuration is not that bad.
>
> --
> Sebastian Huber, embedded brains GmbH
>
> Address : Dornierstr. 4, D-82178 Puchheim, Germany
> Phone : +49 89 189 47 41-16
> Fax : +49 89 189 47 41-09
> E-Mail : sebastian.huber at embedded-brains.de
> PGP : Public key available on request.
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the users
mailing list