| 827 | #include <finsh.h> |
| 828 | |
| 829 | void 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 | } |
| 839 | FINSH_FUNCTION_EXPORT(accel_cal, auto-zero calibration.) |
| 840 | |
| 841 | void list_accel(void) |
nothing calls this directly
no test coverage detected