To achieve this mapping, you may include conditional compilation #ifdef in places where you access the registers.
为了实现这种映射,您可以在访问寄存器的位置包括条件编译#指令。
The code to initialize and destroy the threads will be under #ifdef INTR_SIMULATION, so that under normal compilation this code will not affect the release version of the driver object.
用来对这些线程进行初始化和销毁的代码都在 #ifdef INTR_SIMULATION 之下,这样在普通模式下编译的代码不会影响驱动程序对象的发行版本。
The code to initialize and destroy the threads will be under #ifdef INTR_SIMULATION, so that under normal compilation this code will not affect the release version of the driver object.
用来对这些线程进行初始化和销毁的代码都在 #ifdef INTR_SIMULATION 之下,这样在普通模式下编译的代码不会影响驱动程序对象的发行版本。
应用推荐