Skip to content

Commit

Permalink
boards: arm: nrf5340_audio_dk_cpunet_reset: switch to HAL
Browse files Browse the repository at this point in the history
Change the GPIOTE driver to HAL to prevent instantiation
issues with a multi-instance GPIOTE driver.

Signed-off-by: Jakub Zymelka <[email protected]>
  • Loading branch information
jaz1-nordic committed Jan 5, 2024
1 parent 5f99c36 commit 1fab997
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@

#include <soc.h>
#include <hal/nrf_reset.h>

#include <nrfx_gpiote.h>
#include <hal/nrf_gpiote.h>

LOG_MODULE_REGISTER(nrf5340_audio_dk_nrf5340_cpuapp, CONFIG_LOG_DEFAULT_LEVEL);

Expand All @@ -25,11 +24,11 @@ static int core_config(void)
{
nrf_gpiote_latency_t latency;

latency = nrfx_gpiote_latency_get();
latency = nrf_gpiote_latency_get(NRF_GPIOTE);

if (latency != NRF_GPIOTE_LATENCY_LOWPOWER) {
LOG_DBG("Setting gpiote latency to low power");
nrfx_gpiote_latency_set(NRF_GPIOTE_LATENCY_LOWPOWER);
nrf_gpiote_latency_set(NRF_GPIOTE, NRF_GPIOTE_LATENCY_LOWPOWER);
}

return 0;
Expand Down

0 comments on commit 1fab997

Please sign in to comment.