Fix "int vs enum" warnings from armcc v5

enumerated type mixed with another type
7 files changed