Hi
I am using RZ/V2L Evaluation kit (Smarc ). I want to develop the firmware code for Sensor (https://github.com/melexis/mlx90632-library). using E2 studio.
I have created the Project in E2 studio added the FSP. I selected New stack and add a I2C0 master it generates the code.
Now my question where do I add the Driver files. (*.c & &.h) files,
An example code for sensor HS_300xx sensor is also given But
Not sure how the driver code(HS300XX) maps to the i2c code generated by the E2 studio.
I am new to this board , However I have done programming using platformio/Arduino framework. There we add the driver folder containing the driver C & H files.
in main.cpp
#include Driver_xx.h
loop()
{
sensor_data = driver.read();
do some useful stuff
delay(100); // 100ms
}
setup()
{
ret = driver.init(pin1, pin2 , other_params); // i2c pin and address as input.
if (ret == FAIL)
{
exit()
}else {
do some useful stuff
}
But RZ/V2L M33 how we achieve this. it generates hal.c bsp related codes, timer callbacks. lot of confusion