Hi Jim, What happens if you try this: #define CLKSRC_MASK(bits) ((((cycle_t)1)<<bits)-((cycle_t)1)) The way you had it, it was operating on an int, not on a cycle_t. Hence, integer overflow. --Eljay
Hi Jim, What happens if you try this: #define CLKSRC_MASK(bits) ((((cycle_t)1)<<bits)-((cycle_t)1)) The way you had it, it was operating on an int, not on a cycle_t. Hence, integer overflow. --Eljay