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

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

31 篇文章1 订阅
warning:  #188-D: enumerated type mixed with another type
警告:#188-D:枚举类型与另一类型混合
  • 1
  • 2

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

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

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

posted @ 2022-04-27 18:26  xiaoheikkkk  阅读(1926)  评论(0编辑  收藏  举报