Re: Device driver initialization sequence

2018-11-09 Thread Ярослав Лещинский
I've tried the variant with posix descriptor and got an error when trying to call close(fd). Program crashed with RTEMS_FATAL_SOURCE_EXCEPTION. 107 rv = IMFS_make_generic_node( 108 "/dev/gpio", 109 S_IFCHR | S_IRWXU | S_IRWXG | S_IRWXO, 110 &gpio_node_contro

Re: Device driver initialization sequence

2018-11-09 Thread Ярослав Лещинский
Hello Sebastian, Thank you. This looks like what I needed. On Fri, 9 Nov 2018 at 13:32, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Hello Yaroslav, > > the initialization sequence is documented here: > > > https://docs.rtems.org/branches/master/c-user/initialization.html#initi

Re: Device driver initialization sequence

2018-11-09 Thread Sebastian Huber
Hello Yaroslav, the initialization sequence is documented here: https://docs.rtems.org/branches/master/c-user/initialization.html#initializing-rtems I would not use the I/O Manager. Working with major/minor numbers is quite painful. I would initialize custom devices in the initialization task

Device driver initialization sequence

2018-11-09 Thread Ярослав Лещинский
Hello, I read the documentation about I/O Manager, found different source codes where mentioning not only rtems_io_* functionality but also drvmgr*, rtems_libio* and another mechanisms which are referred to device driver topic and I have a feeling that I'm missing something. Could you please corr