Commit graph

77 commits

Author SHA1 Message Date
Nikodem Kastelik
d0d0a36419 nrfx 3.3.0 release
Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2023-12-21 19:49:07 +01:00
Nikodem Kastelik
f147ea557d nrfx_nfct: remove spurious assert from nrfx_nfct_parameter_set
This function can be called before nrfx_nfct_init.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2023-10-05 13:40:03 +02:00
Nikodem Kastelik
7ef620bedd nrfx 3.2.0 release
Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2023-10-02 15:21:51 +02:00
Nikodem Kastelik
98d6f43331
nrfx 3.1.0 release
Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2023-06-28 11:41:26 +02:00
Nikodem Kastelik
1c721175f2 nrfx 3.0.0 release
Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2023-04-25 13:04:14 +02:00
Andrzej Głąbek
91ec616929 nrfx: mdk: Fix handling of APPROTECT on nRF91
Apply corrections that make it possible to disable APPROTECT mechanism
(which is enabled by default in hardware) on the nRF91 Series SiPs.

These are temporary changes supposed to be overwritten by the next
update of MDK.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2023-04-18 17:03:24 +02:00
Nikodem Kastelik
2527e3c844 nrfx 2.11.0 release 2023-04-07 12:23:03 +02:00
Nikodem Kastelik
23fb4437c0 nrfx 2.10.0 release 2022-10-25 11:12:47 +02:00
Stephanos Ioannidis
f5a9b04bac nrfx_clock: Disable array bounds warning for nrf_clock_is_running
This commit disables the array bounds warning (`-Warray-bounds`) for
the `nrf_clock_is_running` function because GCC 12 and above may report
a false positive due to the size of the write access to the memory
address pointed by the `p_clk_src` argument being variable depending on
the value of the `domain` argument.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-08-30 12:45:48 +02:00
Nikodem Kastelik
16756cadac nrfx 2.9.0 release 2022-07-19 11:08:16 +02:00
Andrzej Głąbek
99bfbc0d5d nrfx_qspi: Correct IO3 line level used in nrfx_qspi_mem_busy_check()
Keep the line high during the custom instruction transfer. Otherwise,
its low level can be interpreted by the memory chip as an active
HOLD#/RESET# signal and in consequence the memory status can be read
incorrectly.
Add also related notes to descriptions of nrfx_qspi_cinstr_xfer() and
nrfx_qspi_lfm_start() to warn users that the default configuration
provided by NRFX_QSPI_DEFAULT_CINSTR() may not always be suitable.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2022-06-20 13:42:47 +02:00
Nikodem Kastelik
55305292a2 nrfx 2.8.0 release 2022-04-05 09:29:07 +02:00
Andreas Pettersson
0805a0bce6 nrfx_nfct: remove unused enum 2022-01-18 13:27:30 +01:00
Andreas Pettersson
30cf7c6dd7 nrf_nfct: make all bits of SELRES get- and settable
Some NFC protocols require some of the RFU bits to be set. Cascade bit
is still not settable.

Signed-off-by: Andreas Pettersson <andreaspettersson95@gmail.com>
2022-01-18 13:27:30 +01:00
nitz
12658ea162 nrfx_ncft: Add callback for RXFRAMESTART event
Signed-off-by: Andreas Pettersson <andreaspettersson95@gmail.com>
2022-01-18 13:27:30 +01:00
nitz
718fa2b093 nrfx_ncft: Add function to tx specific bit count
Out of the box, nrfx_nfct only had the functionality to transmit whole
bytes. Things in many forms of NFC communication depend on specific bit
counts (like ACK/NAKs for particular protocols.) This adds a function
with a signature similar to nrfx_nfct_tx, aptly named nrfx_nfct_bits_tx.
It uses the data_size member of the nrfx_nfct_data_desc_t struct as
the number of bits to send rather than bytes. As such, it also
calculates the byte length of the buffer to provide to the MAXLEN
EasyDMA register based on the number of bits, taking into account bits
that don't fit evenly into the last whole byte.

Signed-off-by: Andreas Pettersson <andreaspettersson95@gmail.com>
2022-01-18 13:27:30 +01:00
Andrzej Głąbek
df4ea06e6b nrfx_pwm: Fix incorrect check that suppresses pin configuration
The whole pin configuration function in the driver should be skipped
when both GPIO and PSEL skip flags are set, but the code that checks
this condition, despite the comment correctly explaining its purpose,
contains an unwanted negation. This commit fixes this embarrassing
copy-paste mistake.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2022-01-03 09:52:33 +01:00
Nikodem Kastelik
3521c97df0 nrfx 2.7.0 release 2021-12-15 18:48:39 +01:00
Nikodem Kastelik
58ac10d629 nrfx 2.6.0 release 2021-11-22 10:28:11 +01:00
Sebastian Bøe
7d8fff3ded nrfx_nvmc: Add workaround function for nRF9160 anomaly 7
Add a workaround function for accessing UICR safely without being
affected by nRF9160 errata 7.

This workaround and bug is described in the errata with ID "[7] KMU:
Subsequent accesses between info_mem and main_mem of the flash may not
work properly".

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2021-10-11 09:58:57 +02:00
Nikodem Kastelik
b5399066bd nrfx_dppi: Fix variable used in logging function
Depending on the implementation of NRFX_CRITICAL_SECTION_ENTER
the 'channel' variable could be undefined in logging function.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2021-05-06 13:11:27 +02:00
Nikodem Kastelik
7eca6c2dc0 nrfx 2.5.0 release 2021-05-05 17:12:56 +02:00
Xavier Chapron
c7c5127e8a drivers: nrfx_{twi, twim}: Fix busy flag not reset
This is necessary so that next occurence of nrfx_{twi, twim}_enable()
followed by {twi, twim}_xfer() will not raised a NRFX_ERROR_BUSY error.

This could happen when a previous transfer is started but is aborted
using nrfx_{twi, twim}_disable() before the end of the transaction which
calls {twi, twim}_irq_handler().

Signed-off-by: Xavier Chapron <xavier.chapron@stimio.fr>
2021-03-18 13:15:40 +01:00
Nikodem Kastelik
d779b49fc5 nrfx 2.4.0 release 2020-11-13 08:40:54 +01:00
Karol Lasończyk
6c31cb7d0e nrfx 2.3.0 release 2020-08-20 14:11:39 +02:00
Andrzej Głąbek
233c96307e nrfx_nvmc: Fix setting of program memory access mode for secure code
For secure code, the access mode needs to be set for both secure and
non-secure regions. Otherwise, attempts from secure code to write or
erase a region configured as non-secure end up with BusFault.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2020-05-28 11:15:08 +02:00
Andrzej Głąbek
7116456ac8 nrfx_nvmc: Prevent use of NRF_UICR symbol in non-secure targets
In SoCs with TrustZone support, only secure code can access UICR.
When a non-secure target is built, the NRF_UICR symbol is not even
defined.
This commit prevents the NVMC driver from referencing the NRF_UICR
symbol when the driver is compiled for a non-secure target.
Assertions that normally use this symbol for checking if a given
address is valid for an operation on flash will fail in non-secure
code when the supplied address belongs to the UICR region, what is
the expected behavior.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2020-05-22 16:36:54 +02:00
Mieszko Mierunski
59ad34410b nrfx_spim: Fix error log message.
Log message references non existing p_instance variable, changed to
p_spim.

Signed-off-by: Mieszko Mierunski <mieszko.mierunski@nordicsemi.no>
2020-05-06 15:09:25 +02:00
Karol Lasończyk
a5397bea55 nrfx 2.2.0 release 2020-04-28 11:12:19 +02:00
Øyvind Rønningstad
1139551ce3 nrfx_nvmc: Add APIs for halfword (16-bit) access
In the OTP region in nRF91/53, halfwords must be changed with a single
operation (writes are blocked by HW if the current value != 0xFFFF).

