You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2026/02/09 12:36:59 UTC
(mynewt-core) 02/02: drivers/adc_nrf52: Update to nrfx 3.14
This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 2f5c192e2c42e1d5462470412c9a6f92ecedba4d
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Mon Feb 9 12:26:18 2026 +0100
drivers/adc_nrf52: Update to nrfx 3.14
Type nrf_saadc_value_t used to be uint16_t
now is changed to void.
Now nrf_saadc_value_t is changed to uint16_t
when applicable.
Signed-off-by: Jerzy Kasenberg <je...@codecoup.pl>
---
hw/drivers/adc/adc_nrf52/src/adc_nrf52.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/drivers/adc/adc_nrf52/src/adc_nrf52.c b/hw/drivers/adc/adc_nrf52/src/adc_nrf52.c
index 5f701d262..eeb8f7743 100644
--- a/hw/drivers/adc/adc_nrf52/src/adc_nrf52.c
+++ b/hw/drivers/adc/adc_nrf52/src/adc_nrf52.c
@@ -513,7 +513,7 @@ nrf52_adc_read_channel(struct adc_dev *dev, uint8_t cnum, int *result)
{
int rc;
int unlock = 0;
- nrf_saadc_value_t adc_value;
+ uint16_t adc_value;
if (nrf_saadc_busy_check(NRF_SAADC)) {
return OS_EBUSY;
@@ -585,13 +585,13 @@ static int
nrf52_adc_read_buffer(struct adc_dev *dev, void *buf, int buf_len, int off,
int *result)
{
- nrf_saadc_value_t val;
+ uint16_t val;
int data_off;
- data_off = off * sizeof(nrf_saadc_value_t);
+ data_off = off * sizeof(uint16_t);
assert(data_off < buf_len);
- val = *(nrf_saadc_value_t *) ((uint8_t *) buf + data_off);
+ val = *(uint16_t *) ((uint8_t *) buf + data_off);
*result = val;
return 0;