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

📄 readme.txt

📁 一个小型化的嵌入式实时操作系统源代码
💻 TXT
字号:
looptime is a test program for the uC/OS Board Support Package (BSP).

Execution
Program runs in a loop until 20 timer interrupts have occured or the loop count
reaches a maximum value. Each interrupt stores the current loop count into an
array along with the interrupt count. After interrupt count reaches 20 the
array is printed out through port 2. You should see 20 rows. The first rows
look like:
0: 0 0
1: 201900 1
2: 403837 2
.
.
19: 3837673 19

The first number is the array index. The last number is the interrupt counter
value when the each interrupt occured. This should be the same as the
array index. The center value is the loop counter value when each
interrupt occured. These should step by about 200,000.

This s a unit test for IRQTrap. It is not a complete unit test because
it uses only a single interrupt. It does not exercise nested interrupts
or window overflow.

Description:
The counter is changed from 1/second to 20/second (50 msec.).
The interrupt vector table is rewritten so that all 15 vectors go to
IRQTrap.
IRQTrap is set only for interrupt 11 from the clock.

Problems:
If a printf() is placed in the IRQDispatch routine the program hangs if
an interrupt occurs during the final printout. printf is not reentrant. 

⌨️ 快捷键说明

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