⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bangirq.pil

📁 Intel XScale PXA255 引导Linux的Redboot 版bootloader源代码!
💻 PIL
字号:
// IRQ for 8 clocks every 330000 clocks// MCLK clock is up to 100MHz; CPU clock CCLK is (by default) 3 x CLK and// CLK seems to be the same as MCLK in the model.// So if the clock is 33MHz, 100Hz is acquired with 330,000 ticks.// But that takes ages, so we will use 1000Hz instead for our testing.// That's slow enough so that spurious interrupts do not get into a loop.period = 33000; // 1000Hz//period = 300000000; // none, essentiallyduration = 300; // enough time to sense and decode it!  [was 8]bangIrq.value = 1;bangIrq.duration = period - duration;//print "Cycle: "; print cpu.cycle; print " }}}}}}}}}}}}} IRQ INITIALLY DE-ASSERTED\n";bangIrq.endDuration{    if(bangIrq.value == 0)    {        bangIrq.value = 1;        bangIrq.duration = period - duration;//        print "Cycle: "; print cpu.cycle; print " }}}}}}}}}}}}} IRQ DE-ASSERTED\n";    }    else    {        bangIrq.value = 0;        bangIrq.duration = duration;//        print "Cycle: "; print cpu.cycle; print " {{{{{{{{{{{{{ IRQ ASSERTED\n";    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -