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

confusing about nrfx. How should I use it without legacy with old and do I need it?

I read somewhere for new project we should use nrfx driver because in future old nrf_drivers will not be support and improve. All examples in sdk15.3 as I understand used old nrf_drv..... Can I guess I used new abilities of new nrfx driver just replace

1. nrf_drv.... to nrfx.....

2. add to project existing file  from nRF5_SDK_15.3.0_59ac345\modules\nrfx\drivers\src\..... needed nrfx drivers

3. turn according nrfx driver in sdk_config.

or I need do something else (other)

Maybe there's clear manual how to transfer to the new nrfx world

Parents
  • Here's an idea,

    This is coming from my current predicament where I was using the nrfx_clock driver, but found that it didn't implement the request and release API I need to share the resource between different modules of code, however, the nrf_drv_clock did implement it.

    The thing is, is that the nrf_drv_clock driver is implemented as actual C code and calls the nrfx functions. The "deprecated" drivers, where you should use nrfx, are the ones where the distinction is simply a macro.

Reply
  • Here's an idea,

    This is coming from my current predicament where I was using the nrfx_clock driver, but found that it didn't implement the request and release API I need to share the resource between different modules of code, however, the nrf_drv_clock did implement it.

    The thing is, is that the nrf_drv_clock driver is implemented as actual C code and calls the nrfx functions. The "deprecated" drivers, where you should use nrfx, are the ones where the distinction is simply a macro.

Children
Related