I search GPIO pin bit definations and register. I saw pca10040.h GPIO defined.I dont know how to configurated P1DIR, P1EN, P1OUT etc.. I studied Texas Instrument before. I was not get used to Nordic =( Nordic is very wired. Sorry. I hate ARM.
I search GPIO pin bit definations and register. I saw pca10040.h GPIO defined.I dont know how to configurated P1DIR, P1EN, P1OUT etc.. I studied Texas Instrument before. I was not get used to Nordic =( Nordic is very wired. Sorry. I hate ARM.
Once you get into it you'll love ARM
What compiler/editor are you using ? The definitions are are usually supplied with the editor.
Hey Omer,
I believe the file you are looking for is called something like 'nrf52bitfields.h'.
You should take a look at the GPIO HAL , GPIOTE HAL, and GPIOTE driver API reference.
ARM is different and our SDKs are complex, but once you understand our API language and docs it will become much easier to use the different SDK components.
Cheers,
Håkon
I use SEGGER. Most bored one =)
Thanks haakonsh ;
I writed message when i very disapointed time =) I trie to understanding SDK. I hope i will be succesfull. Thanks for answers. But ı work on understanding how to read digital data 1 or 0.
here is some part of my code,
nrf_gpio_pin_read(SATIR_1); if(nrf_gpio_pin_read(SATIR_1)==true) { nrf_gpio_cfg_output(LED_DENEME); nrf_gpio_pin_set(LED_DENEME); } else { nrf_gpio_cfg_output(LED_DENEME); nrf_gpio_pin_clear(LED_DENEME); }
nrf_gpio_cfg_input(SATIR_1, NRF_GPIO_PIN_NOPULL); nrf_gpio_cfg_output(LED_DENEME); if(nrf_gpio_pin_read(SATIR_1)) { nrf_gpio_pin_set(LED_DENEME); } else { nrf_gpio_pin_clear(LED_DENEME); }