[PATCH] Add lvgl_hello: Sample Hello world app using littleVGL and libbsd

Chris Johns chrisj at rtems.org
Mon Sep 2 23:46:03 UTC 2019


On 2/9/19 5:42 pm, Vijay Kumar Banerjee wrote:
> On Mon, Sep 2, 2019 at 4:34 AM Chris Johns <chrisj at rtems.org
> <mailto:chrisj at rtems.org>> wrote:
>     > +     puts("\nRTEMS I2C TEST\n");
>     > +     exit_code = bbb_register_i2c_0();
>     > +     assert(exit_code == 0);
> 
>     Is this needed for the display to work?
> 
> Yes. We need to register the rtems i2c device in order to work with the TDA driver
> as libbsd uses rtems i2c driver. The bbb_register_* is making it bbb specific, what
> do you suggest to make it more generic? 

Should the I2C be registered during the BSP initalisation? This would remove the
need for this type of call being spread across all applications on the BBB. The
BBB has a lot of resources and the I2C is part of the SoC and so always present.

I cannot think of a way to have a sysinit entry that installs the driver when
the I2C bus used.

Chris


More information about the devel mailing list