Using 32-bit microcontroller....Code:Following declaration #define IDLE_ST 0x01 #define RX_ST 0x02 #define TX_ST 0x03 #define NO_ST 0x04 or typedef enum { IDLE_ST =0x01, RX_ST , TX_ST , NO_ST, }teAcessCtrl; //Application Statemachine() { switch(state) { case IDLE_ST : break; case RX_ST : break; case TX_ST : break; case NO_ST : break; } }
If some one explain me the memory consumption differences b/w the declarations.
2.Does static declarations of function's increase memory consumptions?
Thanks all in advance