STMicroelectronics / lis2hh12-pid

lis2hh12 platform independent driver based on Standard C language and compliant with MISRA standard
BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

has anyone implemented the LIS2HH12 using SAME5 from Microchip? #2

Open JoeETSLabs opened 1 year ago

JoeETSLabs commented 1 year ago

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

avisconti commented 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;

JoeETSLabs commented 1 year ago

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: @.***>