Add function for halfwords so that users don't have to do the bitshifts
themselves.

Also, add read support, since UICR doesn't support unaligned accesses.

Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
2020-04-22 16:35:18 +02:00
Øyvind Rønningstad
5a685a8362 nrfx_nvmc: Modify NRFX_ASSERT to allow writing to UICR
With the current assert, writes to UICR, including OTP in nRF91/53
triggers an assert.

Add static functions for checking whether an address is in app flash.
Add function in nrfx_common.h for checking whether an address is in UICR.

Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
2020-04-22 16:35:18 +02:00
Andrzej Głąbek
3d64bcae3d drivers: Cast uint32_t arguments to unsigned long in log messages
To avoid warnings about providing an argument of type `uint32_t` (which
is `unsigned int`) where a `long unsigned int` one is expected.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2020-04-09 15:34:30 +02:00
Nikodem Kastelik
281cc2e178 nrfx 2.1.0 release 2020-01-24 11:39:10 +01:00
zyan-wu
9136253e27 nrfx_pwm: Make possible to skip GPIO configuration in nrfx_pwm_init() 2019-11-15 08:30:14 +01:00
Karol Lasończyk
7a4c9d946c nrfx 2.0.0 release 2019-11-06 17:09:54 +01:00
Karol Lasończyk
ecc3616b8e nrfx 1.8.1 release 2019-10-21 15:27:52 +02:00
Karol Lasończyk
06c0b98966 nrfx 1.8.0 release 2019-09-13 14:42:36 +02:00
Xenoamor
9eb56fbbdb nrfx_wdt: Fix wdt reload counter calculation overflow 2019-07-26 10:36:23 +02:00
Karol Lasończyk
13a7de7de7 nrfx 1.7.2 release 2019-07-25 10:58:11 +02:00
Beetix
db295c11c3 templates: Fix config type for UART0 enable
- From int to boolean
2019-05-27 10:38:35 +02:00
Glenn Ruben Bakke
7513fc9d5c nrfx_uart: Declare tx_buffer_length to be volatile
This patch declares the member tx_buffer_length of uart_control_block_t
to be a volatile variable. This variable might be set/read by main thread
and also cleared by IRQ context, which might lead to unexpected behaviour
when compiling with high optimization level (LTO + O3).
2019-05-17 08:17:56 +02:00
Karol Lasończyk
9d68726e41 nrfx 1.7.1 release 2019-04-08 15:18:02 +02:00
Karol Lasończyk
ab87d03dcf nrfx 1.7.0 release 2019-04-01 08:40:44 +02:00
Andrzej Głąbek
6f54f689e9 nrfx 1.6.2 release 2019-02-12 22:36:43 +01:00
Karol Lasończyk
a0dcb1350f nrfx 1.6.1 release 2019-01-30 14:50:16 +01:00
Karol Lasończyk
ed9d3fe6a4 nrfx 1.6.0 release 2019-01-24 15:12:47 +01:00
Tomasz Jankowski
7c070a4db2 nrfx_uarte: Make uarte_control_block_t's tx_buffer_length volatile
In certain cases nrfx_uarte_tx_in_progress() needs to always return true. Such
behavior was observed when nrfx was compiled with strong optimizations (-O3).

Marking tx_buffer_length as volatile solved the problem.

Tested on Linux with arm-none-eabi-gcc v8.2.0
2019-01-17 22:57:44 +01:00
Karol Lasończyk
2f4572bd2a nrfx 1.5.0 release 2018-12-07 09:20:55 +01:00
Karol Lasończyk
595e79f63f nrfx 1.4.0 release 2018-11-30 15:18:12 +01:00
Karol Lasończyk
d4ebe15f58 nrfx 1.3.1 release 2018-09-28 15:06:38 +02:00