What's the difference between 160000000UL
and (unsigned long) 160000000
?
PROBLEM:
I have a #define
with the following:
#define SYS_CLK (160000000UL / 1000UL)
SYS_CLK is different depending on the system clock. I want to know if I can change it to:
#define SYS_CLK ((unsigned long)(RCC_MAX_FREQUENCY/*get freq from the system. It returns e.g. 160000000U*/) / 1000UL)
And RCC_MAX_FREQUENCY
is defined as:
#define RCC_MAX_FREQUENCY 168000000U
Are they the same?
(I checked this, but it's not my question.)