Platform/ECM3532/M3/hw/sensor_drv/lsm6dsl/lsm6dsl.c
/*
 * This will register Driver with SM
 */
This will register Driver with SM
This will register Driver with SM
void Lsm6dslDrvInit(void)
{
#ifndef CONFIG_EVB_BOARD
    HalGpioOutInit(CONFIG_LSM6DSL_GPIO_USERIRQ, 1);
#endif
    lsmdata = pvPortMalloc(sizeof(struct lsm6dsl_data));
    memset(lsmdata,0,sizeof(struct lsm6dsl_data));
    SensorDrvRegister(CONFIG_LSM6DSL_NAME, &sLsm6dslDevOps);
    lsmdata->DevLock = xSemaphoreCreateMutex();
}
void Lsm6dslDrvInit ( void ) { #ifndef CONFIG_EVB_BOARD HalGpioOutInit ( CONFIG_LSM6DSL_GPIO_USERIRQ , 1 ) ; #endif lsmdata = pvPortMalloc ( sizeof ( struct lsm6dsl_data ) ) ; memset ( lsmdata , 0 , sizeof ( struct lsm6dsl_data ) ) ; SensorDrvRegister ( CONFIG_LSM6DSL_NAME , & sLsm6dslDevOps ) ; lsmdata -> DevLock = xSemaphoreCreateMutex ( ) ; }
This will register Driver with SM
This will register Driver with SM