On 25.07.23 04:31, Vijay Kumar Banerjee wrote:
On Mon, Jul 24, 2023 at 10:09 AM Sebastian Huber
<sebastian.hu...@embedded-brains.de>  wrote:
On 20.07.23 03:10, Vijay Kumar Banerjee wrote:
Add CONFIGURE_APPLICATION_NEEDS_LIBI2C_DRIVER define
Do we really need this? What happens if an I2C device needs interrupts
during initialization?

the libi2c initialize calls rtems_io_register_driver, which requires
`CONFIGURE_MAXIMUM_DRIVERS` defined from the application. In some
BSPs, like mvme3100, libi2c is initialized at sysinit, causing the
application to crash without the define. Adding this confdefs macro
allows the user to add the libi2c if it is needed by the app, or omit
it without crashing the system. In its current state, libi2c requires
the BSP to handle registering the buses and drivers after
initialization, the interrupt can be handled by the BSP I2C handler.

Ok, maybe one option is to use IMFS_make_generic_node() instead of using rtems_io_register_driver(). Another option is to use the new I2C framework.

If you really need this new application configuration option, then please document it:

https://docs.rtems.org/branches/master/eng/req/howto.html#application-configuration-options

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to