File tree Expand file tree Collapse file tree 6 files changed +831
-0
lines changed
samples/net/wifi/wifiutils Expand file tree Collapse file tree 6 files changed +831
-0
lines changed Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (c) 2024 Nordic Semiconductor ASA
3
+ #
4
+ # SPDX-License-Identifier: BSD-3-Clause
5
+ #
6
+
7
+ cmake_minimum_required (VERSION 3.20.0 )
8
+
9
+ find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
10
+ project (wifiutils )
11
+
12
+ target_sources (app PRIVATE src/main.c )
Original file line number Diff line number Diff line change
1
+ Build command for QSPI -
2
+ west build -p -b nrf7002dk/nrf5340/cpuapp -- -DDTC_OVERLAY_FILE=fpga_qspi.overlay
3
+
4
+ Build command for SPI -
5
+ west build -p -b nrf5340dk/nrf5340/cpuapp -- -DSHIELD=nrf7002ek -DDTC_OVERLAY_FILE=fpga_spi.overlay
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2024 Nordic Semiconductor ASA
3
+ *
4
+ * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
+ */
6
+ &nrf70 {
7
+ qspi-frequency = <8000000>;
8
+ /* Wi-Fi Pins used */
9
+ iovdd-ctrl-gpios = <&gpio0 12 (GPIO_ACTIVE_HIGH | NRF_DRIVE_E0E1)>;
10
+ bucken-gpios = <&gpio0 12 (GPIO_ACTIVE_HIGH | NRF_DRIVE_E0E1)>;
11
+ host-irq-gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
12
+ };
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2024 Nordic Semiconductor ASA
3
+ *
4
+ * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
+ */
6
+ &nrf70 {
7
+ spi-max-frequency = <8000000>;
8
+ /* Wi-Fi Pins used */
9
+ iovdd-ctrl-gpios = <&gpio0 12 (GPIO_ACTIVE_HIGH | NRF_DRIVE_E0E1)>;
10
+ bucken-gpios = <&gpio0 12 (GPIO_ACTIVE_HIGH | NRF_DRIVE_E0E1)>;
11
+ host-irq-gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
12
+ };
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (c) 2024 Nordic Semiconductor ASA
3
+ #
4
+ # SPDX-License-Identifier: BSD-3-Clause
5
+ #
6
+
7
+ CONFIG_NRF70_BUSLIB=y
8
+ CONFIG_HEAP_MEM_POOL_SIZE=50000
9
+ CONFIG_HEAP_MEM_POOL_IGNORE_MIN=y
10
+
11
+ # System settings
12
+ CONFIG_ASSERT=y
13
+
14
+ CONFIG_INIT_STACKS=y
15
+ CONFIG_SHELL=y
16
+
17
+ # Memories
18
+ CONFIG_MAIN_STACK_SIZE=5200
19
+
20
+ # Debugging
21
+ CONFIG_STACK_SENTINEL=y
22
+ CONFIG_DEBUG_COREDUMP=y
23
+ CONFIG_DEBUG_COREDUMP_BACKEND_LOGGING=y
24
+ CONFIG_SHELL_CMDS_RESIZE=n
25
+ CONFIG_WIFI_NRF70_BUSLIB_LOG_LEVEL_DBG=y
26
+
27
+ # Logging
28
+ CONFIG_LOG=y
29
+ CONFIG_PRINTK=y
30
+ # If below config is enabled, printk logs are
31
+ # buffered. For unbuffered messages, disable this.
32
+ CONFIG_LOG_PRINTK=n
33
+ CONFIG_LOG_MODE_IMMEDIATE=y
34
+ CONFIG_WIFI_NRF71=y
You can’t perform that action at this time.
0 commit comments