问题详情

答题翼 > 问答 > 求职面试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关

Interrupts are an important part of embedded systems. Consequently, many compiler vend


Interrupts are an important part of embedded

systems. Consequently, many compiler vendors

offer an extension to standard C to support interrupts.

Typically, the keyword is __interrupt. The following

code uses __interrupt to define an interrupt service

routine (ISR). Point out problems in the code.

__interrupt double compute_area (double radius)

{

double area = PI * radius * radius;

printf(" Area = %f", area);

return area;

}

请帮忙给出正确答案和分析,谢谢!

参考答案
答案整理中……
您可能感兴趣的试题