This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Usage of 1UL

Hello to everyone.

I´m trying to understand a code starting from the file of definition of pins of nRF52 PCA10040.
In "simple_hal.c" there's a line like this: NRF_GPIO->OUTSET = 1UL << i;     in the hall_leds_init() function.
To know the complete tasks of this function, I have to know what does "1UL" do.
So, my question is: what does "1UL" do?
I know too that 1UL is used in another .c fles, but I don't know if it do the same function on those codes.


I hope you can help me.

Parents Reply Children
Related