<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> +void<br>
> +libbsdhelper_start_shell(rtems_task_priority prio)<br>
> +{<br>
> + rtems_status_code sc = rtems_shell_init(<br>
> + "SHLL",<br>
> + STACK_SIZE_SHELL,<br>
> + prio,<br>
> + CONSOLE_DEVICE_NAME,<br>
> + false,<br>
> + true,<br>
> + NULL<br>
> + );<br>
> + assert(sc == RTEMS_SUCCESSFUL);<br>
> +}<br>
> +<br>
> +static void<br>
> +Init(rtems_task_argument arg)<br>
> +{<br>
> + rtems_status_code sc;<br>
> + int exit_code;<br>
> + (void)arg;<br>
> + static lv_color_t buf[LV_HOR_RES_MAX*10];<br>
> + static lv_disp_buf_t disp_buf;<br>
> +<br>
> + puts("\nRTEMS I2C TEST\n");<br>
> + exit_code = bbb_register_i2c_0();<br>
> + assert(exit_code == 0);<br>
<br>
Is this needed for the display to work?<br>
<br></blockquote><div>Yes. We need to register the rtems i2c device in order to work with the TDA driver</div><div>as libbsd uses rtems i2c driver. The bbb_register_* is making it bbb specific, what</div><div>do you suggest to make it more generic? </div></div></div></blockquote><div>A good reference I could find is in:</div><div><a href="https://git.rtems.org/rtems/tree/testsuites/libtests/i2c01/init.c#n534">https://git.rtems.org/rtems/tree/testsuites/libtests/i2c01/init.c#n534</a></div><div><br></div><div>Should I do something like this in the lvgl example? <br></div></div></div>