BMI270_SensorAPI
BMI270_SensorAPI copied to clipboard
osDelay() from CMSIS don't work in API
I'm using osDelay function since I'm using FreeRTOS to run my application.
So in the bmi API I implemented my delay as below
void coines_delay_usec(uint32_t delay_us){ uint32_t ticks = (uint32_t)(delay_us/1000); osDelay(ticks); }
But it's actually not working, I'm getting an error right after executing this line:
rslt = bmi270_context_init(&bmi2_dev);
Indeed rslt value turn '0xfd' instead of '0x00'
When I try with a simple HAL_Delay() in a No-OS application it works fine. My OS tick rate is 1000Hz.