iic速率调整到400k

This commit is contained in:
lmx
2025-12-02 10:24:01 +08:00
parent 627780ea20
commit 8c2db49083
8 changed files with 15 additions and 16 deletions

View File

@ -441,19 +441,12 @@ void bmp280_test(void){
void gsensor_test(void){
#if 1
if(count >= 5){
xlog("==============time============\n");
u32 current_time = get_ms_timer();
xlog("Time since last reset: %u ms\n", current_time);
// 为了演示,我们在这里调用重置
if (current_time > 5000) { // 比如超过5秒就重置一次
reset_ms_timer();
}
count = 0;
}
count++;
signed short acc_data_buf[3];
signed short gyr_data_buf[3];
SL_SC7U22_RawData_Read(acc_data_buf,gyr_data_buf);
#endif
}
static u16 gtest_id = 0;
void test_func(void){
create_process(&gtest_id,"gtest_id",NULL,gsensor_test,1000);
}