Commit graph

53 commits

Author SHA1 Message Date
Scott Shawcroft
66628bc1b7
Merge pull request #6 from adafruit/merge-v2.1.0
merge v2.1.0 from upstream, preserving idempotent uninint()'s
2020-02-05 08:02:29 -08:00
Dan Halbert
e90319fd43 merge v2.1.0 from upstream, preserving idempotent uninint()'s 2020-02-05 09:22:33 -05:00
Scott Shawcroft
3f55e49eb1
Merge pull request #4 from hathach/v2
upgrade nrfx to v2
2019-12-18 00:32:15 -08:00
hathach
8efb27e97a Merge tag 'v2.0.0' into v2 2019-12-17 12:09:57 +07: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
Scott Shawcroft
8935519a68
Merge pull request #3 from dhalbert/merge-1.7.1
Merge 1.7.1 from upstream
2019-06-24 17:29:36 -07:00
Dan Halbert
f3524b59cf Merge remote-tracking branch 'NordicSemiconductor/master' 2019-06-23 15:31:40 -04: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
Dan Halbert
3d268263be
Merge pull request #2 from dhalbert/master
Merge v1.6.2 from upstream.
2019-03-11 22:58:16 -04:00
Dan Halbert
99ca774f66 upstream merge including v1.6.2 2019-03-11 20:48:15 -04: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
Scott Shawcroft
b96950abf2
Merge pull request #1 from dhalbert/idempotent-uninint
Make it safe to call uninit() multiple times.
2018-10-31 16:50:02 -07:00
Dan Halbert
df0a8bf306 Make it safe to call uninit() multiple times. 2018-10-16 12:56:36 -04:00
Karol Lasończyk
d4ebe15f58 nrfx 1.3.1 release 2018-09-28 15:06:38 +02:00
Andrzej Głąbek
56e90fa478 nrfx_nfct: Make the driver compilable outside of nRF5 SDK
This patch corrects a few things in nrfx_nfct that made it impossible
to compile this driver outside of the nRF5 SDK. These are:
- call to UNUSED_PARAMETER macro
- memcopy() used without including the proper header file
- call to NRF_LOG_INFO macro

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2018-09-25 15:18:40 +02:00
Paweł Zadrożniak
e0d4ecb140 nrfx_usbd: Fix compilation errors/warnings
- Invalid macros for critical section were used in lines 1800 and 1811.
- Unused variable (uint8_t rb) warning if NRFX_USBD_PROTO1_FIX_DEBUG
  is defined as 0

Signed-off-by: Paweł Zadrożniak <pawel.zadrozniak@nordicsemi.no>
2018-09-25 15:13:40 +02:00
Karol Lasończyk
67710e47c7 nrfx 1.3.0 release 2018-09-21 15:15:26 +02:00
Andrzej Głąbek
d19018ed33 nrfx 1.2.0 release 2018-09-06 14:13:37 +02:00
Ayke van Laethem
3ab39a9d45 nrf_gpio: Add function for reading pin pull mode
This patch adds a new function to read the pull mode
configuration of a pin.
2018-08-06 22:51:33 +02:00
Alberto Escolar Piedras
8492302709 nrf_ppi: Add functions to modify only the event or task endpoints
Added 2 new functions: one for modifying only the event endpoint,
the other to modify only the task endpoint for a given channel.

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
2018-08-06 22:50:27 +02:00
Krzysztof Chruscinski
096e770ee4 nrfx_twim: Fix resuming TXRX transfer
TXRX transfer was missing triggering RESUME task. When previous
transfer ended up without stop condition TWIM is in suspend state.
It is required to resume before starting next transfer.
2018-06-22 11:51:35 +02:00
Karol Lasończyk
293f553ed9 nrfx 1.1.0 release 2018-06-15 08:54:21 +02:00
Glenn Ruben Bakke
d37b16f2b8 nrf_gpio: Add function for reading pin direction
This patch adds a new function to read the direction
configuration of a pin.
2018-06-06 22:43:41 +02:00
Karol Lasończyk
6613205b14 nrf_radio: Add HAL for the RADIO peripheral
Add the RADIO HAL for the nRF SoCs. Supported SoCs:
 - nRF51 series
 - nRF52810
 - nRF52832
 - nRF52840
