Skip to content

Commit

Permalink
nrfx 2.11.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nika-nordic committed Apr 7, 2023
1 parent 23fb443 commit 2527e3c
Show file tree
Hide file tree
Showing 388 changed files with 62,189 additions and 1,448 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ doc/html/*
doc/html_sphinx/*
doc/xml/*
doc/warnings_nrfx.txt
doc/warnings_sphinx_nrfx.txt
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# Changelog
All notable changes to this project are documented in this file.

## [2.11.0] - 2023-04-07
### Added
- Added support for the nRF9161 and nRF9131 SiPs. Use `NRF9120_XXAA` as the compilation symbol.
- Implemented a workaround for the anomaly 161 on the nRF5340 SoC in the RESET HAL.

### Changed
- Updated MDK to version 8.53.1.

### Fixed
- Removed a spurious function call causing aborting of endpoints in the SUSPEND event for the USBD driver.

## [2.10.0] - 2022-10-25
### Added
- Added NRFX_CONFIG_API_VER_2_9 and NRFX_CONFIG_API_VER_2_10 symbols that guard API-breaking changes. Deprecated API is used by default.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2017 - 2022, Nordic Semiconductor ASA
Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
All rights reserved.

SPDX-License-Identifier: BSD-3-Clause
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
## Overview

nrfx is a standalone set of drivers for peripherals present in Nordic
Semiconductor's SoCs. It originated as an extract from the nRF5 SDK.
Semiconductor's SoCs and SiPs. It originated as an extract from the nRF5 SDK.
The intention was to provide drivers that can be used in various environments
without the necessity to integrate other parts of the SDK into them.
For the user's convenience, the drivers come with the MDK package. This package
contains definitions of register structures and bitfields for all supported
SoCs, as well as startup and initialization files for them.

## Supported SoCs
## Supported SoCs and SiPs

* nRF51 Series
* nRF52805
Expand All @@ -21,7 +21,9 @@ SoCs, as well as startup and initialization files for them.
* nRF52833
* nRF52840
* nRF5340
* nRF9131
* nRF9160
* nRF9161

## Directories

Expand Down
133 changes: 77 additions & 56 deletions doc/drv_supp_matrix.dox

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/generate_sphinx_doc.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
del html\*.* xml\*.* html_sphinx\*.* /Q
doxygen nrfx.doxyfile
sphinx-build -b html sphinx html_sphinx
sphinx-build -b html sphinx html_sphinx -w warnings_sphinx_nrfx.txt
2 changes: 1 addition & 1 deletion doc/generate_sphinx_doc.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
rm -rf html xml html_sphinx
doxygen nrfx.doxyfile
sphinx-build -b html sphinx html_sphinx
sphinx-build -b html sphinx html_sphinx -w warnings_sphinx_nrfx.txt
4 changes: 2 additions & 2 deletions doc/nrf9160.dox → doc/nrf91_series.dox
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
@page nrf9160_drivers nRF9160 drivers
@page nrf91_series_drivers nRF91 Series drivers

This page lists nrfx driver components supported by the nRF9160 SoC.
This page lists nrfx driver components supported by the nRF91 Series SoCs.
For a complete overview, see @ref nrfx_drv_supp_matrix.

@{
Expand Down
805 changes: 519 additions & 286 deletions doc/nrfx.doxyfile

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/sphinx/drv_supp_matrix.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Driver support overview
nrf52833
nrf52840
nrf5340
nrf9160
nrf91_series

.. role:: red
.. role:: green
Expand Down
5 changes: 0 additions & 5 deletions doc/sphinx/nrf9160.rst

This file was deleted.

5 changes: 5 additions & 0 deletions doc/sphinx/nrf91_series.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
nRF91 Series drivers
====================

.. doxygenpage:: nrf91_series_drivers
:content-only:
2 changes: 1 addition & 1 deletion drivers/include/nrf_bitmask.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2016 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_adc.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2015 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
11 changes: 6 additions & 5 deletions drivers/include/nrfx_clock.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2016 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -119,7 +119,8 @@ void nrfx_clock_stop(nrf_clock_domain_t domain);
*/
NRFX_STATIC_INLINE bool nrfx_clock_is_running(nrf_clock_domain_t domain, void * p_clk_src);

#if defined(CLOCK_FEATURE_HFCLK_DIVIDE_PRESENT) || NRF_CLOCK_HAS_HFCLK_192M
#if defined(CLOCK_FEATURE_HFCLK_DIVIDE_PRESENT) || NRF_CLOCK_HAS_HFCLK192M || \
defined(__NRFX_DOXYGEN__)
/**
* @brief Function for setting the specified clock domain divider.
*
Expand Down Expand Up @@ -193,7 +194,7 @@ NRFX_STATIC_INLINE void nrfx_clock_hfclk_stop(void);
NRFX_STATIC_INLINE bool nrfx_clock_hfclk_is_running(void);


#if NRF_CLOCK_HAS_HFCLKAUDIO
#if NRF_CLOCK_HAS_HFCLKAUDIO || defined(__NRFX_DOXYGEN__)
/**
* @brief Function for setting the HFCLKAUDIO configuration.
*
Expand Down Expand Up @@ -273,7 +274,7 @@ NRFX_STATIC_INLINE uint32_t nrfx_clock_ppi_event_addr(nrf_clock_event_t event);

#ifndef NRFX_DECLARE_ONLY

#if defined(CLOCK_FEATURE_HFCLK_DIVIDE_PRESENT) || NRF_CLOCK_HAS_HFCLK_192M
#if defined(CLOCK_FEATURE_HFCLK_DIVIDE_PRESENT) || NRF_CLOCK_HAS_HFCLK192M
NRFX_STATIC_INLINE nrf_clock_hfclk_div_t nrfx_clock_divider_get(nrf_clock_domain_t domain)
{
switch (domain)
Expand All @@ -291,7 +292,7 @@ NRFX_STATIC_INLINE nrf_clock_hfclk_div_t nrfx_clock_divider_get(nrf_clock_domain
return (nrf_clock_hfclk_div_t)0;
}
}
#endif // defined(CLOCK_FEATURE_HFCLK_DIVIDE_PRESENT) || NRF_CLOCK_HAS_HFCLK_192M
#endif // defined(CLOCK_FEATURE_HFCLK_DIVIDE_PRESENT) || NRF_CLOCK_HAS_HFCLK192M

NRFX_STATIC_INLINE void nrfx_clock_lfclk_start(void)
{
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_comp.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2015 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_dppi.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2018 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_egu.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2019 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
4 changes: 2 additions & 2 deletions drivers/include/nrfx_gpiote.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2015 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -771,7 +771,7 @@ void nrfx_gpiote_set_task_trigger(nrfx_gpiote_pin_t pin);
void nrfx_gpiote_clr_task_trigger(nrfx_gpiote_pin_t pin);
#endif // defined(GPIOTE_FEATURE_CLR_PRESENT) || defined(__NRFX_DOXYGEN__)

#if NRF_GPIOTE_HAS_LATENCY
#if NRF_GPIOTE_HAS_LATENCY || defined(__NRFX_DOXYGEN__)
/**
* @brief Function for setting the latency setting.
*
Expand Down
4 changes: 2 additions & 2 deletions drivers/include/nrfx_i2s.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2015 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -78,7 +78,7 @@ typedef struct
nrf_i2s_channels_t channels; ///< Enabled channels.
nrf_i2s_mck_t mck_setup; ///< Master clock setup.
nrf_i2s_ratio_t ratio; ///< MCK/LRCK ratio.
#if NRF_I2S_HAS_CLKCONFIG
#if NRF_I2S_HAS_CLKCONFIG || defined(__NRFX_DOXYGEN__)
nrf_i2s_clksrc_t clksrc; ///< Clock source selection.
bool enable_bypass; ///< Bypass clock generator. MCK will be equal to source input.
#endif
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_ipc.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2019 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_lpcomp.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2014 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_nfct.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2018 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
10 changes: 5 additions & 5 deletions drivers/include/nrfx_nvmc.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2019 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -85,7 +85,7 @@ nrfx_err_t nrfx_nvmc_uicr_erase(void);
*/
void nrfx_nvmc_all_erase(void);

