itgle.com

Interrupts are an important part of embeddedsystems. Consequently, many compiler vendorsoffer an extension to standard C to support interrupts.Typically, the keyword is __interrupt. The followingcode uses __interrupt to define an interrupt serviceroutine

题目

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("\nArea = %f", area);

return area;

}


相似考题
更多“Interrupts are an important part of embedded systems. Consequently, many compiler vend ”相关问题
  • 第1题:

    Given the following DDL for the PARTS table:CREATE TABLE parts (part_no INT(9) NOT NULL, part_name VARCHAR(24), part_remain INT(9));All part numbers entered will be different and all rows should be displayed in order of increasing part numbers whenever the table is queried. Which of the following create index statements will meet this criteria and require the least amount of storage for the index object?()

    A.CREATE UNIQUE INDEX idx_partno ON parts(part_no)

    B.CREATE UNIQUE INDEX idx_partno ON parts(part_name ASC)

    C.CREATE UNIQUE INDEX idx_partno ON parts(part_name, part_no ASC)

    D.CREATE UNIQUE INDEX idx_partno ON parts(part_no, part_name ASC)


    参考答案:A

  • 第2题:

    下列关于CSS重要性的说法中正确的是()

    A.!important要写在分号“;”的前面

    B.!important要写在相关属性值的前面

    C.!important权值为1000

    D.!important只能应用与字体样式设置


    CSS用于设置HTML页面中的文本内容、图片的外形以及版面的布局等外观显示样式

  • 第3题:

    提升选择器样式重要性的代码正确的是()

    A..green{ color:green!important; }

    B..green{ !important color:green; }

    C..green!important{ color:green!important; }

    D..green{ color:green; }!important;


    正确

  • 第4题:

    Examine the following options, Multicasting supports applications that communicate.()

    A. many - to - one

    B. one - to - one

    C. one - to - many

    D. many - to - many


    参考答案:C

  • 第5题:

    下面关于CSS样式优先级,正确的是

    A.!important > id > class > tag

    B.id> !important > class > tag

    C.!important > tag > class > id

    D.tag> id > class > !important


    important > id > class > tag

  • 第6题:

    CSS优先级说法正确的是?

    A.!important > id > class > tag

    B.!important < id < class < tag

    C.!important>class>id>tag

    D.!important>tag>id>class


    important > id > class > tag