What is extern volatile pointer

前端 未结 4 1445
别跟我提以往
别跟我提以往 2020-12-31 11:10

What is extern volatile pointer.

extern volatile uint32 *ptr;

Here, what will be the behavior of *ptr? What does this actually mean?

<
4条回答
  •  没有蜡笔的小新
    2020-12-31 11:35

    Extern means it is defined elsewhere - probably in the header file. Volatile is info for the compiler that it shouldn't try to optimize this.

提交回复
热议问题