I want to directly control the nrfx driver on the nrf connect SDK.
I don't know how to change the parameters.
Please teach me.
example:
NRFX_WDT_CONFIG_NO_IRQ
NRFX_TWIS_NO_SYNC_MODE
etc...
I want to directly control the nrfx driver on the nrf connect SDK.
I don't know how to change the parameters.
Please teach me.
example:
NRFX_WDT_CONFIG_NO_IRQ
NRFX_TWIS_NO_SYNC_MODE
etc...
Hi,
It is often better to use zephyr drivers to control the nRF peripherals.
Why do you want to use nrfx drivers directly?
If you are sure that this is what you want, see the nrfx use example.
Regards,
Sigurd Hellesvik
I have a many program for nrfx developed with the nRF5 SDK.
I don't want to go through the trouble of doing the migration.
I couldn't find a way to change the driver parameters in the examples provided.
With the nRF5 SDK, you could specify driver parameters using sdk_config.h per project/per board.
Please let me know how to do the same.
I have a many program for nrfx developed with the nRF5 SDK.
I don't want to go through the trouble of doing the migration.
I couldn't find a way to change the driver parameters in the examples provided.
With the nRF5 SDK, you could specify driver parameters using sdk_config.h per project/per board.
Please let me know how to do the same.
Beware that using nrfx drivers directly in the nRF Connect SDK may result in issues with interoperability with nRF Connect SDK drivers.
As nrfx drivers are not standard, the support we can give is limited.
That being said, try to set the configurations using CMake: https://stackoverflow.com/questions/5352074/how-to-create-a-c-define-for-a-certain-target-using-cmake.
Regards,
Sigurd Hellesvik
OK.Thanks.
Just for reference, tell me.
I'm using PPI to wake two PWM devices at the same time, triggered by GPIO.
(using NRFX_PWM_FLAG_START_VIA_TASK)
Can the same be done using the nRF Connect SDK driver?
To set NRFX_PWM_FLAG_START_VIA_TASK, use "flags".
uint32_t nrfx_pwm_simple_playback(nrfx_pwm_t const * p_instance,
nrf_pwm_sequence_t const * p_sequence,
uint16_t playback_count,
uint32_t flags);
Regards,
Sigurd Hellesvik
Is this an nrfx sample?
you said
"It is often better to use zephyr drivers to control the nRF peripherals."
I would like to know if I can use zephyr driver to do the same thing as nrfx.