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
```yaml sample: name: STM32 I2C V2 timing tests: sample.boards.stm32.i2c_timing: depends_on: i2c tags: - drivers - i2c filter: dt_compat_enabled("st,stm32-i2c-v2") platform_allow: nucleo_l476rg nucleo_wb55rg harness: console harness_config: type: one_line regex: ...
/content/code_sandbox/samples/boards/stm32/i2c_timing/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
116
```c /* * */ #include <zephyr/drivers/i2c.h> #include <zephyr/kernel.h> #if DT_NODE_HAS_STATUS(DT_ALIAS(i2c_0), okay) #define I2C_DEV_NODE DT_ALIAS(i2c_0) #else #error "Please set the correct I2C device" #endif int main(void) { const struct device *const i2c_dev = DEVICE_DT_GET(I2C_DEV_NODE); uint32_t i2c_cfg...
/content/code_sandbox/samples/boards/stm32/i2c_timing/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
383
```unknown / { aliases { i2c-0 = &i2c1; }; }; &i2c1 { /delete-property/ clock-frequency; clock-frequency = <I2C_BITRATE_FAST>; }; ```
/content/code_sandbox/samples/boards/stm32/i2c_timing/boards/nucleo_l476rg.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
47
```unknown / { aliases { i2c-0 = &i2c1; }; }; &i2c1 { /delete-property/ clock-frequency; clock-frequency = <I2C_BITRATE_FAST>; }; ```
/content/code_sandbox/samples/boards/stm32/i2c_timing/boards/nucleo_wb55rg.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
47
```restructuredtext .. zephyr:code-sample:: stm32_i2c_v2_timings :name: STM32 I2C V2 timings :relevant-api: i2c_interface Overview ******** This sample simply demonstrate the **get_config** API of the stm32 I2C driver. The I2C peripheral configuration is checked regarding the I2C bitrate which can be: - <I2C_B...
/content/code_sandbox/samples/boards/stm32/i2c_timing/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
646
```unknown # Nothing needed here ```
/content/code_sandbox/samples/boards/stm32/uart/single_wire/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6
```yaml sample: name: STM32 Single Wire UART sample tests: sample.boards.stm32.uart.single_wire: platform_allow: stm32f3_disco tags: - drivers - uart harness: console harness_config: fixture: single_line_uart_loopback type: one_line regex: - "Received c" ```
/content/code_sandbox/samples/boards/stm32/uart/single_wire/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
82
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/uart.h> #define UART_NODE1 DT_ALIAS(single_line_uart1) #define UART_NODE2 DT_ALIAS(single_line_uart2) const struct device *const sl_uart1 = DEVICE_DT_GET(UART_NODE1); const struct device *cons...
/content/code_sandbox/samples/boards/stm32/uart/single_wire/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
254
```restructuredtext .. zephyr:code-sample:: uart-stm32-single-wire :name: STM32 single-wire UART :relevant-api: uart_interface Use single-wire/half-duplex UART functionality of STM32 devices. Overview ******** A simple application demonstrating how to use the single wire / half-duplex UART functionality of ...
/content/code_sandbox/samples/boards/stm32/uart/single_wire/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
255
```unknown /* * */ / { aliases { single-line-uart1 = &usart2; single-line-uart2 = &uart4; }; }; &usart2 { pinctrl-0 = <&usart2_tx_pa2>; single-wire; }; &uart4 { pinctrl-0 = <&uart4_tx_pc10>; single-wire; }; ```
/content/code_sandbox/samples/boards/stm32/uart/single_wire/boards/stm32f3_disco.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
87
```unknown CONFIG_BOOT_BANNER=y CONFIG_CONSOLE=y CONFIG_CONSOLE_INPUT_MAX_LINE_LEN=128 CONFIG_CONSOLE_HANDLER=y CONFIG_UART_CONSOLE=y CONFIG_SERIAL=y CONFIG_UART_STM32=y CONFIG_PRINTK=y CONFIG_STDOUT_CONSOLE=y CONFIG_EARLY_CONSOLE=y CONFIG_LOG=y ```
/content/code_sandbox/samples/boards/stm32/ccm/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
63
```yaml sample: name: CCM usages example tests: sample.board.stm32.ccm: platform_allow: olimex_stm32_e407 tags: board ```
/content/code_sandbox/samples/boards/stm32/ccm/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
41
```restructuredtext .. _samples_boards_stm32_ccm: STM32 CCM example ################# Overview ******** Show usage of the Core Coupled Memory (CCM) that is available on several STM32 devices. The very important difference with normal RAM is that CCM can not be used for DMA. By prefixing a variable with __ccm_data_s...
/content/code_sandbox/samples/boards/stm32/ccm/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,711
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/device.h> #include <stdio.h> #include <string.h> #include <zephyr/linker/linker-defs.h> #define CCM_DATA_VAR_8_VAL 0x12 #define CCM_DATA_VAR_16_VAL 0x3456 #define CCM_DATA_VAR_32_VAL 0x789ABCDE #define CCM_DATA_ARRAY_SIZE 5 #define CCM_BSS_ARRAY_SIZE 7 #def...
/content/code_sandbox/samples/boards/stm32/ccm/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,420
```unknown CONFIG_STM32_BACKUP_SRAM=y ```
/content/code_sandbox/samples/boards/stm32/backup_sram/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
11
```restructuredtext .. _stm32_backup_sram: STM32 Backup SRAM ################# Overview ******** Multiple STM32 microcontrollers have a small backup SRAM that can be used as a NVM when VBAT pin is supplied with a voltage source, e.g. a coin button cell. This example shows how to define a variable on the Backup SRAM...
/content/code_sandbox/samples/boards/stm32/backup_sram/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
272
```yaml sample: description: Usage of backup SRAM on STM32 name: stm32_backup_sram tests: sample.boards.stm32.backup_sram: depends_on: backup_sram build_only: true filter: dt_compat_enabled("st,stm32-backup-sram") ```
/content/code_sandbox/samples/boards/stm32/backup_sram/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
67
```unknown /* * */ &backup_sram{ status = "okay"; }; ```
/content/code_sandbox/samples/boards/stm32/backup_sram/boards/b_u585i_iot02a.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
15
```unknown /* * */ &backup_sram{ status = "okay"; }; ```
/content/code_sandbox/samples/boards/stm32/backup_sram/boards/nucleo_u575zi_q.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
15
```unknown /* * */ &backup_sram{ status = "okay"; }; ```
/content/code_sandbox/samples/boards/stm32/backup_sram/boards/nucleo_h563zi.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
15
```c /* * */ #include <zephyr/device.h> #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #if DT_HAS_COMPAT_STATUS_OKAY(st_stm32_backup_sram) #define BACKUP_DEV_COMPAT st_stm32_backup_sram #endif /** Value stored in backup SRAM. */ __stm32_backup_sram_section uint32_t backup_value; int main(void) { const...
/content/code_sandbox/samples/boards/stm32/backup_sram/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
221
```restructuredtext .. _stm32_h7_dual_core: STM32 HSEM IPM driver sample ############################ Overview ******** Blinky led triggered by mailbox new message. Building and Running ******************** Build for stm32h747i_disco/stm32h747xx/m7: .. zephyr-app-commands:: :zephyr-app: samples/boards/stm32/h7_...
/content/code_sandbox/samples/boards/stm32/h7_dual_core/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
200
```yaml sample: description: Usage of stm32 hsem ipm driver name: stm32_h7_dual_core tests: sample.boards.stm32.h7_dual_core: depends_on: mailbox build_only: true filter: dt_compat_enabled("st,stm32-hsem-mailbox") ```
/content/code_sandbox/samples/boards/stm32/h7_dual_core/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
68
```unknown CONFIG_GPIO=y CONFIG_IPM=y ```
/content/code_sandbox/samples/boards/stm32/h7_dual_core/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
10
```unknown &mailbox { status = "okay"; }; ```
/content/code_sandbox/samples/boards/stm32/h7_dual_core/boards/stm32h747i_disco_stm32h747xx_m7.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
10
```unknown &mailbox { status = "okay"; }; ```
/content/code_sandbox/samples/boards/stm32/h7_dual_core/boards/stm32h747i_disco_stm32h747xx_m4.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
10
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/drivers/ipm.h> #include <zephyr/drivers/gpio.h> #include <zephyr/sys/printk.h> #define SLEEP_TIME_MS 1000 struct ipm_data { const struct gpio_dt_spec *led; bool led_is_on; }; static struct ipm_data data; static const struct g...
/content/code_sandbox/samples/boards/stm32/h7_dual_core/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
381
```unknown CONFIG_CONSOLE=n CONFIG_STDOUT_CONSOLE=n CONFIG_UART_CONSOLE=n CONFIG_SERIAL=y CONFIG_UART_INTERRUPT_DRIVEN=y CONFIG_BT=y CONFIG_BT_HCI_RAW=y CONFIG_BT_HCI_RAW_H4=y CONFIG_BT_HCI_RAW_H4_ENABLE=y CONFIG_BT_BUF_ACL_RX_SIZE=255 CONFIG_BT_BUF_CMD_TX_SIZE=255 CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=255 CONFIG_BT_BLUEN...
/content/code_sandbox/samples/boards/stm32/bluetooth/interactive_gui/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
114
```restructuredtext .. _samples_boards_stm32_bluetooth_interactive-gui: .. zephyr:code-sample:: st_bluetooth_interactive_gui :name: Bluetooth: ST Interactive GUI :relevant-api: bluenrg_hci_driver bluetooth Expose ST BlueNRG Bluetooth network coprocessor over UART Overview ********* Expose the Bluetooth network...
/content/code_sandbox/samples/boards/stm32/bluetooth/interactive_gui/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
274
```yaml sample: name: Bluetooth ST Interactive GUI description: Allows BlueNRG-based boards to connect to BlueNRG GUI application via UART tests: sample.boards.stm32.bluetooth.interactive_gui: harness: bluetooth platform_allow: - sensortile_box_pro - disco_l475_iot1 tags: - uart ...
/content/code_sandbox/samples/boards/stm32/bluetooth/interactive_gui/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
82
```restructuredtext .. _mesh_badge: Mesh Badge ########## Overview ******** This sample app for the reel board showcases Bluetooth Mesh The app starts off as a regular Bluetooth GATT peripheral application. Install the "nRF Connect" app on your phone (available both for Android and iOS) to access the service that t...
/content/code_sandbox/samples/boards/reel_board/mesh_badge/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
476
```unknown CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096 CONFIG_BT_RX_STACK_SIZE=4096 CONFIG_BT=y CONFIG_BT_CTLR=y CONFIG_BT_DEVICE_NAME_DYNAMIC=y CONFIG_BT_DEVICE_NAME_GATT_WRITABLE=y CONFIG_BT_SMP=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_PRIVACY=y CONFIG_BT_DEVICE_NAME="reel board" CONFIG_BT_DEVICE_NAME_MAX=32 CONFIG_LOG=y CO...
/content/code_sandbox/samples/boards/reel_board/mesh_badge/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
412
```yaml sample: description: reel board mesh badge sample name: mesh badge tests: sample.board.reel_board.mesh_badge: platform_allow: reel_board tags: - samples - sensor harness: sensor ```
/content/code_sandbox/samples/boards/reel_board/mesh_badge/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
53
```objective-c /* * */ #define STATE_OFF 0x00 #define STATE_ON 0x01 #define STATE_DEFAULT 0x01 #define STATE_RESTORE 0x02 /* Model Operation Codes */ #define BT_MESH_MODEL_OP_GEN_ONOFF_GET BT_MESH_MODEL_OP_2(0x82, 0x01) #define BT_MESH_MODEL_OP_GEN_ONOFF_SET BT_MESH_MODEL_OP_2(0x82, 0x02) #define BT_MESH_MODEL_OP...
/content/code_sandbox/samples/boards/reel_board/mesh_badge/src/mesh.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
373
```c /* * */ #include <errno.h> #include <stddef.h> #include <stdio.h> #include <string.h> #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <zephyr/sys/byteorder.h> #include <zephyr/logging/log.h> #include <zephyr/sys/util.h> #include <zephyr/device.h> #include <zephyr/init.h> #include <zephyr/drive...
/content/code_sandbox/samples/boards/stm32/bluetooth/interactive_gui/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,269
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/sensor.h> #include "board.h" #include "mesh.h" #include <zephyr/bluetooth/mesh.h> static const struct device *const dev_info[] = { DEVICE_DT_GET_ONE(ti_hdc1010), DEVICE_DT_GET_ONE(nxp_mma8652fc), DEVICE_DT_GET_ONE(...
/content/code_sandbox/samples/boards/reel_board/mesh_badge/src/periphs.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
886
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/gpio.h> #include <zephyr/display/cfb.h> #include <zephyr/sys/printk.h> #include <zephyr/drivers/flash.h> #include <zephyr/storage/flash_map.h> #include <zephyr/drivers/sensor.h> #include <strin...
/content/code_sandbox/samples/boards/reel_board/mesh_badge/src/reel_board.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,696
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include <string.h> #include <zephyr/settings/settings.h> #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/gatt.h> #include <zephyr/drivers/sensor.h> #include <zephyr/bluetooth/hci.h> #include "mesh.h" #include "board.h" st...
/content/code_sandbox/samples/boards/reel_board/mesh_badge/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,369
```objective-c /* * */ enum periph_device { DEV_IDX_HDC1010 = 0, DEV_IDX_MMA8652, DEV_IDX_APDS9960, DEV_IDX_EPD, DEV_IDX_NUMOF, }; void board_refresh_display(void); void board_show_text(const char *text, bool center, k_timeout_t duration); void board_blink_leds(void); void board_add_hello(uint16_t addr, const ...
/content/code_sandbox/samples/boards/reel_board/mesh_badge/src/board.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
172
```restructuredtext .. _ArgonKey_Sensors: ArgonKey Board Sensors ###################### Overview ******** This sample provides an example of how to read sensor data from the ArgonKey board. The result is displayed on the console. It makes use of both the trigger and poll methods. Requirements ************ This samp...
/content/code_sandbox/samples/boards/96b_argonkey/sensors/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
715
```unknown CONFIG_LOG=y CONFIG_PRINTK=y CONFIG_SPI=y CONFIG_I2C=y CONFIG_LED=y CONFIG_GPIO=y CONFIG_SENSOR=y CONFIG_SENSOR_LOG_LEVEL_DBG=y CONFIG_CBPRINTF_FP_SUPPORT=y ```
/content/code_sandbox/samples/boards/96b_argonkey/sensors/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
46
```yaml sample: description: ArgonKey sensor testing name: ArgonKey test tests: sample.board.96b_argonkey.sensors: harness: sensor platform_allow: 96b_argonkey tags: sensors depends_on: - i2c - spi - gpio ```
/content/code_sandbox/samples/boards/96b_argonkey/sensors/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
73
```c /* * */ #include <zephyr/kernel.h> #include <string.h> #include <zephyr/sys/printk.h> #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/mesh.h> #include <zephyr/bluetooth/hci.h> #include <zephyr/drivers/sensor.h> #include "mesh.h" #include "board.h" #define MOD_LF 0x0000 #define ...
/content/code_sandbox/samples/boards/reel_board/mesh_badge/src/mesh.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,633
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/led.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/spi.h> #include <zephyr/drivers/sensor.h> #include <stdio.h> /* #define ARGONKEY_TEST_LOG 1 */ #define WHOAMI_REG 0...
/content/code_sandbox/samples/boards/96b_argonkey/sensors/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,072
```unknown CONFIG_PRINTK=y CONFIG_I2C=y CONFIG_I2S=y CONFIG_GPIO=y CONFIG_LED=y CONFIG_AUDIO=y CONFIG_AUDIO_DMIC=y # When on-board microphone is used the DMA must run w/o things # that could slow it down. So DMA logging must be completely # disabled and DMA interrupts must run at maximum priority. CONFIG_DMA=y CONFIG...
/content/code_sandbox/samples/boards/96b_argonkey/microphone/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
89
```yaml sample: description: ArgonKey sensor testing name: ArgonKey test tests: sample.board.96b_argonkey.microphone: harness: sensor platform_allow: 96b_argonkey tags: sensors depends_on: - i2s - gpio ```
/content/code_sandbox/samples/boards/96b_argonkey/microphone/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
69
```restructuredtext .. _ArgonKey_Microphone: ArgonKey Board Microphone ######################### Overview ******** This sample provides an example of how to acquire audio through the on-board MP34DT05 microphone. The microphone generates a PDM stream which is acquired through I2S. The PDM stream is then converted to ...
/content/code_sandbox/samples/boards/96b_argonkey/microphone/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,078
```restructuredtext .. _google_kukui: Kukui general features ###################### Overview ******** This provides access to :ref:`Kukui <google_kukui_board>` through a serial shell so you can try out the supported features, including I2C, GPIO and flash access. Building ******** The sample can be built as follow...
/content/code_sandbox/samples/boards/google_kukui/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
229
```unknown # Enable all useful shell commands (i.e. those with driver support) CONFIG_SHELL=y CONFIG_SHELL_BACKENDS=y CONFIG_SHELL_BACKEND_SERIAL=y CONFIG_GPIO_SHELL=y CONFIG_I2C_SHELL=y ```
/content/code_sandbox/samples/boards/google_kukui/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
49
```yaml sample: name: Kukui general features tests: sample.board.google_kukui: platform_allow: google_kukui tags: ec ```
/content/code_sandbox/samples/boards/google_kukui/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
36
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> int main(void) { printk("Welcome to Google Kukui\n"); return 0; } ```
/content/code_sandbox/samples/boards/google_kukui/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
42
```unknown / { sram3: memory@be1e0000 { device_type = "memory"; compatible = "mmio-sram"; reg = <0xbe1e0000 DT_SIZE_K(64)>; }; }; ```
/content/code_sandbox/samples/boards/intel_adsp/code_relocation/app.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
52
```restructuredtext .. _intel_adsp_code_relocation: Intel ADSP CAVS Code relocation ############################### Overview ******** A simple sample that shows code relocation working for Intel ADSP CAVS boards (v18 and v25). The interesting bit is the custom linker file. As rimage (the tool used to sign the image)...
/content/code_sandbox/samples/boards/intel_adsp/code_relocation/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
219
```unknown CONFIG_CODE_DATA_RELOCATION=y CONFIG_HAVE_CUSTOM_LINKER_SCRIPT=y CONFIG_CUSTOM_LINKER_SCRIPT="linker_xtensa_intel_adsp_cavs.ld" ```
/content/code_sandbox/samples/boards/intel_adsp/code_relocation/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
34
```yaml sample: description: Code relocation sample for Intel ADSP Cavs. name: cavs_code_reloc tests: sample.intel_adsp.code_relocation: platform_allow: intel_adsp/cavs25 tags: linker ```
/content/code_sandbox/samples/boards/intel_adsp/code_relocation/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
52
```c /* * */ #include <string.h> #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/led.h> #include <zephyr/audio/dmic.h> /* uncomment if you want PCM output in ascii */ /*#define PCM_OUTPUT_IN_ASCII 1 */ #define AUDIO_FREQ 16000 #define CHAN_SI...
/content/code_sandbox/samples/boards/96b_argonkey/microphone/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,159
```c /* * */ #include <zephyr/kernel.h> extern void reloc(void); int main(void) { printk("%s location: %p\n", __func__, main); printk("Calling relocated code\n"); reloc(); return 0; } ```
/content/code_sandbox/samples/boards/intel_adsp/code_relocation/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
51
```c /* * */ #include <zephyr/kernel.h> static uint32_t maybe_bss; void reloc(void) { printk("Relocated code! %s location %p\n", __func__, reloc); printk("maybe_bss location: %p maybe_bss value: %u\n", &maybe_bss, maybe_bss); } ```
/content/code_sandbox/samples/boards/intel_adsp/code_relocation/src/reloc.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
73
```unknown /* * */ &mru0 { rx-channels = <3>; status = "okay"; }; &enetc_psi0 { mboxes = <&mru0 0>, <&mru0 1>; mbox-names = "rx", "vsi-msg"; vsis = <1>; }; &enetc_vsi1 { local-mac-address = [00 00 00 01 02 11]; mboxes = <&mru0 2>; mbox-names = "rx"; status = "okay"; }; ```
/content/code_sandbox/samples/boards/nxp_s32/netc/vsi-and-psi.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
116
```linker script /* * */ #include <zephyr/linker/sections.h> #include <zephyr/devicetree.h> #include <zephyr/linker/linker-defs.h> #include <zephyr/linker/linker-tool.h> /* Use SRAM2 for TEXT, SRAM3 for DATA and SRAM4 for BSS. * To ensure they are contiguous (and compatible with default SRAM * usage), they are l...
/content/code_sandbox/samples/boards/intel_adsp/code_relocation/linker_xtensa_intel_adsp_cavs.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
777
```unknown # Private config options for NXP S32 NETC sample app mainmenu "NXP S32 NETC sample application" config NET_SAMPLE_IFACE2_MY_IPV6_ADDR string "My IPv6 address for second interface" help The value depends on your network setup. config NET_SAMPLE_IFACE2_MY_IPV4_ADDR string "My IPv4 address for second ...
/content/code_sandbox/samples/boards/nxp_s32/netc/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
141
```unknown CONFIG_NETWORKING=y CONFIG_NET_IPV6=y CONFIG_NET_IPV4=y CONFIG_NET_ARP=y CONFIG_NET_UDP=y CONFIG_NET_TCP=y CONFIG_NET_DHCPV4=n CONFIG_NET_L2_ETHERNET=y CONFIG_NET_L2_ETHERNET_MGMT=y CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=3 CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=3 CONFIG_NET_IF_MAX_IPV6_COUNT=2 CONFIG_NET_IF_MAX_...
/content/code_sandbox/samples/boards/nxp_s32/netc/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
364
```yaml sample: description: Sample for show-casing the different use-cases of NXP S32 NETC driver name: NXP S32 NETC sample common: platform_allow: - s32z2xxdc2/s32z270/rtu0 - s32z2xxdc2@D/s32z270/rtu0 depends_on: netif tags: net tests: sample.boards.nxp_s32.netc.psi: harness: net sample.boar...
/content/code_sandbox/samples/boards/nxp_s32/netc/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
149
```restructuredtext .. _nxp_s32_netc-samples: NXP S32 NETC Sample Application ############################### Overview ******** The sample application shows how to configure NXP S32 Network Controller (NETC) for the different use-cases: 1. Zephyr application controls the Physical Station Interface (PSI) and the ...
/content/code_sandbox/samples/boards/nxp_s32/netc/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,500
```c /* * */ #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(nxp_s32_netc_sample, LOG_LEVEL_DBG); #include <zephyr/kernel.h> #include <zephyr/net/net_core.h> #include <zephyr/net/net_if.h> #include <zephyr/net/net_mgmt.h> #define PSI_NODE DT_COMPAT_GET_ANY_STATUS_OKAY(nxp_s32_netc_psi) #define VSI_NODE DT_COMP...
/content/code_sandbox/samples/boards/nxp_s32/netc/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
921
```unknown mainmenu "Espressif Deep Sleep demo" config EXAMPLE_EXT1_WAKEUP bool "Enable wakeup from GPIO" depends on !SOC_SERIES_ESP32C3 help This option enables wake-up from deep sleep using GPIO2 and GPIO4. The sample enables internal pull-down on EXT1 pins to avoid random wake-ups. Otherwise, external ...
/content/code_sandbox/samples/boards/esp32/deep_sleep/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
192
```unknown CONFIG_POWEROFF=y ```
/content/code_sandbox/samples/boards/esp32/deep_sleep/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
8
```yaml sample: description: Sample application to test ESP32 deep-sleep mode name: ESP32 Deep-sleep tests: sample.board.esp32.deep_sleep: platform_allow: - esp32_devkitc_wroom/esp32/procpu - esp32c3_devkitm tags: esp32 build_only: true ```
/content/code_sandbox/samples/boards/esp32/deep_sleep/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
77
```unknown /* * */ / { aliases { /* On ESP32-C3, only GPIO0~5 can be used * as wake-up sources */ wakeup-button = &sample_button; }; gpio_keys { compatible = "gpio-keys"; sample_button: sample_button { gpios = <&gpio0 0 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>; }; }; }; ```
/content/code_sandbox/samples/boards/esp32/deep_sleep/socs/esp32c3.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
92
```unknown CONFIG_EXAMPLE_GPIO_WAKEUP=y ```
/content/code_sandbox/samples/boards/esp32/deep_sleep/socs/esp32c3.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/drivers/gpio.h> #include <zephyr/sys/poweroff.h> #include <esp_sleep.h> #include <driver/rtc_io.h> #define WAKEUP_TIME_SEC (20) #ifdef CONFIG_EXAMPLE_EXT1_WAKEUP #define EXT_WAKEUP_PIN_1 (2) #define EXT_WAKEUP_PIN_2 (4) #endif #ifdef CONFIG_EXAMPLE_GPIO_WAK...
/content/code_sandbox/samples/boards/esp32/deep_sleep/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
883
```restructuredtext .. _esp32-deep-sleep-sample: ESP32 Deep Sleep demo ##################### Overview ******** The deep sleep mode of the ESP32 Series is a power saving mode that causes the CPU, majority of RAM, and digital peripherals that are clocked from APB_CLK to be powered off. This sample shows how to set a ...
/content/code_sandbox/samples/boards/esp32/deep_sleep/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
663
```unknown # Enables GPIO2 and GPIO4 as wakeup sources CONFIG_EXAMPLE_EXT1_WAKEUP=y ```
/content/code_sandbox/samples/boards/esp32/deep_sleep/boards/esp32s2_saola.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
21
```unknown # Enables GPIO2 and GPIO4 as wakeup sources CONFIG_EXAMPLE_EXT1_WAKEUP=y ```
/content/code_sandbox/samples/boards/esp32/deep_sleep/boards/yd_esp32_procpu.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
21
```unknown # Enables GPIO2 and GPIO4 as wakeup sources CONFIG_EXAMPLE_EXT1_WAKEUP=y ```
/content/code_sandbox/samples/boards/esp32/deep_sleep/boards/esp32c6_devkitc.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
21
```unknown CONFIG_ETH_ESP32=y CONFIG_NETWORKING=y CONFIG_NET_L2_ETHERNET=y CONFIG_NET_IPV6=n CONFIG_NET_IPV4=y CONFIG_NET_DHCPV4=y CONFIG_NET_LOG=y CONFIG_NET_SHELL=y CONFIG_NET_CONFIG_SETTINGS=y CONFIG_DNS_RESOLVER=y CONFIG_DNS_SERVER_IP_ADDRESSES=y CONFIG_DNS_SERVER1="8.8.8.8" ```
/content/code_sandbox/samples/boards/esp32/ethernet/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
91
```unknown # Enables GPIO2 and GPIO4 as wakeup sources CONFIG_EXAMPLE_EXT1_WAKEUP=y ```
/content/code_sandbox/samples/boards/esp32/deep_sleep/boards/esp32_devkitc_wroom_procpu.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
21
```c /* * */ int main(void) { /* NET_CONFIG_SETTINGS will init DHCP * NET_SHELL is enabled to test ping, DNS etc */ return 0; } ```
/content/code_sandbox/samples/boards/esp32/ethernet/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
39
```unknown /* * */ &eth { status = "okay"; }; &phy { status = "okay"; }; &mdio { status = "okay"; }; ```
/content/code_sandbox/samples/boards/esp32/ethernet/boards/esp32_ethernet_kit_procpu.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
32
```yaml sample: description: Sample application to test ESP32 Ethernet name: ESP32 Ethernet tests: sample.board.esp32.ethernet: platform_allow: esp32_ethernet_kit/esp32/procpu tags: esp32 build_only: true ```
/content/code_sandbox/samples/boards/esp32/ethernet/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
59
```unknown CONFIG_LOG=y CONFIG_FLASH=y CONFIG_BOOTLOADER_MCUBOOT=y CONFIG_HEAP_MEM_POOL_SIZE=16384 ```
/content/code_sandbox/samples/boards/esp32/flash_encryption/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
27
```yaml sample: description: Sample application to test ESP32 flash encryption name: flash_encryption tests: sample.board.esp32: platform_allow: - esp32_devkitc_wroom/esp32/procpu - esp32_devkitc_wrover/esp32/procpu - yd_esp32/esp32/procpu tags: esp32 build_only: true ```
/content/code_sandbox/samples/boards/esp32/flash_encryption/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
90
```restructuredtext .. _flash_encryption_test: Espressif ESP32 Flash Encryption Test ##################################### Overview ******** Flash encryption is intended for encrypting the contents of the ESP32's off-chip flash memory. Once this feature is enabled, firmware is flashed as plaintext and then the data ...
/content/code_sandbox/samples/boards/esp32/flash_encryption/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,055
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include <zephyr/device.h> #include <zephyr/drivers/flash.h> #include <zephyr/storage/flash_map.h> #include <esp_flash.h> #include <spi_flash_mmap.h> #include <soc.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(flash_encryption, CONFIG_...
/content/code_sandbox/samples/boards/esp32/flash_encryption/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
382
```unknown /* * */ &flash0 { write-block-size = <32>; }; ```
/content/code_sandbox/samples/boards/esp32/flash_encryption/boards/yd_esp32_procpu.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
16
```restructuredtext .. zephyr:code-sample:: esp32-flash-memory-mapped :name: ESP32 Flash Memory-Mapped :relevant-api: flash_interface Write data into scratch area and read it using flash API and memory-mapped pointer. Overview ******** ESP32 features memory hardware which allows regions of flash memory to b...
/content/code_sandbox/samples/boards/esp32/flash_memory_mapped/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
791
```unknown /* * */ &flash0 { write-block-size = <32>; }; ```
/content/code_sandbox/samples/boards/esp32/flash_encryption/boards/esp32_devkitc_wroom_procpu.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
16
```yaml sample: description: Sample application to test memory-mapped flash region name: flash_memory_mapped tests: sample.board.esp32.flash_memory_mapped: platform_allow: - esp32_devkitc_wroom/esp32/procpu - esp32c3_devkitm - esp32s3_devkitm/esp32s3/procpu harness: console harness_c...
/content/code_sandbox/samples/boards/esp32/flash_memory_mapped/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
110
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include <zephyr/device.h> #include <zephyr/drivers/flash.h> #include <zephyr/storage/flash_map.h> #include <spi_flash_mmap.h> #include <soc.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(flash_memory_mapped, CONFIG_LOG_DEFAULT_LEVEL); ...
/content/code_sandbox/samples/boards/esp32/flash_memory_mapped/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
468
```restructuredtext .. _spiram_test: Espressif ESP32 SPIRAM test ########################### Overview ******** This sample allocates memory from internal DRAM and SPIRAM by calling :c:func:`k_malloc`, frees allocated memory by calling :c:func:`k_free` and checks if memory can be allocated again. Capability of alloca...
/content/code_sandbox/samples/boards/esp32/spiram_test/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
358
```unknown CONFIG_LOG=y CONFIG_FLASH=y CONFIG_FLASH_PAGE_LAYOUT=y ```
/content/code_sandbox/samples/boards/esp32/flash_memory_mapped/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
15
```yaml sample: description: Application to test memory allocation from SPIRAM name: spiram_test tests: sample.board.esp32.spiram: platform_allow: esp32_devkitc_wrover/esp32/procpu tags: esp32 harness: console harness_config: type: multi_line regex: - "SPIRAM mem test pass" ...
/content/code_sandbox/samples/boards/esp32/spiram_test/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
92
```unknown CONFIG_ESP_SPIRAM=y CONFIG_ESP_HEAP_MIN_EXTRAM_THRESHOLD=2048 CONFIG_HEAP_MEM_POOL_SIZE=98304 CONFIG_ESP_HEAP_SEARCH_ALL_REGIONS=n ```
/content/code_sandbox/samples/boards/esp32/spiram_test/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
40
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include <soc/soc_memory_layout.h> static int check_allocated_memory(int *m1, size_t size) { int ret = 0; if (size < CONFIG_ESP_HEAP_MIN_EXTRAM_THRESHOLD) { if (!esp_ptr_internal(m1)) { printk("Memory allocation is not within" " spe...
/content/code_sandbox/samples/boards/esp32/spiram_test/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
479
```unknown /* * */ &rtc { slow-clk-src = <ESP32_RTC_SLOW_CLK_SRC_XTAL32K>; }; &xt_wdt { status = "okay"; }; ```
/content/code_sandbox/samples/boards/esp32/xt_wdt/app.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
39
```unknown CONFIG_LOG=y CONFIG_WATCHDOG=y CONFIG_WDT_LOG_LEVEL_INF=y ```
/content/code_sandbox/samples/boards/esp32/xt_wdt/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
18
```yaml sample: description: Application to test XT WDT name: xt_wdt_sample tests: sample.board.esp32.xt_wdt: platform_allow: - esp32c3_devkitm - esp32s2_saola - esp32s3_devkitm/esp32s3/procpu tags: esp32 ```
/content/code_sandbox/samples/boards/esp32/xt_wdt/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
79
```c /* * */ #include <stdio.h> #include <zephyr/devicetree.h> #include <zephyr/sys/printk.h> #include <zephyr/drivers/clock_control/esp32_clock_control.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/watchdog.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(xt_...
/content/code_sandbox/samples/boards/esp32/xt_wdt/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
463
```restructuredtext .. _xt_wdt_sample: Espressif XT WDT Sample ####################### Overview ******** This sample shows how to work with XTAL32K Watchdog Timer (XT WDT) peripheral. To properly run this sample, you need to have a board with an external 32.728 Hz crystal oscillator connected to the XTAL_32K_P and X...
/content/code_sandbox/samples/boards/esp32/xt_wdt/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
570
```unknown CONFIG_PM=y # Required to disable default behavior of deep sleep on timeout CONFIG_PM_DEVICE=y ```
/content/code_sandbox/samples/boards/esp32/light_sleep/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
22