瀏覽代碼

Merge pull request #346 from FrankBoesing/patch-1

pendablesrvreq_isr = priority 32;
teensy4-core
Paul Stoffregen 5 年之前
父節點
當前提交
94fd7c99e3
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      teensy4/startup.c

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

@@ -123,7 +123,7 @@ static void configure_systick(void)
SYST_RVR = (SYSTICK_EXT_FREQ / 1000) - 1;
SYST_CVR = 0;
SYST_CSR = SYST_CSR_TICKINT | SYST_CSR_ENABLE;
SCB_SHPR3 = 0x20000000; // Systick = priority 32
SCB_SHPR3 = 0x20200000; // Systick, pendablesrvreq_isr = priority 32;
ARM_DEMCR |= ARM_DEMCR_TRCENA;
ARM_DWT_CTRL |= ARM_DWT_CTRL_CYCCNTENA; // turn on cycle counter
systick_cycle_count = ARM_DWT_CYCCNT; // compiled 0, corrected w/1st systick

Loading…
取消
儲存