I want to use C code to toggle the GPIO lines as fast as possible in C. I do not want to use any libraries.
I want to use C code to toggle the GPIO lines as fast as possible in C. I do not want to use any libraries.
You could do this in a loop:
NRF_GPIO->OUTSET = (1UL << pin_number);
NRF_GPIO->OUTCLR = (1UL << pin_number);
Blatantly stolen from nrf_gpio.h
thanks.