This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Simple ADC Code

Hello,

    I am want to read Analog value from LDR sensor. I am unable to find ADC Input pin in nrf52840 Dongle datasheet but I got it in nrf52840 chip datasheet (page -576) which is - P0.31. But as a newly bid I don't know how to read analog input. Can you give/provide me the code which having an only analog pin declaration, get read value (Please don't include any interrupt base, timer base or any other properties base function).

                                    waiting for your quick support.

                                            Thank you.

   

  • It's probably easier to understand the code by seeing it running in the DK ...

  • Hi haakonsh,

    can you explain where these SAADC examples are in the new SDK v1.9.1 ? Cant find them through VS code "browse example" and I cant find too the directory and the new SDK. Also not possible to downgrade to the SDK where the SAADC Example is described in

    The zephyr/samples/driver/adc example is throwing many build errors when built for nrf5340DK cuapp.

    I am using nRF5340DK and would like to adc some analog signal from my opamp pcb circuit , so at the end everything is decoupled from any noise (50Hz) causing device.

    Many thanks for any help,

    Christoph

  • nrfx_saadc.zip

    Try this sample. You'll need to create a new build config for the nRF5340DK, but the code should work for both nRF52 and 53 series devices.

  • > Executing task: nRF Connect: Generate config nrf5340dk_nrf5340_cpuapp for c:\nordicsemi\myapps\nrfx_saadc <
    
    Building nrfx_saadc
    west build --build-dir c:\nordicsemi\myapps\nrfx_saadc\build_nrf5340DK c:\nordicsemi\myapps\nrfx_saadc --pristine --board nrf5340dk_nrf5340_cpuapp -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE"
    
    -- west build: generating a build system
    Including boilerplate (Zephyr base): C:/nordicsemi/v1.9.1/zephyr/cmake/app/boilerplate.cmake
    -- Application: C:/nordicsemi/myapps/nrfx_saadc
    -- Zephyr version: 2.7.99 (C:/nordicsemi/v1.9.1/zephyr), build: v2.7.99-ncs1-1
    -- Found Python3: C:/nordicsemi/v1.9.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpuapp
    -- Cache files will be written to: C:/nordicsemi/v1.9.1/zephyr/.cache
    -- Found dtc: C:/nordicsemi/v1.9.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (c:/nordicsemi/v1.9.1/toolchain/opt)
    -- Found BOARD.dts: C:/nordicsemi/v1.9.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/nordicsemi/myapps/nrfx_saadc/build_nrf5340DK/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/nordicsemi/myapps/nrfx_saadc/build_nrf5340DK/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: C:/nordicsemi/myapps/nrfx_saadc/build_nrf5340DK/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: C:/nordicsemi/myapps/nrfx_saadc/build_nrf5340DK/zephyr/dts.cmake
    Parsing C:/nordicsemi/myapps/nrfx_saadc/Kconfig
    Loaded configuration 'C:/nordicsemi/v1.9.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/nordicsemi/myapps/nrfx_saadc/prj.conf'
    Configuration saved to 'C:/nordicsemi/myapps/nrfx_saadc/build_nrf5340DK/zephyr/.config'
    Kconfig header saved to 'C:/nordicsemi/myapps/nrfx_saadc/build_nrf5340DK/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.2.1
    -- The CXX compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/nordicsemi/v1.9.1/toolchain/opt/bin/arm-none-eabi-gcc.exe
    CMake Warning at C:\nordicsemi\v1.9.1\zephyr\CMakeLists.txt:1687 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordicsemi/myapps/nrfx_saadc/build_nrf5340DK
    -- west build: building application
    [1/166] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
    [2/166] Generating include/generated/driver-validation.h
    [3/166] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
    [4/166] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
    [5/166] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
    [6/166] Generating include/generated/offsets.h
    [7/166] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
    [8/166] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
    [9/166] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
    [10/166] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
    [11/166] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
    [12/166] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
    [13/166] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
    [14/166] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
    [15/166] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
    [16/166] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
    [17/166] Generating linker_zephyr_pre0.cmd
    [18/166] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
    [19/166] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
    [20/166] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
    [21/166] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
    [22/166] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
    [23/166] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
    [24/166] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
    [25/166] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
    [26/166] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
    [27/166] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/CMakeFiles/arch__arm__core__aarch32__cortex_m__cmse.dir/arm_core_cmse.c.obj
    [28/166] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
    [29/166] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
    [30/166] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
    [31/166] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
    [32/166] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.obj
    [33/166] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/atoi.c.obj
    [34/166] Linking C static library zephyr\arch\common\libisr_tables.a
    [35/166] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/nanosleep.c.obj
    [36/166] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\cmse\libarch__arm__core__aarch32__cortex_m__cmse.a
    [37/166] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
    [38/166] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/pthread_common.c.obj
    [39/166] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj
    [40/166] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj
    [41/166] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj
    [42/166] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/qsort.c.obj
    [43/166] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
    [44/166] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a
    [45/166] Linking C static library zephyr\arch\common\libarch__common.a
    [46/166] Linking C static library zephyr\arch\arch\arm\core\aarch32\mpu\libarch__arm__core__aarch32__mpu.a
    [47/166] Linking C static library zephyr\lib\posix\liblib__posix.a
    [48/166] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/abort.c.obj
    [49/166] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj
    [50/166] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/bsearch.c.obj
    [51/166] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/exit.c.obj
    [52/166] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj
    [53/166] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strspn.c.obj
    [54/166] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj
    [55/166] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj
    [56/166] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj
    [57/166] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
    [58/166] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/uart_console.c.obj
    [59/166] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
    [60/166] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/nordicsemi/v1.9.1/modules/hal/nordic/nrfx/mdk/system_nrf5340_application.c.obj
    [61/166] Linking C static library zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a
    [62/166] Linking C static library zephyr\lib\libc\minimal\liblib__libc__minimal.a
    [63/166] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj
    [64/166] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj
    [65/166] Building C object modules/nrf/drivers/hw_cc310/CMakeFiles/..__nrf__drivers__hw_cc310.dir/hw_cc310.c.obj
    [66/166] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj
    [67/166] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
    [68/166] Linking C static library zephyr\drivers\console\libdrivers__console.a
    [69/166] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/nordicsemi/v1.9.1/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj
    [70/166] Linking C static library zephyr\drivers\clock_control\libdrivers__clock_control.a
    [71/166] Linking C static library modules\nrf\drivers\hw_cc310\lib..__nrf__drivers__hw_cc310.a
    [72/166] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
    [73/166] Linking C static library zephyr\drivers\gpio\libdrivers__gpio.a
    [74/166] Linking C static library zephyr\drivers\serial\libdrivers__serial.a
    [75/166] Linking C static library zephyr\drivers\timer\libdrivers__timer.a
    [76/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
    [77/166] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/nordicsemi/v1.9.1/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj
    [78/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
    [79/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
    [80/166] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/nordicsemi/v1.9.1/modules/hal/nordic/nrfx/drivers/src/nrfx_saadc.c.obj
    [81/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
    [82/166] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/nordicsemi/v1.9.1/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
    [83/166] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/nordicsemi/v1.9.1/modules/hal/nordic/nrfx/drivers/src/nrfx_dppi.c.obj
    [84/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
    [85/166] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/nordicsemi/v1.9.1/modules/hal/nordic/nrfx/drivers/src/nrfx_timer.c.obj
    [86/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
    [87/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
    [88/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
    [89/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
    [90/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
    [91/166] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a
    [92/166] Building C object CMakeFiles/app.dir/src/main.c.obj
    FAILED: CMakeFiles/app.dir/src/main.c.obj 
    C:\nordicsemi\v1.9.1\toolchain\opt\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v2.7.99-ncs1-1 -DKERNEL -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/nordicsemi/v1.9.1/zephyr/include -Izephyr/include/generated -IC:/nordicsemi/v1.9.1/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/nordicsemi/v1.9.1/zephyr/soc/arm/nordic_nrf/common/. -IC:/nordicsemi/v1.9.1/nrf/include -IC:/nordicsemi/v1.9.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/nordicsemi/v1.9.1/modules/hal/nordic/nrfx -IC:/nordicsemi/v1.9.1/modules/hal/nordic/nrfx/drivers/include -IC:/nordicsemi/v1.9.1/modules/hal/nordic/nrfx/mdk -IC:/nordicsemi/v1.9.1/zephyr/modules/hal_nordic/nrfx/. -isystem C:/nordicsemi/v1.9.1/zephyr/lib/libc/minimal/include -isystem c:/nordicsemi/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include -isystem c:/nordicsemi/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include-fixed -isystem C:/nordicsemi/v1.9.1/nrfxlib/crypto/nrf_cc312_platform/include -Os -imacros C:/nordicsemi/myapps/nrfx_saadc/build_nrf5340DK/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -imacros C:/nordicsemi/v1.9.1/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/nordicsemi/myapps/nrfx_saadc=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/nordicsemi/v1.9.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/nordicsemi/v1.9.1=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c ../src/main.c
    In file included from C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\drivers\include\nrfx_ppi.h:38,
                     from c:\nordicsemi\myapps\nrfx_saadc\src\main.c:10:
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:54:25: error: 'PPI_CHEN_CH0_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH0_Pos'?
       54 |     NRF_PPI_CHANNEL0  = PPI_CHEN_CH0_Pos,  /**< Channel 0. */
          |                         ^~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH0_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:55:25: error: 'PPI_CHEN_CH1_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH1_Pos'?
       55 |     NRF_PPI_CHANNEL1  = PPI_CHEN_CH1_Pos,  /**< Channel 1. */
          |                         ^~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH1_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:56:25: error: 'PPI_CHEN_CH2_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH2_Pos'?
       56 |     NRF_PPI_CHANNEL2  = PPI_CHEN_CH2_Pos,  /**< Channel 2. */
          |                         ^~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH2_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:57:25: error: 'PPI_CHEN_CH3_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH3_Pos'?
       57 |     NRF_PPI_CHANNEL3  = PPI_CHEN_CH3_Pos,  /**< Channel 3. */
          |                         ^~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH3_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:58:25: error: 'PPI_CHEN_CH4_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH4_Pos'?
       58 |     NRF_PPI_CHANNEL4  = PPI_CHEN_CH4_Pos,  /**< Channel 4. */
          |                         ^~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH4_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:59:25: error: 'PPI_CHEN_CH5_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH5_Pos'?
       59 |     NRF_PPI_CHANNEL5  = PPI_CHEN_CH5_Pos,  /**< Channel 5. */
          |                         ^~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH5_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:60:25: error: 'PPI_CHEN_CH6_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH6_Pos'?
       60 |     NRF_PPI_CHANNEL6  = PPI_CHEN_CH6_Pos,  /**< Channel 6. */
          |                         ^~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH6_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:61:25: error: 'PPI_CHEN_CH7_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH7_Pos'?
       61 |     NRF_PPI_CHANNEL7  = PPI_CHEN_CH7_Pos,  /**< Channel 7. */
          |                         ^~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH7_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:62:25: error: 'PPI_CHEN_CH8_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH8_Pos'?
       62 |     NRF_PPI_CHANNEL8  = PPI_CHEN_CH8_Pos,  /**< Channel 8. */
          |                         ^~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH8_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:63:25: error: 'PPI_CHEN_CH9_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH9_Pos'?
       63 |     NRF_PPI_CHANNEL9  = PPI_CHEN_CH9_Pos,  /**< Channel 9. */
          |                         ^~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH9_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:78:25: error: 'PPI_CHEN_CH20_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH20_Pos'?
       78 |     NRF_PPI_CHANNEL20 = PPI_CHEN_CH20_Pos, /**< Channel 20. */
          |                         ^~~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH20_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:79:25: error: 'PPI_CHEN_CH21_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH21_Pos'?
       79 |     NRF_PPI_CHANNEL21 = PPI_CHEN_CH21_Pos, /**< Channel 21. */
          |                         ^~~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH21_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:80:25: error: 'PPI_CHEN_CH22_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH22_Pos'?
       80 |     NRF_PPI_CHANNEL22 = PPI_CHEN_CH22_Pos, /**< Channel 22. */
          |                         ^~~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH22_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:81:25: error: 'PPI_CHEN_CH23_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH23_Pos'?
       81 |     NRF_PPI_CHANNEL23 = PPI_CHEN_CH23_Pos, /**< Channel 23. */
          |                         ^~~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH23_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:82:25: error: 'PPI_CHEN_CH24_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH24_Pos'?
       82 |     NRF_PPI_CHANNEL24 = PPI_CHEN_CH24_Pos, /**< Channel 24. */
          |                         ^~~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH24_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:83:25: error: 'PPI_CHEN_CH25_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH25_Pos'?
       83 |     NRF_PPI_CHANNEL25 = PPI_CHEN_CH25_Pos, /**< Channel 25. */
          |                         ^~~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH25_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:84:25: error: 'PPI_CHEN_CH26_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH26_Pos'?
       84 |     NRF_PPI_CHANNEL26 = PPI_CHEN_CH26_Pos, /**< Channel 26. */
          |                         ^~~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH26_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:85:25: error: 'PPI_CHEN_CH27_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH27_Pos'?
       85 |     NRF_PPI_CHANNEL27 = PPI_CHEN_CH27_Pos, /**< Channel 27. */
          |                         ^~~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH27_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:86:25: error: 'PPI_CHEN_CH28_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH28_Pos'?
       86 |     NRF_PPI_CHANNEL28 = PPI_CHEN_CH28_Pos, /**< Channel 28. */
          |                         ^~~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH28_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:87:25: error: 'PPI_CHEN_CH29_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH29_Pos'?
       87 |     NRF_PPI_CHANNEL29 = PPI_CHEN_CH29_Pos, /**< Channel 29. */
          |                         ^~~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH29_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:88:25: error: 'PPI_CHEN_CH30_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH30_Pos'?
       88 |     NRF_PPI_CHANNEL30 = PPI_CHEN_CH30_Pos, /**< Channel 30. */
          |                         ^~~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH30_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:89:25: error: 'PPI_CHEN_CH31_Pos' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH31_Pos'?
       89 |     NRF_PPI_CHANNEL31 = PPI_CHEN_CH31_Pos  /**< Channel 31. */
          |                         ^~~~~~~~~~~~~~~~~
          |                         DPPIC_CHEN_CH31_Pos
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:108:31: error: 'PPI_CHG_CH0_Excluded' undeclared here (not in a function); did you mean 'DPPIC_CHG_CH0_Excluded'?
      108 |     NRF_PPI_CHANNEL_EXCLUDE = PPI_CHG_CH0_Excluded, /**< Channel excluded from a group. */
          |                               ^~~~~~~~~~~~~~~~~~~~
          |                               DPPIC_CHG_CH0_Excluded
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:109:31: error: 'PPI_CHG_CH0_Included' undeclared here (not in a function); did you mean 'DPPIC_CHG_CH0_Included'?
      109 |     NRF_PPI_CHANNEL_INCLUDE = PPI_CHG_CH0_Included  /**< Channel included in a group. */
          |                               ^~~~~~~~~~~~~~~~~~~~
          |                               DPPIC_CHG_CH0_Included
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:115:32: error: 'PPI_CHEN_CH0_Disabled' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH0_Disabled'?
      115 |     NRF_PPI_CHANNEL_DISABLED = PPI_CHEN_CH0_Disabled, /**< Channel disabled. */
          |                                ^~~~~~~~~~~~~~~~~~~~~
          |                                DPPIC_CHEN_CH0_Disabled
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:116:32: error: 'PPI_CHEN_CH0_Enabled' undeclared here (not in a function); did you mean 'DPPIC_CHEN_CH0_Enabled'?
      116 |     NRF_PPI_CHANNEL_ENABLED  = PPI_CHEN_CH0_Enabled   /**< Channel enabled. */
          |                                ^~~~~~~~~~~~~~~~~~~~
          |                                DPPIC_CHEN_CH0_Enabled
    In file included from C:\nordicsemi\v1.9.1\zephyr\include\kernel_includes.h:16,
                     from C:\nordicsemi\v1.9.1\zephyr\include\kernel.h:17,
                     from C:\nordicsemi\v1.9.1\zephyr\include\zephyr.h:18,
                     from c:\nordicsemi\myapps\nrfx_saadc\src\main.c:7:
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:122:38: error: unknown type name 'NRF_PPI_Type'
      122 |     NRF_PPI_TASK_CHG0_EN  = offsetof(NRF_PPI_Type, TASKS_CHG[0].EN),  /**< Task for enabling channel group 0. */
          |                                      ^~~~~~~~~~~~
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:123:38: error: unknown type name 'NRF_PPI_Type'
      123 |     NRF_PPI_TASK_CHG0_DIS = offsetof(NRF_PPI_Type, TASKS_CHG[0].DIS), /**< Task for disabling channel group 0. */
          |                                      ^~~~~~~~~~~~
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:124:38: error: unknown type name 'NRF_PPI_Type'
      124 |     NRF_PPI_TASK_CHG1_EN  = offsetof(NRF_PPI_Type, TASKS_CHG[1].EN),  /**< Task for enabling channel group 1. */
          |                                      ^~~~~~~~~~~~
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:125:38: error: unknown type name 'NRF_PPI_Type'
      125 |     NRF_PPI_TASK_CHG1_DIS = offsetof(NRF_PPI_Type, TASKS_CHG[1].DIS), /**< Task for disabling channel group 1. */
          |                                      ^~~~~~~~~~~~
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:126:38: error: unknown type name 'NRF_PPI_Type'
      126 |     NRF_PPI_TASK_CHG2_EN  = offsetof(NRF_PPI_Type, TASKS_CHG[2].EN),  /**< Task for enabling channel group 2. */
          |                                      ^~~~~~~~~~~~
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:127:38: error: unknown type name 'NRF_PPI_Type'
      127 |     NRF_PPI_TASK_CHG2_DIS = offsetof(NRF_PPI_Type, TASKS_CHG[2].DIS), /**< Task for disabling channel group 2. */
          |                                      ^~~~~~~~~~~~
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:128:38: error: unknown type name 'NRF_PPI_Type'
      128 |     NRF_PPI_TASK_CHG3_EN  = offsetof(NRF_PPI_Type, TASKS_CHG[3].EN),  /**< Task for enabling channel group 3. */
          |                                      ^~~~~~~~~~~~
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:129:38: error: unknown type name 'NRF_PPI_Type'
      129 |     NRF_PPI_TASK_CHG3_DIS = offsetof(NRF_PPI_Type, TASKS_CHG[3].DIS), /**< Task for disabling channel group 3. */
          |                                      ^~~~~~~~~~~~
    In file included from C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\drivers\include\nrfx_ppi.h:38,
                     from c:\nordicsemi\myapps\nrfx_saadc\src\main.c:10:
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:147:47: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      147 | NRF_STATIC_INLINE void nrf_ppi_channel_enable(NRF_PPI_Type * p_reg, nrf_ppi_channel_t channel);
          |                                               ^~~~~~~~~~~~
          |                                               NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:157:48: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      157 | NRF_STATIC_INLINE void nrf_ppi_channel_disable(NRF_PPI_Type * p_reg, nrf_ppi_channel_t channel);
          |                                                ^~~~~~~~~~~~
          |                                                NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:171:71: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      171 | NRF_STATIC_INLINE nrf_ppi_channel_enable_t nrf_ppi_channel_enable_get(NRF_PPI_Type const * p_reg,
          |                                                                       ^~~~~~~~~~~~
          |                                                                       NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:179:53: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      179 | NRF_STATIC_INLINE void nrf_ppi_channels_disable_all(NRF_PPI_Type * p_reg);
          |                                                     ^~~~~~~~~~~~
          |                                                     NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:187:48: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      187 | NRF_STATIC_INLINE void nrf_ppi_channels_enable(NRF_PPI_Type * p_reg, uint32_t mask);
          |                                                ^~~~~~~~~~~~
          |                                                NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:195:49: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      195 | NRF_STATIC_INLINE void nrf_ppi_channels_disable(NRF_PPI_Type * p_reg, uint32_t mask);
          |                                                 ^~~~~~~~~~~~
          |                                                 NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:205:55: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      205 | NRF_STATIC_INLINE void nrf_ppi_channel_endpoint_setup(NRF_PPI_Type *    p_reg,
          |                                                       ^~~~~~~~~~~~
          |                                                       NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:217:53: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      217 | NRF_STATIC_INLINE void nrf_ppi_event_endpoint_setup(NRF_PPI_Type *    p_reg,
          |                                                     ^~~~~~~~~~~~
          |                                                     NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:228:52: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      228 | NRF_STATIC_INLINE void nrf_ppi_task_endpoint_setup(NRF_PPI_Type *    p_reg,
          |                                                    ^~~~~~~~~~~~
          |                                                    NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:270:57: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      270 | NRF_STATIC_INLINE void nrf_ppi_channel_include_in_group(NRF_PPI_Type *          p_reg,
          |                                                         ^~~~~~~~~~~~
          |                                                         NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:283:58: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      283 | NRF_STATIC_INLINE void nrf_ppi_channels_include_in_group(NRF_PPI_Type *          p_reg,
          |                                                          ^~~~~~~~~~~~
          |                                                          NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:296:58: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      296 | NRF_STATIC_INLINE void nrf_ppi_channel_remove_from_group(NRF_PPI_Type *          p_reg,
          |                                                          ^~~~~~~~~~~~
          |                                                          NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:309:59: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      309 | NRF_STATIC_INLINE void nrf_ppi_channels_remove_from_group(NRF_PPI_Type *          p_reg,
          |                                                           ^~~~~~~~~~~~
          |                                                           NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:319:44: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      319 | NRF_STATIC_INLINE void nrf_ppi_group_clear(NRF_PPI_Type * p_reg, nrf_ppi_channel_group_t group);
          |                                            ^~~~~~~~~~~~
          |                                            NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:327:45: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      327 | NRF_STATIC_INLINE void nrf_ppi_group_enable(NRF_PPI_Type * p_reg, nrf_ppi_channel_group_t group);
          |                                             ^~~~~~~~~~~~
          |                                             NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:335:46: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      335 | NRF_STATIC_INLINE void nrf_ppi_group_disable(NRF_PPI_Type * p_reg, nrf_ppi_channel_group_t group);
          |                                              ^~~~~~~~~~~~
          |                                              NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:343:45: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      343 | NRF_STATIC_INLINE void nrf_ppi_task_trigger(NRF_PPI_Type * p_reg, nrf_ppi_task_t ppi_task);
          |                                             ^~~~~~~~~~~~
          |                                             NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:353:53: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      353 | NRF_STATIC_INLINE uint32_t nrf_ppi_task_address_get(NRF_PPI_Type const * p_reg,
          |                                                     ^~~~~~~~~~~~
          |                                                     NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:364:66: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      364 | NRF_STATIC_INLINE uint32_t nrf_ppi_task_group_enable_address_get(NRF_PPI_Type const *    p_reg,
          |                                                                  ^~~~~~~~~~~~
          |                                                                  NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:375:67: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      375 | NRF_STATIC_INLINE uint32_t nrf_ppi_task_group_disable_address_get(NRF_PPI_Type const *    p_reg,
          |                                                                   ^~~~~~~~~~~~
          |                                                                   NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:386:64: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      386 | NRF_STATIC_INLINE nrf_ppi_task_t nrf_ppi_group_enable_task_get(NRF_PPI_Type const * p_reg,
          |                                                                ^~~~~~~~~~~~
          |                                                                NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:397:65: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      397 | NRF_STATIC_INLINE nrf_ppi_task_t nrf_ppi_group_disable_task_get(NRF_PPI_Type const * p_reg,
          |                                                                 ^~~~~~~~~~~~
          |                                                                 NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:403:47: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      403 | NRF_STATIC_INLINE void nrf_ppi_channel_enable(NRF_PPI_Type * p_reg, nrf_ppi_channel_t channel)
          |                                               ^~~~~~~~~~~~
          |                                               NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:408:48: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      408 | NRF_STATIC_INLINE void nrf_ppi_channel_disable(NRF_PPI_Type * p_reg, nrf_ppi_channel_t channel)
          |                                                ^~~~~~~~~~~~
          |                                                NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:413:71: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      413 | NRF_STATIC_INLINE nrf_ppi_channel_enable_t nrf_ppi_channel_enable_get(NRF_PPI_Type const * p_reg,
          |                                                                       ^~~~~~~~~~~~
          |                                                                       NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:426:53: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      426 | NRF_STATIC_INLINE void nrf_ppi_channels_disable_all(NRF_PPI_Type * p_reg)
          |                                                     ^~~~~~~~~~~~
          |                                                     NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:431:48: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      431 | NRF_STATIC_INLINE void nrf_ppi_channels_enable(NRF_PPI_Type * p_reg, uint32_t mask)
          |                                                ^~~~~~~~~~~~
          |                                                NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:436:49: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      436 | NRF_STATIC_INLINE void nrf_ppi_channels_disable(NRF_PPI_Type * p_reg, uint32_t mask)
          |                                                 ^~~~~~~~~~~~
          |                                                 NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:441:55: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      441 | NRF_STATIC_INLINE void nrf_ppi_channel_endpoint_setup(NRF_PPI_Type *    p_reg,
          |                                                       ^~~~~~~~~~~~
          |                                                       NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:450:53: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      450 | NRF_STATIC_INLINE void nrf_ppi_event_endpoint_setup(NRF_PPI_Type *    p_reg,
          |                                                     ^~~~~~~~~~~~
          |                                                     NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:457:52: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      457 | NRF_STATIC_INLINE void nrf_ppi_task_endpoint_setup(NRF_PPI_Type *    p_reg,
          |                                                    ^~~~~~~~~~~~
          |                                                    NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:484:57: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      484 | NRF_STATIC_INLINE void nrf_ppi_channel_include_in_group(NRF_PPI_Type *          p_reg,
          |                                                         ^~~~~~~~~~~~
          |                                                         NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:491:58: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      491 | NRF_STATIC_INLINE void nrf_ppi_channels_include_in_group(NRF_PPI_Type *          p_reg,
          |                                                          ^~~~~~~~~~~~
          |                                                          NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:498:58: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      498 | NRF_STATIC_INLINE void nrf_ppi_channel_remove_from_group(NRF_PPI_Type *          p_reg,
          |                                                          ^~~~~~~~~~~~
          |                                                          NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:505:59: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      505 | NRF_STATIC_INLINE void nrf_ppi_channels_remove_from_group(NRF_PPI_Type *          p_reg,
          |                                                           ^~~~~~~~~~~~
          |                                                           NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:512:44: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      512 | NRF_STATIC_INLINE void nrf_ppi_group_clear(NRF_PPI_Type * p_reg, nrf_ppi_channel_group_t group)
          |                                            ^~~~~~~~~~~~
          |                                            NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:517:45: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      517 | NRF_STATIC_INLINE void nrf_ppi_group_enable(NRF_PPI_Type * p_reg, nrf_ppi_channel_group_t group)
          |                                             ^~~~~~~~~~~~
          |                                             NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:522:46: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      522 | NRF_STATIC_INLINE void nrf_ppi_group_disable(NRF_PPI_Type * p_reg, nrf_ppi_channel_group_t group)
          |                                              ^~~~~~~~~~~~
          |                                              NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:527:45: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      527 | NRF_STATIC_INLINE void nrf_ppi_task_trigger(NRF_PPI_Type * p_reg, nrf_ppi_task_t ppi_task)
          |                                             ^~~~~~~~~~~~
          |                                             NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:532:53: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      532 | NRF_STATIC_INLINE uint32_t nrf_ppi_task_address_get(NRF_PPI_Type const * p_reg,
          |                                                     ^~~~~~~~~~~~
          |                                                     NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:538:66: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      538 | NRF_STATIC_INLINE uint32_t nrf_ppi_task_group_enable_address_get(NRF_PPI_Type const *    p_reg,
          |                                                                  ^~~~~~~~~~~~
          |                                                                  NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:544:67: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      544 | NRF_STATIC_INLINE uint32_t nrf_ppi_task_group_disable_address_get(NRF_PPI_Type const *    p_reg,
          |                                                                   ^~~~~~~~~~~~
          |                                                                   NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:550:64: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      550 | NRF_STATIC_INLINE nrf_ppi_task_t nrf_ppi_group_enable_task_get(NRF_PPI_Type const * p_reg,
          |                                                                ^~~~~~~~~~~~
          |                                                                NRF_GPIO_Type
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_ppi.h:558:65: error: unknown type name 'NRF_PPI_Type'; did you mean 'NRF_GPIO_Type'?
      558 | NRF_STATIC_INLINE nrf_ppi_task_t nrf_ppi_group_disable_task_get(NRF_PPI_Type const * p_reg,
          |                                                                 ^~~~~~~~~~~~
          |                                                                 NRF_GPIO_Type
    In file included from c:\nordicsemi\myapps\nrfx_saadc\src\main.c:10:
    C:/nordicsemi/v1.9.1/modules/hal/nordic/nrfx/drivers/include/nrfx_ppi.h: In function 'nrfx_ppi_task_addr_get':
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\drivers\include\nrfx_ppi.h:330:12: warning: implicit declaration of function 'nrf_ppi_task_address_get'; did you mean 'nrf_dppi_task_address_get'? [-Wimplicit-function-declaration]
      330 |     return nrf_ppi_task_address_get(NRF_PPI, task);
          |            ^~~~~~~~~~~~~~~~~~~~~~~~
          |            nrf_dppi_task_address_get
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\drivers\include\nrfx_ppi.h:330:37: error: 'NRF_PPI' undeclared (first use in this function); did you mean 'NRF_SPU'?
      330 |     return nrf_ppi_task_address_get(NRF_PPI, task);
          |                                     ^~~~~~~
          |                                     NRF_SPU
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\drivers\include\nrfx_ppi.h:330:37: note: each undeclared identifier is reported only once for each function it appears in
    C:/nordicsemi/v1.9.1/modules/hal/nordic/nrfx/drivers/include/nrfx_ppi.h: In function 'nrfx_ppi_task_addr_group_enable_get':
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\drivers\include\nrfx_ppi.h:335:12: warning: implicit declaration of function 'nrf_ppi_task_group_enable_address_get'; did you mean 'nrf_dppi_group_enable_task_get'? [-Wimplicit-function-declaration]
      335 |     return nrf_ppi_task_group_enable_address_get(NRF_PPI, group);
          |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          |            nrf_dppi_group_enable_task_get
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\drivers\include\nrfx_ppi.h:335:50: error: 'NRF_PPI' undeclared (first use in this function); did you mean 'NRF_SPU'?
      335 |     return nrf_ppi_task_group_enable_address_get(NRF_PPI, group);
          |                                                  ^~~~~~~
          |                                                  NRF_SPU
    C:/nordicsemi/v1.9.1/modules/hal/nordic/nrfx/drivers/include/nrfx_ppi.h: In function 'nrfx_ppi_task_addr_group_disable_get':
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\drivers\include\nrfx_ppi.h:340:12: warning: implicit declaration of function 'nrf_ppi_task_group_disable_address_get'; did you mean 'nrf_dppi_group_disable_task_get'? [-Wimplicit-function-declaration]
      340 |     return nrf_ppi_task_group_disable_address_get(NRF_PPI, group);
          |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          |            nrf_dppi_group_disable_task_get
    C:\nordicsemi\v1.9.1\modules\hal\nordic\nrfx\drivers\include\nrfx_ppi.h:340:51: error: 'NRF_PPI' undeclared (first use in this function); did you mean 'NRF_SPU'?
      340 |     return nrf_ppi_task_group_disable_address_get(NRF_PPI, group);
          |                                                   ^~~~~~~
          |                                                   NRF_SPU
    [93/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
    [94/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
    [95/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
    [96/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
    [97/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
    [98/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
    [99/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
    [100/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
    [101/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'c:\nordicsemi\v1.9.1\toolchain\opt\bin\cmake.EXE' --build 'c:\nordicsemi\myapps\nrfx_saadc\build_nrf5340DK'
    The terminal process terminated with exit code: 1.
    
    Terminal will be reused by tasks, press any key to close it.

Related