瀏覽代碼

opps - left in compared code

main
Defragster 5 年之前
父節點
當前提交
c4c5a0170f
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 0 行新增10 行删除
  1. +0
    -10
      teensy4/delay.c

+ 0
- 10
teensy4/delay.c 查看文件

@@ -73,16 +73,6 @@ uint32_t micros(void)
usec = 1000*smc + (ccdelta/(F_CPU_ACTUAL/1000000));
return usec;
}
uint32_t micros(void)
{
uint32_t ccdelta, usec, smc;
do {
smc = systick_millis_count;
ccdelta = ARM_DWT_CYCCNT - systick_cycle_count;
} while ( smc != systick_millis_count ); // repeat if systick_isr
usec = 1000*smc + (ccdelta/(F_CPU_ACTUAL/1000000));
return usec;
}

#if 0 // kept to compare test to cycle count micro()
extern uint32_t otmicros(void);

Loading…
取消
儲存