瀏覽代碼

Merge pull request #352 from Defragster/patch-2

clock halved - halve blink wait count
main
Paul Stoffregen 5 年之前
父節點
當前提交
9d247b5314
No account linked to committer's email address
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      teensy4/startup.c

+ 2
- 2
teensy4/startup.c 查看文件

@@ -353,10 +353,10 @@ void HardFault_HandlerC(unsigned int *hardfault_args) {
{
GPIO2_DR_SET = (1 << 3); //digitalWrite(13, HIGH);
// digitalWrite(13, HIGH);
for (nn = 0; nn < 2000000; nn++) ;
for (nn = 0; nn < 2000000/2; nn++) ;
GPIO2_DR_CLEAR = (1 << 3); //digitalWrite(13, LOW);
// digitalWrite(13, LOW);
for (nn = 0; nn < 18000000; nn++) ;
for (nn = 0; nn < 18000000/2; nn++) ;
}
}


Loading…
取消
儲存