2018-06-06 12:00:53 +02:00
Andrzej Głąbek
ca8a8c6238 nrf_ccm: Add functions for accessing remaining registers
Extend the CCM HAL so that all registers available for the CCM peripheral
can be accessed via this layer.
Add also proper documentation bindings for the new module.
2018-06-06 08:39:30 +02:00
Alberto Escolar Piedras
0d7de5b485 nrf_ccm: Add functions to trigger tasks and control interrupts
Added CCM HAL functions to enable/disable its interrupts
and to trigger tasks.

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
2018-06-06 08:39:30 +02:00
Andrzej Głąbek
bc9ca1bdd0 nrfx_common: Add NRFX_IRQ_NUMBER_GET macro
This macro does the same thing that the nrfx_get_irq_number() function does.
The difference is that the macro can be used in places where a function call
is not suitable, e.g. in a structure initialization.
2018-05-27 22:14:39 +02:00
Alberto Escolar Piedras
2d766622dc nrf_ppi: Add function to enable a set of channels
Added a function to enable several channels simultaneously.
Similar to the already existent nrf_ppi_channels_disable().

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
2018-05-24 12:02:40 +02:00
Karol Lasończyk
c6ba99f45b nrfx_spim: Refactor access to control block struct
Access to cb structure in nrfx_spim_init function was aligned to use
pointer to control block and be more readable.
2018-04-20 10:16:38 +02:00
Karol Lasończyk
5961880af6 nrfx_spim: Fix Slave Select initialization
Commit fixes situation when Slave Select is set as unused. Configuration
value was not assign to field in control block and slave select field's
value remained zero. It caused pin toggling during SPI transmission when
GPIO 0 is configured as output.
2018-04-20 10:16:38 +02:00
Glenn Ruben Bakke
a698f42fec nrfx_twi: Increase tx and rx transfer length
In order to send and receive more than 255 bytes in one transaction
this patch increases the size of the length parameters such that
data buffers larger than 255 bytes can be transferred in a single
transaction.

Also, this patch increases the HW_TIMEOUT define by a multiple of 10
to make sure that large transactions are not stopped early by timeout.
2018-04-20 10:10:59 +02:00
Karol Lasończyk
f6b2f74570 nrf_ecb: Add hardware access layer in nrf_ecb.h
Commit adds hardware access layer in nrf_ecb.h. Layer is similar to other
implementations to keep sources consistent. Documentation is aligned to
meet current implementation.
Previous implementation is kept and will be removed in next major release.
2018-04-20 08:52:14 +02:00
Glenn Ruben Bakke
0babcc1716 nrfx_gpiote: Update logging format to use %lu instead of %d
This patch updates the format used in NRFX_LOG* statements
with a %lu (long-unsigned) instead of %d (int) on the
places where a uint32_t is passed as argument.
2018-04-09 14:19:16 +02:00
Karol Lasończyk
cf78ebfea1 nrfx 1.0.0 release 2018-03-23 13:42:45 +01:00
Glenn Ruben Bakke
7ac461f4d6 nrfx_timer: Update logging format to use %lu instead of %d
This patch updates the format used in NRFX_LOG* statements with a %lu (long-unsigned)
instead of %d (int) on the places where a uint32_t is passed as argument.
2018-02-19 08:24:36 +01:00
Glenn Ruben Bakke
8a039f30f5 nrfx_rtc: Update logging format to use %lu instead of %d
This patch updates the format used in NRFX_LOG* statements with a %lu (long-unsigned)
instead of %d (int) on the places where a uint32_t is passed as argument.

Example error during compilation:

nrfx_rtc.c:324:24: error: format '%d' expects argument of type 'int',
but argument 3 has type 'uint32_t {aka long unsigned int}'
2018-02-18 23:54:22 +01:00
Glenn Ruben Bakke
79e8dfc9db nrfx_glue: Add macros related to the pending status of IRQs 2018-02-16 16:11:19 +01:00
Glenn Ruben Bakke
5db3994082 nrfx_saadc: Correct format for logging statement
Correct format to %s for the __func__ parameter which is of
const * char.
2018-02-09 08:14:13 +01:00