#if defined(NRF_NVMC_PARTIAL_ERASE_PRESENT)
#if defined(NRF_NVMC_PARTIAL_ERASE_PRESENT) || defined(__NRFX_DOXYGEN__)
/**
* @brief Function for initiating a complete page erase split into parts (also known as partial erase).
*
Expand Down Expand Up @@ -124,7 +124,7 @@ nrfx_err_t nrfx_nvmc_page_partial_erase_init(uint32_t address, uint32_t duration
*/
bool nrfx_nvmc_page_partial_erase_continue(void);

#endif // defined(NRF_NVMC_PARTIAL_ERASE_PRESENT)
#endif // defined(NRF_NVMC_PARTIAL_ERASE_PRESENT) || defined(__NRFX_DOXYGEN__)

/**
* @brief Function for checking whether a byte is writable at the specified address.
Expand Down Expand Up @@ -306,7 +306,7 @@ uint32_t nrfx_nvmc_flash_page_count_get(void);
*/
NRFX_STATIC_INLINE bool nrfx_nvmc_write_done_check(void);

#if defined(NVMC_FEATURE_CACHE_PRESENT)
#if defined(NVMC_FEATURE_CACHE_PRESENT) || defined(__NRFX_DOXYGEN__)
/**
* @brief Function for enabling the Instruction Cache (ICache).
*
Expand All @@ -318,7 +318,7 @@ NRFX_STATIC_INLINE void nrfx_nvmc_icache_enable(void);
/** @brief Function for disabling ICache. */
NRFX_STATIC_INLINE void nrfx_nvmc_icache_disable(void);

#endif // defined(NVMC_FEATURE_CACHE_PRESENT)
#endif

#ifndef NRFX_DECLARE_ONLY
NRFX_STATIC_INLINE bool nrfx_nvmc_write_done_check(void)
Expand Down
6 changes: 3 additions & 3 deletions drivers/include/nrfx_pdm.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2015 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -77,10 +77,10 @@ typedef struct
nrf_pdm_gain_t gain_l; ///< Left channel gain.
nrf_pdm_gain_t gain_r; ///< Right channel gain.
uint8_t interrupt_priority; ///< Interrupt priority.
#if NRF_PDM_HAS_RATIO_CONFIG
#if NRF_PDM_HAS_RATIO_CONFIG || defined(__NRFX_DOXYGEN__)
nrf_pdm_ratio_t ratio; ///< Ratio between PDM_CLK and output sample rate.
#endif
#if NRF_PDM_HAS_MCLKCONFIG
#if NRF_PDM_HAS_MCLKCONFIG || defined(__NRFX_DOXYGEN__)
nrf_pdm_mclksrc_t mclksrc; ///< Master clock source selection.
#endif
bool skip_gpio_cfg; ///< Skip GPIO configuration of pins.
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_power.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_power_clock.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2015 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_power_compat.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2019 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_ppi.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2015 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_pwm.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2015 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_qdec.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2015 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
6 changes: 3 additions & 3 deletions drivers/include/nrfx_qspi.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2016 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -424,7 +424,7 @@ nrfx_err_t nrfx_qspi_lfm_xfer(void const * p_tx_buffer,
size_t transfer_length,
bool finalize);

#if NRF_QSPI_HAS_XIP_ENC
#if NRF_QSPI_HAS_XIP_ENC || defined(__NRFX_DOXYGEN__)
/**
* @brief Function for setting the XIP encryption.
*
Expand All @@ -437,7 +437,7 @@ nrfx_err_t nrfx_qspi_lfm_xfer(void const * p_tx_buffer,
nrfx_err_t nrfx_qspi_xip_encrypt(nrf_qspi_encryption_t const * p_config);
#endif

#if NRF_QSPI_HAS_DMA_ENC
#if NRF_QSPI_HAS_DMA_ENC || defined(__NRFX_DOXYGEN__)
/**
* @brief Function for setting the EasyDMA encryption.
*
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_rng.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2016 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_rtc.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2014 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_saadc.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2015 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_spi.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2015 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion drivers/include/nrfx_spim.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015 - 2022, Nordic Semiconductor ASA
* Copyright (c) 2015 - 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
Loading

0 comments on commit 2527e3c

Please sign in to comment.