[试题] 101上 薛智文 嵌入式作业系统实作 期中考

楼主: rod24574575 (天然呆)   2015-04-28 19:26:47
课程名称︰嵌入式作业系统实作
课程性质︰选修
课程教师︰薛智文
开课学院:电资学院
开课系所︰资工所、网媒所
考试日期(年月日)︰2012.11.07 公布考题, 2012.11.07 结束前(11:59pm)缴交
考试时限(分钟):
试题 :
This is a take-home exam. Please do answer with your OWN SUCCINCT words after
each question (keep the question) in this file in totally 4 pages of the same
text font. Use other file format with the same look if you don't use MS words.
You can answer in Chinese or English. Please send this file back to
r98922007@csie.ntu.edu.tw with a new filename of your ID by 11:59PM, Nov 7th.
We will decide your time slot for presentation in next class at 105 where the
earlier one with receive time of the last submission of this midterm in your
group has higher priority. Send you lab reports to the same email address above
by next class. Have fun.
1. Suppose we would like to write a stopwatch application for Creator PXA270.
However, it needs to support variable precision range from one millisecond
to one second. Given the kernel driver as Lab 2 that can display four
decimal digits on the 4-digit 7-segment LED with a decimal point and some
keypad buttons, please describe how to extend the driver to implement the
stopwatch. Your solution should be backward compatible, extendable, and as
compact as possible. [20%]
2. If we would like to port the driver given in problem 1 to μC/OS-II for
Creator PXA270, what should be done? [20%]
3. A boot loader is a computer program that initializes the hardware platform
and loads the operating system. However, it sometime might be desired to
start the OS without using a boot loader for compact systems such as μC/OS.
Please describe what should be done in the startup function of μC/OS-III
when the kernel image resides in a NOR flash and is expected to be executed
as in main memory directly without loading. Please elaborate on the
advantages and disadvantages of these two approaches, too.
Hint: relocation … [30%]
4. Please describe how to initialize the serial port (UART) of Creator PXA270
with baud rate equal to 115200bps. How can we implement a print function
displaying strings on the serial console in μC/OSIII? Please elaborate on
your solution. [30%]

Links booklink

Contact Us: admin [ a t ] ucptt.com