enumerated type mixed with another type

keil警告:enumerated type mixed with another type

原因

枚举成员被赋值成数值或者宏,宏很容易被混淆成枚举,不易发现,仔细检查下每个枚举成员的值。