我想做一个预处理宏,它将表示地址的整数转换为指针。这是给单片机开发的。
例如,寄存器定义如下
#define SOME_REGISTER 0x05 // This the the address of SOME_REGISTER
因此,我定义了以下宏:
#define REG_ADDR(reg) (*((volatile uint8_t*) reg))
当我不想用它的时候
volatile uint8_t * reg_ptr = REG_ADDR(SOME_REGISTER)
但当然,我收到了makes pointer from integer without a cast [-Wint-co
我看到我的集成开发环境将File识别为Typescript对象。执行refined search in Google会将我带到this page,它与File对象没有任何关系。File既不在basic types中,也不在advanced types中。 Typescript中的File对象是否已处理为exactly the same way as in Javascript?有什么突破性的差异吗? 同样,如何在Typescript中实例化文件类型?