Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Where Is the Standard register and bit definitions for the Nordic

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.

Parents
  • 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

  • Thanks ;

    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,

  • Changed something. But when i pressed button led must be blink 200ms. This situation when i pressed button led blink, when i release button led off. How can i change code?

  • The LEDs on the DK are active low. Also watch out for button bouncing. The Button handling library handles de-bouncing for you. 

Reply Children
No Data