On 3/9/19 4:56 am, Vijay Kumar Banerjee wrote:
>         > +void
>         > +libbsdhelper_start_shell(rtems_task_priority prio)
>         > +{
>         > +     rtems_status_code sc = rtems_shell_init(
>         > +             "SHLL",
>         > +             STACK_SIZE_SHELL,
>         > +             prio,
>         > +             CONSOLE_DEVICE_NAME,
>         > +             false,
>         > +             true,
>         > +             NULL
>         > +     );
>         > +     assert(sc == RTEMS_SUCCESSFUL);
>         > +}
>         > +
>         > +static void
>         > +Init(rtems_task_argument arg)
>         > +{
>         > +     rtems_status_code sc;
>         > +     int exit_code;
>         > +     (void)arg;
>         > +     static lv_color_t buf[LV_HOR_RES_MAX*10];
>         > +     static lv_disp_buf_t disp_buf;
>         > +
>         > +     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? 
> 
> A good reference I could find is in:
> https://git.rtems.org/rtems/tree/testsuites/libtests/i2c01/init.c#n534
> 
> Should I do something like this in the lvgl example? 

I am sorry, I do not understand what you are asking with the link to that test.

Chris
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to