Skip to content

Commit

Permalink
drivers: adc: nrfx_saadc: Use CONFIG_NRF_PLATFORM_HALTIUM
Browse files Browse the repository at this point in the history
Apply it in a few more locations that were missed in
5a4655f.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
  • Loading branch information
57300 committed Oct 23, 2024
1 parent 16fbf63 commit c6630e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/adc/adc_nrfx_saadc.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ BUILD_ASSERT((NRF_SAADC_AIN0 == NRF_SAADC_INPUT_AIN0) &&
"Definitions from nrf-adc.h do not match those from nrf_saadc.h");
#endif

#if defined(CONFIG_SOC_NRF54H20) || defined(CONFIG_SOC_NRF9280)
#if defined(CONFIG_NRF_PLATFORM_HALTIUM)

/* nRF54H20 and nRF9280 always use bounce buffers in RAM */
/* Haltium devices always use bounce buffers in RAM */

#define SAADC_MEMORY_SECTION \
COND_CODE_1(DT_NODE_HAS_PROP(DT_NODELABEL(adc), memory_regions), \
Expand All @@ -80,7 +80,7 @@ static uint16_t adc_samples_buffer[SAADC_CH_NUM] SAADC_MEMORY_SECTION;

#define ADC_BUFFER_IN_RAM

#endif /* defined(CONFIG_SOC_NRF54H20) || defined(CONFIG_SOC_NRF9280) */
#endif /* defined(CONFIG_NRF_PLATFORM_HALTIUM) */

struct driver_data {
struct adc_context ctx;
Expand Down Expand Up @@ -669,7 +669,7 @@ static const struct adc_driver_api adc_nrfx_driver_api = {
#endif
#if defined(CONFIG_SOC_NRF54L15)
.ref_internal = 900,
#elif defined(CONFIG_SOC_NRF54H20) || defined(CONFIG_SOC_NRF9280)
#elif defined(CONFIG_NRF_PLATFORM_HALTIUM)
.ref_internal = 1024,
#else

Check notice on line 674 in drivers/adc/adc_nrfx_saadc.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

You may want to run clang-format on this change

drivers/adc/adc_nrfx_saadc.c:674 - .ref_internal = 1024, + .ref_internal = 1024,
.ref_internal = 600,
Expand Down

0 comments on commit c6630e4

Please sign in to comment.