How to change nrfx parameters on nrf connect SDK

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...

Parents
  • I realize that my previous answers might have been a bit confusing.
    Let's take a step back, and I will try to explain how drivers work in the nRF Connect SDK.

    The nRF Connect SDK is built on Zephyr. To use peripherals, the Zephyr drivers should be the first choice.
    For example, the PWM API.

    The Zephyr drivers are built on top of nrfx drivers.
    It is possible to use nrfx drivers directly.
    This is necessary if the Zephyr drivers have limitations.
    For example, for PPI, we recommend using the nrfx drivers directly.
    See the nrfx use example for this.

    Asking my colleagues, I found that you can use CONFIG_COMPILER_OPT to set nrfx configurations for the nrfx drivers. For example:

    CONFIG_COMPILER_OPT="-DNRFX_WDT_CONFIG_NO_IRQ=1"

    Does this make sense?

    Regards,
    Sigurd Hellesvik

Reply
  • I realize that my previous answers might have been a bit confusing.
    Let's take a step back, and I will try to explain how drivers work in the nRF Connect SDK.

    The nRF Connect SDK is built on Zephyr. To use peripherals, the Zephyr drivers should be the first choice.
    For example, the PWM API.

    The Zephyr drivers are built on top of nrfx drivers.
    It is possible to use nrfx drivers directly.
    This is necessary if the Zephyr drivers have limitations.
    For example, for PPI, we recommend using the nrfx drivers directly.
    See the nrfx use example for this.

    Asking my colleagues, I found that you can use CONFIG_COMPILER_OPT to set nrfx configurations for the nrfx drivers. For example:

    CONFIG_COMPILER_OPT="-DNRFX_WDT_CONFIG_NO_IRQ=1"

    Does this make sense?

    Regards,
    Sigurd Hellesvik

Children
Related