• enum question
    These code snippets come from a Dhrystone test we are using to evaluate ARM MDK and some ARM devices. The program works well but I have run across a construct that I do not understand. I hope some of...
  • 8bit enums
    Hello everyone, I'm using some enums and due to the standard they are 16bit int per default. But in most of my cases 8bit would be sufficient and I'm not loaded with free RAM. I found that the compiler...
  • enum external declaration and use
    Hi Folks, I am trying to use enum to define a set of named constants with values so that they can be used by multiple C files in my project. For example. I use the following snipet to define Months...
  • Enum Vs #define
    Hi All, I am being confused with the use of enum vs #define. Sometold me that enum is better and some #define. Well, as per my understanding while defining sequencial data i.e. 1,2,3,4... at that time...
  • Enum isn't recognized in prototype
    Hi, I'm about to pull my hair out. I have a enumerated type in a file called iap_tools.h that looks like this: enum ChipType { master_chip, slave_chip, comm_chip }; I have a function...