浏览代码

opps - left in compared code

teensy4-core
Defragster 6 年前
父节点
当前提交
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);

正在加载...
取消
保存