warning: #188-D: enumerated type mixed with another type

warning:  #188-D: enumerated type mixed with another type
警告:#188-D:枚举类型与另一类型混合

出现这个警告是变量类型不匹配的问题。

我用函数封装去使能nvic中断,变量转换过程导致。
原本是这样:

强制类型转换成枚举类型就好了。

猜你喜欢

转载自blog.csdn.net/weixin_43673603/article/details/123551045