Open JoeETSLabs opened 1 year ago
I don't know the i2c details of SAME54. What you have to do is writing the platform routines (read, write, delay), but I cannot help you on your specific platform.
/ Initialize mems driver interface / stmdev_ctx_t dev_ctx; dev_ctx.write_reg = platform_write; dev_ctx.read_reg = platform_read; dev_ctx.handle = &SENSOR_BUS;
Thank youOn Jul 24, 2023 5:51 AM, Armando Visconti @.**> wrote: I don't know the i2c details of SAME54. What you have to do is writing the platform routines (read, write, delay), but I cannot help you on your specific platform. / Initialize mems driver interface */ stmdev_ctx_t dev_ctx; dev_ctx.write_reg = platform_write; dev_ctx.read_reg = platform_read; dev_ctx.handle = &SENSOR_BUS;
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
I am new to LIS2HH12 and using SAME54 MCU. Was hoping to get a sample of the code using the i2c from SAME54. thank you