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

Wrong usage of functions in examples? (SDK15.2.0)

Hello all,

I've recently started developing an nRF5 device (using Segger on Ubuntu, and SDK15.2.0), and for what I have read regarding peripheral drivers, I should be using functions starting with nrfx_, instead of nrf_drv_, since the latter ones are just left for legacy compatibility. Am I right?

If so, I don't know if I am not looking at the correct place, but I hardly find examples in the SDK which use nrfx_ naming, so I guess they have not been ported. Is this correct? I rely a lot in the examples to learn how this works, complementing it with the online documentation, but it's hard if they are "deprecated" and have to adapt them, with no guide or something (is there any?). All this comes from trying to develop some code and finding lots of errors from missing definitions. Apparently most of them come from configuring correctly the sdk_config.h file, but here I find definitions for both legacy and current functions...

Sorry if this is a very basic question, I have just been one week around, so I am doing my best to learn.

Thanks in advance!

Parents Reply Children
No Data
Related