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.