MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / accel_cal

Function accel_cal

bsp/efm32/dev_accel.c:829–838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

827#include <finsh.h>
828
829void accel_cal(rt_uint8_t mode, rt_uint32_t second)
830{
831 if (efm_accel_auto_zero(mode, RT_TICK_PER_SECOND * second) != RT_EOK)
832 {
833 rt_kprintf("Error occurred.");
834 return;
835 }
836
837 rt_kprintf("Calibration done.\n");
838}
839FINSH_FUNCTION_EXPORT(accel_cal, auto-zero calibration.)
840
841void list_accel(void)

Callers

nothing calls this directly

Calls 2

efm_accel_auto_zeroFunction · 0.85
rt_kprintfFunction · 0.85

Tested by

no test coverage detected