text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```c /* * */ /* Sample which uses the filesystem API and SDHC driver */ #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/storage/disk_access.h> #include <zephyr/logging/log.h> #include <zephyr/fs/fs.h> #if defined(CONFIG_FAT_FILESYSTEM_ELM) #include <ff.h> /* * Note the fatfs library is a...
/content/code_sandbox/samples/subsys/fs/fs_sample/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,375
```unknown CONFIG_SDMMC_STM32_HWFC=y ```
/content/code_sandbox/samples/subsys/fs/fs_sample/boards/stm32h747i_disco_stm32h747xx_m7.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
11
```unknown /* * */ / { msc_disk0 { status="okay"; compatible = "zephyr,ram-disk"; /* Sample, to make things easier, mounts all FAT * systems at "SD". */ disk-name = "SD"; /* Disk size is 64kB, 128 sectors of 512B, the minimal * required by FAT FS. */ sector-size = <512>; sector-count = <12...
/content/code_sandbox/samples/subsys/fs/fs_sample/boards/nrf52840dk_nrf52840_ram_disk.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
109
```unknown /* * */ /* The SRAM is defined for nrf52840 in DTS to take entire 256KiB * of RAM there is. We need some for the Disk, so we need to * remove the original definition and replace it with smaller one. */ /delete-node/ &sram0; / { soc { /* This is defined based on dts and dtsi files for * nrf52840...
/content/code_sandbox/samples/subsys/fs/fs_sample/boards/nrf52840dk_nrf52840_ram_disk_region.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
451
```unknown /* * */ &spi1 { sdhc0: sdhc@0 { compatible = "zephyr,sdhc-spi-slot"; reg = <0>; status = "okay"; mmc { compatible = "zephyr,sdmmc-disk"; status = "okay"; }; spi-max-frequency = <25000000>; spi-clock-mode-cpol; spi-clock-mode-cpha; }; }; ```
/content/code_sandbox/samples/subsys/fs/fs_sample/boards/nucleo_f429zi.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
102
```unknown /* * */ /* Because FAT FS needs at least 64kiB partition and default * storage_partition is 36kiB for this board, we need to reorganize * partitions to get at least 64KiB. */ /delete-node/ &slot0_partition; /delete-node/ &slot1_partition; /delete-node/ &slot0_ns_partition; /delete-node/ &slot1_ns_parti...
/content/code_sandbox/samples/subsys/fs/fs_sample/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
281
```unknown # # # CONFIG_DISK_DRIVERS=y CONFIG_DISK_DRIVER_FLASH=y # There may be no files on internal SoC flash, so this Kconfig # options has ben enabled to create some if listing does not # find in the first place. CONFIG_FS_SAMPLE_CREATE_SOME_ENTRIES=y ```
/content/code_sandbox/samples/subsys/fs/fs_sample/boards/nrf52840dk_nrf52840.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
62
```unknown # # # CONFIG_NORDIC_QSPI_NOR=y # The mx25 erase page size CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 CONFIG_DISK_DRIVERS=y CONFIG_DISK_DRIVER_FLASH=y # There may be no files on internal SoC flash, so this Kconfig # options has ben enabled to create some if listing does not # find in the first place....
/content/code_sandbox/samples/subsys/fs/fs_sample/boards/nrf52840dk_nrf52840_qspi.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
96
```unknown /* * */ &sdmmc { status = "okay"; }; ```
/content/code_sandbox/samples/subsys/fs/fs_sample/boards/intel_socfpga_agilex5_socdk.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
14
```unknown CONFIG_DISK_DRIVER_SDMMC=y CONFIG_SPI=y ```
/content/code_sandbox/samples/subsys/fs/fs_sample/boards/nrf52840_blip.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
12
```unknown CONFIG_SPI=y CONFIG_DISK_DRIVER_SDMMC=y ```
/content/code_sandbox/samples/subsys/fs/fs_sample/boards/mg100.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
12
```unknown CONFIG_SPI=y CONFIG_DISK_DRIVER_SDMMC=y ```
/content/code_sandbox/samples/subsys/fs/fs_sample/boards/frdm_k64f.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
12
```unknown /* * */ &spi2 { status = "okay"; sdhc0: sdhc@0 { compatible = "zephyr,sdhc-spi-slot"; reg = <0>; status = "okay"; mmc { compatible = "zephyr,sdmmc-disk"; status = "okay"; }; spi-max-frequency = <20000000>; }; }; ```
/content/code_sandbox/samples/subsys/fs/fs_sample/boards/hifive_unmatched.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
91
```unknown CONFIG_DISK_DRIVER_SDMMC=y CONFIG_SPI=y ```
/content/code_sandbox/samples/subsys/fs/fs_sample/boards/olimexino_stm32.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
12
```unknown # # # CONFIG_DISK_ACCESS=y CONFIG_DISK_DRIVERS=y CONFIG_DISK_DRIVER_SDMMC=y CONFIG_DEBUG=y CONFIG_LOG=y CONFIG_LOG_MODE_MINIMAL=y CONFIG_FILE_SYSTEM=y CONFIG_FILE_SYSTEM_LITTLEFS=y CONFIG_FS_LITTLEFS_BLK_DEV=y CONFIG_FS_LITTLEFS_FMP_DEV=n CONFIG_APP_LITTLEFS_STORAGE_BLK_SDMMC=y CONFIG_NOCACHE_MEMORY=y ...
/content/code_sandbox/samples/subsys/fs/littlefs/prj_blk.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
87
```unknown mainmenu "littlefs sample" config APP_WIPE_STORAGE bool "Option to clear the flash area before mounting" help Use this to force an existing file system to be created. choice prompt "Storage backend type used by the application" default APP_LITTLEFS_STORAGE_FLASH help Specify the type of storage...
/content/code_sandbox/samples/subsys/fs/littlefs/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
123
```unknown # # # # Optionally force the file system to be recreated #CONFIG_APP_WIPE_STORAGE=y # fs_dirent structures are big. CONFIG_MAIN_STACK_SIZE=4096 # Let __ASSERT do its job CONFIG_DEBUG=y CONFIG_LOG=y CONFIG_LOG_MODE_MINIMAL=y CONFIG_FLASH=y CONFIG_FLASH_MAP=y CONFIG_FILE_SYSTEM=y CONFIG_FILE_SYSTEM_LITTL...
/content/code_sandbox/samples/subsys/fs/littlefs/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
85
```restructuredtext .. zephyr:code-sample:: littlefs :name: LittleFS filesystem :relevant-api: file_system_api flash_area_api Use file system API over LittleFS. Overview ******** This sample app demonstrates use of Zephyr's :ref:`file system API <file_system_api>` over `littlefs`_, using file system with fi...
/content/code_sandbox/samples/subsys/fs/littlefs/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,096
```yaml sample: name: littlefs filesystem sample common: tags: - filesystem - littefs tests: sample.filesystem.littlefs: build_only: true platform_allow: - nrf52840dk/nrf52840 - particle_xenon - disco_l475_iot1 - mimxrt685_evk/mimxrt685s/cm33 - mimxrt1060_evk - ...
/content/code_sandbox/samples/subsys/fs/littlefs/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
827
```unknown CONFIG_FS_LITTLEFS_PROG_SIZE=512 CONFIG_FS_LITTLEFS_CACHE_SIZE=512 ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/lpcxpresso55s69_lpc55s69_cpu0.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
23
```unknown /* * */ /delete-node/ &storage_partition; / { fstab { compatible = "zephyr,fstab"; lfs1: lfs1 { compatible = "zephyr,fstab,littlefs"; mount-point = "/lfs1"; partition = <&lfs1_part>; automount; read-size = <16>; prog-size = <16>; cache-size = <64>; lookahead-size = <32>; b...
/content/code_sandbox/samples/subsys/fs/littlefs/boards/nrf52840dk_nrf52840_qspi.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
197
```unknown /* * */ / { fstab { compatible = "zephyr,fstab"; lfs1: lfs1 { compatible = "zephyr,fstab,littlefs"; read-size = <256>; prog-size = <256>; cache-size = <4096>; lookahead-size = <256>; block-cycles = <512>; partition = <&lfs1_partition>; mount-point = "/lfs1"; automount; };...
/content/code_sandbox/samples/subsys/fs/littlefs/boards/b_u585i_iot02a.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
176
```unknown &emmc2 { disk { status = "okay"; }; status = "okay"; }; ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/rcar_salvator_xs.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
24
```unknown # # # Need this when storage is on flash CONFIG_MPU_ALLOW_FLASH_WRITE=y ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/mimxrt1060_evk.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
20
```unknown # # # Need this when storage is on flash CONFIG_MPU_ALLOW_FLASH_WRITE=y CONFIG_NORDIC_QSPI_NOR=y CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/rak5010_nrf52840.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
46
```unknown # # # CONFIG_MAIN_STACK_SIZE=4096 CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192 CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192 CONFIG_DISK_DRIVER_MMC=y CONFIG_DISK_DRIVER_SDMMC=n ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/rcar_h3ulcb_r8a77951_a57_blk.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
51
```unknown # # # CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192 ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/stm32l562e_dk_ospi.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
16
```unknown /* * */ /delete-node/ &storage_partition; / { fstab { compatible = "zephyr,fstab"; lfs1: lfs1 { compatible = "zephyr,fstab,littlefs"; mount-point = "/lfs1"; partition = <&lfs1_part>; automount; read-size = <16>; prog-size = <16>; cache-size = <64>; lookahead-size = <32>; b...
/content/code_sandbox/samples/subsys/fs/littlefs/boards/rak5010_nrf52840.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
198
```unknown /* * */ / { fstab { compatible = "zephyr,fstab"; lfs1: lfs1 { compatible = "zephyr,fstab,littlefs"; read-size = <256>; prog-size = <256>; cache-size = <4096>; lookahead-size = <256>; block-cycles = <512>; partition = <&lfs1_partition>; mount-point = "/lfs1"; automount; };...
/content/code_sandbox/samples/subsys/fs/littlefs/boards/stm32l562e_dk.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
176
```unknown # # # CONFIG_MAIN_STACK_SIZE=2048 CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192 CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192 CONFIG_SDMMC_STM32_HWFC=y ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/nucleo_h743zi_blk.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
47
```unknown # # # CONFIG_SPI=y CONFIG_SPI_NOR=y CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/nrf52840dk_nrf52840_spi.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
26
```unknown # # # CONFIG_SPI=y CONFIG_SPI_NOR=y CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/circuitdojo_feather_nrf9160.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
26
```c /* * */ /* Sample which uses the filesystem API with littlefs */ #include <stdio.h> #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/fs/fs.h> #include <zephyr/fs/littlefs.h> #include <zephyr/logging/log.h> #include <zephyr/storage/flash_map.h> LOG_MODULE_REGISTER(main); /* Matches LFS_...
/content/code_sandbox/samples/subsys/fs/littlefs/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,749
```unknown /* * */ /delete-node/ &storage_partition; / { fstab { compatible = "zephyr,fstab"; lfs1: lfs1 { compatible = "zephyr,fstab,littlefs"; mount-point = "/lfs1"; partition = <&lfs1_part>; automount; read-size = <16>; prog-size = <16>; cache-size = <64>; lookahead-size = <32>; b...
/content/code_sandbox/samples/subsys/fs/littlefs/boards/bmd_345_eval.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
197
```unknown CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=2048 CONFIG_MAIN_STACK_SIZE=2048 ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/stm32h747i_disco_stm32h747xx_m7.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
21
```unknown &emmc2 { disk { status = "okay"; }; status = "okay"; }; ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/rcar_h3ulcb_r8a77951_a57.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
24
```unknown /* * */ / { fstab { compatible = "zephyr,fstab"; lfs1: lfs1 { compatible = "zephyr,fstab,littlefs"; read-size = <1>; prog-size = <16>; cache-size = <256>; lookahead-size = <32>; block-cycles = <512>; partition = <&lfs1_partition>; mount-point = "/lfs1"; }; }; }; &flash0 { ...
/content/code_sandbox/samples/subsys/fs/littlefs/boards/stm32f429i_disc1.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
197
```unknown CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=2048 CONFIG_MAIN_STACK_SIZE=2048 ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/stm32_blk.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
21
```unknown # # # # Set MPU to allow write accesses to flash memory. # This is required by the flash driver to be able # to write to the internal flash. CONFIG_MPU_ALLOW_FLASH_WRITE=y ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/nucleo_h7a3zi_q.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
43
```unknown /* * */ /delete-node/ &storage_partition; &mx25l32 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; /* This is the littlefs v1 file system pre-installed * by Particle. */ littlefs_partition: partition@0 { label = "littlefs"; reg = <0x0000000...
/content/code_sandbox/samples/subsys/fs/littlefs/boards/particle_xenon.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
205
```unknown # # # # Need this when storage is on flash CONFIG_MPU_ALLOW_FLASH_WRITE=y # Need this when storage is on MX25R64 CONFIG_NORDIC_QSPI_NOR=y CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/nrf52840dk_nrf52840_qspi.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
59
```unknown /* * */ / { fstab { compatible = "zephyr,fstab"; lfs1: lfs1 { compatible = "zephyr,fstab,littlefs"; read-size = <32>; prog-size = <32>; cache-size = <256>; lookahead-size = <64>; block-cycles = <512>; partition = <&storage_partition>; mount-point = "/lfs1"; }; }; }; ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/stm32f746g_disco.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
107
```unknown /* * */ /delete-node/ &storage_partition; &sdmmc1 { status = "okay"; pinctrl-0 = <&sdmmc1_d0_pc8 &sdmmc1_ck_pc12 &sdmmc1_cmd_pd2>; pinctrl-names = "default"; }; / { fstab { compatible = "zephyr,fstab"; lfs1: lfs1 { compatible = "zephyr,fstab,littlefs"; read-size = <32>; pr...
/content/code_sandbox/samples/subsys/fs/littlefs/boards/nucleo_h743zi.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
428
```unknown # # # Need this when storage is on flash CONFIG_MPU_ALLOW_FLASH_WRITE=y # Need this when storage is on MX25R64 CONFIG_NORDIC_QSPI_NOR=y CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/bmd_345_eval.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
58
```unknown /* * */ / { fstab { compatible = "zephyr,fstab"; lfs1: lfs1 { compatible = "zephyr,fstab,littlefs"; read-size = <32>; prog-size = <32>; cache-size = <256>; lookahead-size = <64>; block-cycles = <512>; partition = <&fs_partition>; mount-point = "/lfs1"; }; }; }; &mt25ql512a...
/content/code_sandbox/samples/subsys/fs/littlefs/boards/stm32h747i_disco_stm32h747xx_m7.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
146
```unknown # # # CONFIG_SPI=y CONFIG_SPI_NOR=y CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/particle_xenon.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
26
```unknown /* * */ /delete-node/ &mx25r64; &qspi { status = "disabled"; }; /* The mx25, on nrf52840dk/nrf52840, uses pins for spi0, spi1, spi2 and spi3 * to provide quad-spi feature. In individual specifications each of the spi * notes define own clock source (SCK), but spi2 shares the same clock source * as q...
/content/code_sandbox/samples/subsys/fs/littlefs/boards/nrf52840dk_nrf52840_spi.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
631
```unknown # # # CONFIG_MAIN_STACK_SIZE=4096 CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192 CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192 CONFIG_DISK_DRIVER_MMC=y CONFIG_DISK_DRIVER_SDMMC=n ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/rcar_salvator_xs_blk.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
51
```unknown /* * */ / { fstab { compatible = "zephyr,fstab"; lfs1: lfs1 { compatible = "zephyr,fstab,littlefs"; read-size = <32>; prog-size = <32>; cache-size = <256>; lookahead-size = <64>; block-cycles = <512>; partition = <&fs_partition>; mount-point = "/lfs1"; }; }; }; &mt25ql512a...
/content/code_sandbox/samples/subsys/fs/littlefs/boards/stm32h750b_dk.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
146
```unknown # # # CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192 ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/b_u585i_iot02a.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
16
```unknown /* * */ /delete-node/ &storage_partition; &w25q16jv { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; littlefs_dev: partition@0 { label = "storage"; reg = <0x00000000 0x00010000>; }; }; }; ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/circuitdojo_feather_nrf9160.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
88
```unknown # # # CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192 # Littlefs configuration to utilize QSPI operation CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192 CONFIG_NOCACHE_MEMORY=y ```
/content/code_sandbox/samples/subsys/fs/littlefs/boards/nucleo_h743zi_qspi.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
46
```unknown /* * */ / { ramdisk0 { compatible = "zephyr,ram-disk"; disk-name = "RAM"; sector-size = <512>; sector-count = <128>; }; }; ```
/content/code_sandbox/samples/subsys/fs/format/ramdisk.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
51
```unknown /* * */ / { fstab { compatible = "zephyr,fstab"; lfs1: lfs1 { compatible = "zephyr,fstab,littlefs"; read-size = <1>; prog-size = <16>; cache-size = <256>; lookahead-size = <32>; block-cycles = <512>; partition = <&lfs1_partition>; mount-point = "/lfs1"; }; }; }; &flash0 { ...
/content/code_sandbox/samples/subsys/fs/littlefs/boards/nucleo_h7a3zi_q.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
197
```unknown CONFIG_DISK_ACCESS=y CONFIG_DISK_DRIVERS=y CONFIG_LOG=y CONFIG_LOG_MODE_MINIMAL=y CONFIG_FILE_SYSTEM=y CONFIG_FILE_SYSTEM_MKFS=y CONFIG_FAT_FILESYSTEM_ELM=y ```
/content/code_sandbox/samples/subsys/fs/format/prj_ram.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
45
```unknown CONFIG_LOG=y CONFIG_LOG_MODE_MINIMAL=y CONFIG_FLASH=y CONFIG_FLASH_MAP=y CONFIG_FILE_SYSTEM=y CONFIG_FILE_SYSTEM_MKFS=y CONFIG_FILE_SYSTEM_LITTLEFS=y ```
/content/code_sandbox/samples/subsys/fs/format/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
42
```yaml sample: name: format filesystem sample tests: sample.filesystem.format.littlefs: platform_allow: - native_posix - native_sim - nrf52dk/nrf52832 build_only: true tags: filesystem sample.filesystem.format.fat_fs: platform_allow: - native_posix - native_sim ...
/content/code_sandbox/samples/subsys/fs/format/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
130
```restructuredtext .. zephyr:code-sample:: fs-format :name: Format filesystem :relevant-api: file_system_api Format different storage devices for different file systems. Overview *********** This sample shows how to format different storage devices for different file systems. There are 2 scenarios prepared...
/content/code_sandbox/samples/subsys/fs/format/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
410
```restructuredtext .. _llext-samples: Linkable Loadable Extension Samples ################################### .. toctree:: :maxdepth: 1 :glob: **/* ```
/content/code_sandbox/samples/subsys/llext/llext.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
37
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/fs/fs.h> #include <zephyr/logging/log.h> #if defined(CONFIG_FILE_SYSTEM_LITTLEFS) && defined(CONFIG_FAT_FILESYSTEM_ELM) #error "Only one file system may be used at once in that sample." #endif #if defined(CONFIG_FILE_SYSTEM_LITTLE...
/content/code_sandbox/samples/subsys/fs/format/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
270
```unknown CONFIG_LOG=y CONFIG_LOG_MODE_IMMEDIATE=y CONFIG_SHELL=y CONFIG_SHELL_CMD_BUFF_SIZE=8192 CONFIG_SHELL_LOG_LEVEL_INF=y CONFIG_SHELL_STACK_SIZE=4096 CONFIG_LLEXT=y CONFIG_LLEXT_LOG_LEVEL_DBG=y CONFIG_LLEXT_HEAP_SIZE=8 CONFIG_LLEXT_SHELL=y ```
/content/code_sandbox/samples/subsys/llext/shell_loader/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
76
```yaml common: tags: shell llext arch_allow: - arm - xtensa filter: not CONFIG_MPU and not CONFIG_MMU and not CONFIG_SOC_SERIES_S32ZE platform_exclude: # platforms with active issues - apollo4p_evb # See #73443 - apollo4p_blue_kxr_evb # See #73443 - numaker_pfm_m487 ...
/content/code_sandbox/samples/subsys/llext/shell_loader/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
302
```c /* * */ #define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(app); int main(void) { return 0; } ```
/content/code_sandbox/samples/subsys/llext/shell_loader/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
36
```restructuredtext .. zephyr:code-sample:: llext-shell-loader :name: Linkable loadable extensions shell module :relevant-api: llext_apis Manage loadable extensions using shell commands. Overview ******** This example provides shell access to the :ref:`llext` system and provides the ability to manage loadab...
/content/code_sandbox/samples/subsys/llext/shell_loader/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,892
```restructuredtext .. zephyr:code-sample:: llext-edk :name: Linkable loadable extensions EDK :relevant-api: llext_apis Enable linkable loadable extension development outside the Zephyr tree using LLEXT EDK (Extension Development Kit). Overview ******** This sample demonstrates how to use the Zephyr LL...
/content/code_sandbox/samples/subsys/llext/edk/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,249
```cmake set(CMAKE_C_COMPILER arm-zephyr-eabi-gcc) set(CMAKE_FIND_ROOT_PATH $ENV{ZEPHYR_SDK_INSTALL_DIR}/arm-zephyr-eabi) ```
/content/code_sandbox/samples/subsys/llext/edk/k-ext1/toolchain.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
41
```cmake set(CMAKE_C_COMPILER arm-zephyr-eabi-gcc) set(CMAKE_FIND_ROOT_PATH $ENV{ZEPHYR_SDK_INSTALL_DIR}/arm-zephyr-eabi) ```
/content/code_sandbox/samples/subsys/llext/edk/ext2/toolchain.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
41
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/llext/symbol.h> #include <app_api.h> int start(void) { int i; for (i = 0; i < 5; i++) { struct channel_tick_data ctd = { .l = i }; printk("[ext2]Publishing tick\n"); publish(CHAN_TICK, &ctd, sizeof(ctd)); k_sleep(K_SECONDS(1)); } return 0; } L...
/content/code_sandbox/samples/subsys/llext/edk/ext2/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
113
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/llext/symbol.h> #include <app_api.h> #define STACKSIZE 512 #define PRIORITY 2 static struct k_sem *my_sem; static void tick_sub(void *p1, void *p2, void *p3) { struct k_event *tick_evt = k_object_alloc(K_OBJ_EVENT); k_event_init(tick_evt); register_su...
/content/code_sandbox/samples/subsys/llext/edk/k-ext1/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
383
```unknown CONFIG_APPLICATION_DEFINED_SYSCALL=y CONFIG_USERSPACE=y CONFIG_LLEXT=y CONFIG_MAIN_STACK_SIZE=4096 CONFIG_DYNAMIC_OBJECTS=y CONFIG_DYNAMIC_THREAD=y CONFIG_DYNAMIC_THREAD_ALLOC=y CONFIG_DYNAMIC_THREAD_PREFER_ALLOC=y CONFIG_ZBUS=y CONFIG_ZBUS_CHANNEL_NAME=y CONFIG_LLEXT_HEAP_SIZE=32 # Uncomment to disable ...
/content/code_sandbox/samples/subsys/llext/edk/app/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
97
```yaml common: tags: llext edk arch_allow: - arm filter: CONFIG_ARCH_HAS_USERSPACE sample: description: EDK sample application name: EDK sample application tests: sample.edk.app: build_only: true tags: edk llext ```
/content/code_sandbox/samples/subsys/llext/edk/app/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
68
```c /* * */ #include <app_api.h> #include <zephyr/kernel.h> #include <zephyr/internal/syscall_handler.h> #include <zephyr/zbus/zbus.h> #include <zephyr/llext/symbol.h> #include <string.h> #define MAX_SUBSCRIBERS 64 #define SUBSCRIBER_THREAD_STACK_SIZE 1024 #define SUBSCRIBER_THREAD_PRIORITY K_PRIO_PREEMPT(1) ZB...
/content/code_sandbox/samples/subsys/llext/edk/app/src/pubsub.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,343
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/app_memory/mem_domain.h> #include <zephyr/llext/llext.h> #include <zephyr/llext/buf_loader.h> #include <app_api.h> #include <string.h> /** * Assume that if the extension 1 is not built, we are building the * EDK. If others are not built, this will just fa...
/content/code_sandbox/samples/subsys/llext/edk/app/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,380
```objective-c /* * */ #ifndef _TEST_EDK_H_ #define _TEST_EDK_H_ #include <zephyr/kernel.h> #include <zephyr/toolchain.h> #include <stddef.h> #ifdef __cplusplus extern "C" { #endif enum Channels { CHAN_TICK = 1, CHAN_LAST }; struct channel_tick_data { unsigned long l; }; __syscall int publish(enum Ch...
/content/code_sandbox/samples/subsys/llext/edk/app/include/app_api.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
164
```cmake set(CMAKE_C_COMPILER arm-zephyr-eabi-gcc) set(CMAKE_FIND_ROOT_PATH $ENV{ZEPHYR_SDK_INSTALL_DIR}/arm-zephyr-eabi) ```
/content/code_sandbox/samples/subsys/llext/edk/ext1/toolchain.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
41
```cmake set(CMAKE_C_COMPILER arm-zephyr-eabi-gcc) set(CMAKE_FIND_ROOT_PATH $ENV{ZEPHYR_SDK_INSTALL_DIR}/arm-zephyr-eabi) ```
/content/code_sandbox/samples/subsys/llext/edk/ext3/toolchain.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
41
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/llext/symbol.h> #include <app_api.h> int start(void) { /* Inside extensions, all kobjects need to be dynamically allocated */ struct k_event *tick_evt = k_object_alloc(K_OBJ_EVENT); k_event_init(tick_evt); register_subscriber(CHAN_TICK, tick_evt); wh...
/content/code_sandbox/samples/subsys/llext/edk/ext1/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
170
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/llext/symbol.h> #include <app_api.h> #define STACKSIZE 512 #define PRIORITY 2 static struct k_sem *my_sem; static void tick_sub(void *p1, void *p2, void *p3) { struct k_event *tick_evt = k_object_alloc(K_OBJ_EVENT); k_event_init(tick_evt); register_su...
/content/code_sandbox/samples/subsys/llext/edk/ext3/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
398
```unknown mainmenu "LLEXT functionality test" source "Kconfig.zephyr" config HELLO_WORLD_MODE tristate "Include the hello_world function" default m help This enables building the hello_world function, implemented in hello_world_ext.c, either as an llext module or as a built-in part of Zephyr. If you...
/content/code_sandbox/samples/subsys/llext/modules/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
123
```restructuredtext .. zephyr:code-sample:: llext-modules :name: Linkable loadable extensions "module" sample :relevant-api: llext_apis Call a function in a loadable extension module, either built-in or loaded at runtime. Overview ******** This sample demonstrates the use of the :ref:`llext` subsystem ...
/content/code_sandbox/samples/subsys/llext/modules/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
598
```unknown CONFIG_LOG=y CONFIG_LOG_MODE_IMMEDIATE=y CONFIG_MODULES=y # LLEXT is only required when loading the extension at runtime. Since in this # basic example there's only one llext, leaving it in when building the # extension as a built-in is redundant; in a real application, however, there # could be other uses...
/content/code_sandbox/samples/subsys/llext/modules/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
155
```c /* * */ #define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(app); #include <zephyr/llext/llext.h> #include <zephyr/llext/buf_loader.h> static uint8_t llext_buf[] = { #include "hello_world_ext.inc" }; int main(void) { LOG_INF("Calling hello world as a module"); si...
/content/code_sandbox/samples/subsys/llext/modules/src/main_module.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
271
```yaml common: tags: llext arch_allow: - arm - xtensa platform_exclude: # platforms with active issues - apollo4p_evb # See #73443 - apollo4p_blue_kxr_evb # See #73443 - numaker_pfm_m487 # See #63167 - s32z2xxdc2/s32z270/rtu0 # See commit 18a0660 - s32z2xxdc2/s...
/content/code_sandbox/samples/subsys/llext/modules/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
472
```c /* * */ #define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(app); extern void hello_world(void); int main(void) { LOG_INF("Calling hello world as a builtin"); hello_world(); return 0; } ```
/content/code_sandbox/samples/subsys/llext/modules/src/main_builtin.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
56
```unknown /* * */ / { dp0 { compatible = "zephyr,swdp-gpio"; status = "okay"; clk-gpios = <&arduino_header 10 GPIO_ACTIVE_HIGH>; /* D4 */ noe-gpios = <&arduino_header 9 GPIO_ACTIVE_HIGH>; /* D3 */ dio-gpios = <&arduino_header 8 GPIO_PULL_UP>; /* D2 */ port-write-cycles = <2>; }; }; ```
/content/code_sandbox/samples/subsys/dap/app.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
105
```c /* * */ /* * This very simple hello world C code can be used as a test case for building * probably the simplest loadable extension. It requires a single symbol be * linked, section relocation support, and the ability to export and call out to * a function. */ #include <zephyr/llext/symbol.h> #include <ze...
/content/code_sandbox/samples/subsys/llext/modules/src/hello_world_ext.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
163
```unknown CONFIG_STDOUT_CONSOLE=y CONFIG_USB_DEVICE_STACK=y CONFIG_USB_DEVICE_BOS=y CONFIG_SERIAL=y CONFIG_USB_DEVICE_PRODUCT="Zephyr CMSIS-DAP" CONFIG_USB_DEVICE_PID=0x0204 CONFIG_UART_INTERRUPT_DRIVEN=y CONFIG_UART_LINE_CTRL=y CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n CONFIG_LOG=y CONFIG_USB_DRIVER_LOG_LEVEL_INF=y CO...
/content/code_sandbox/samples/subsys/dap/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
119
```yaml sample: name: DAP USB tests: sample.dap.bulk: build_only: true depends_on: arduino_gpio usb_device platform_allow: - nrf52840dk/nrf52840 - frdm_k64f tags: dap sample.dap.bulk.nrf: build_only: true depends_on: gpio usb_device platform_allow: - nrf52840dk/nrf528...
/content/code_sandbox/samples/subsys/dap/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
106
```restructuredtext .. _dap-sample: DAP Sample Application ###################### Overview ******** This sample app demonstrates use of a SWDP interface driver and CMSIS DAP controller through USB Bulk interface. Requirements ************ This sample supports multiple hardware configurations: The simplest configu...
/content/code_sandbox/samples/subsys/dap/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
613
```unknown /* * */ / { dp0 { compatible = "zephyr,swdp-gpio"; status = "okay"; clk-gpios = <&arduino_header 10 GPIO_ACTIVE_HIGH>; /* D4 */ dio-gpios = <&arduino_header 8 GPIO_PULL_UP>; /* D2 */ dout-gpios = <&arduino_header 9 GPIO_ACTIVE_HIGH>; /* D3 */ dnoe-gpios = <&arduino_header 12 GPIO_ACTIVE_HIGH...
/content/code_sandbox/samples/subsys/dap/boards/nrf52840dk_nrf52840.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
168
```restructuredtext .. _lorawan-samples: LoRaWAN Samples ############### .. toctree:: :maxdepth: 1 :glob: **/* ```
/content/code_sandbox/samples/subsys/lorawan/lorawan.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
36
```unknown # Sysbuild configuration file. # Enable MCUboot per default for this sample. SB_CONFIG_BOOTLOADER_MCUBOOT=y ```
/content/code_sandbox/samples/subsys/lorawan/fuota/sysbuild.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
27
```restructuredtext .. zephyr:code-sample:: lorawan-fuota :name: LoRaWAN FUOTA :relevant-api: lorawan_api Perform a LoRaWAN firmware-upgrade over the air (FUOTA) operation. Overview ******** An application to demonstrate firmware-upgrade over the air (FUOTA) over LoRaWAN. The following services specified b...
/content/code_sandbox/samples/subsys/lorawan/fuota/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
372
```unknown # General Zephyr settings CONFIG_MAIN_STACK_SIZE=2048 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 CONFIG_THREAD_NAME=y CONFIG_LOG=y # LoRa PHY and required peripherals CONFIG_LORA=y CONFIG_SPI=y CONFIG_GPIO=y # NVS required to store LoRaWAN DevNonce CONFIG_NVS=y CONFIG_SETTINGS=y # Random number generator req...
/content/code_sandbox/samples/subsys/lorawan/fuota/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
231
```yaml sample: description: Demonstration of LoRaWAN Firmware Upgrade Over The Air name: LoRaWAN FUOTA common: depends_on: lora tags: lorawan filter: dt_label_with_parent_compat_enabled("slot0_partition", "fixed-partitions") and dt_label_with_parent_compat_enabled("slot1_partition", "fixed-partitions") ...
/content/code_sandbox/samples/subsys/lorawan/fuota/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
193
```c /* * LoRaWAN FUOTA sample application * * */ #include <zephyr/device.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/lorawan/lorawan.h> LOG_MODULE_REGISTER(lorawan_fuota, CONFIG_LORAWAN_SERVICES_LOG_LEVEL); /* Customize based on device configuration */ #define LORAWAN_DEV_EUI ...
/content/code_sandbox/samples/subsys/lorawan/fuota/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,086
```unknown # use fixed frag size (min and max 232 bytes) to avoid RAM overflow CONFIG_LORAWAN_FRAG_TRANSPORT_MIN_FRAG_SIZE=232 # alternatively, the redundancy could be reduced # CONFIG_LORAWAN_FRAG_TRANSPORT_MAX_REDUNDANCY=7 ```
/content/code_sandbox/samples/subsys/lorawan/fuota/boards/nucleo_wl55jc.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
62
```unknown # Kconfig changes when building sample with MCUboot using sysbuild. CONFIG_MCUBOOT_LOG_LEVEL_INF=y CONFIG_MCUBOOT_IMG_MANAGER=y ```
/content/code_sandbox/samples/subsys/lorawan/fuota/sysbuild/mcuboot.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
32
```restructuredtext .. zephyr:code-sample:: lorawan-class-a :name: LoRaWAN class A device :relevant-api: lorawan_api Join a LoRaWAN network and send a message periodically. Overview ******** A simple application to demonstrate the :ref:`LoRaWAN subsystem <lorawan_api>` of Zephyr. Building and Running *****...
/content/code_sandbox/samples/subsys/lorawan/class_a/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
189
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/sys/byteorder.h> #include <zephyr/usb/usb_device.h> #include <zephyr/usb/bos.h> #include <zephyr/usb/msos_desc.h> #include <zephyr/net/buf.h> #include <usb_descriptor.h> #include <cmsis_dap.h> #include <zephyr/logging/log.h> LOG_MO...
/content/code_sandbox/samples/subsys/dap/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,338