免费注册 手机版 网站地图 小工具

学而优·知识库

首 页
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;
}
参考答案

关闭

前往注册

我已注册,登录账号 继续查看答案