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 /* * */ #define DT_DRV_COMPAT vnd_w1 /* * This is not a real 1-Wire driver. It is only used to instantiate struct * devices for the "vnd,w1" devicetree compatibe used in test code. */ #include <zephyr/drivers/w1.h> struct w1_vnd_config { /** w1 master config, common to all drivers */ struct w1_master_con...
/content/code_sandbox/drivers/w1/w1_test.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
490
```c /* * */ /** * @brief 1-Wire network related functions. * * The following procedures wrap basic w1 syscalls, they should be callable * from user mode as well as supervisor mode, therefore _ZEPHYR_SUPERVISOR__ * is not defined for this file such that inline macros do not skip * the arch_is_user_context() ch...
/content/code_sandbox/drivers/w1/w1_net.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,844
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_W1_W1_DS2482_84_H_ #define ZEPHYR_DRIVERS_W1_W1_DS2482_84_H_ #include <zephyr/drivers/i2c.h> #include <zephyr/kernel.h> #define CMD_1WT 0x78 #define CMD_1WSB 0x87 #define CMD_1WRB 0x96 #define CMD_1WWB 0xa5 #define CMD_1WRS 0xb4 #define CMD_CHSL 0xc3 /* DS2482-800 onl...
/content/code_sandbox/drivers/w1/w1_ds2482_84_common.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,000
```c /* * */ #include "w1_ds2482-800.h" #include "w1_ds2482_84_common.h" #include <zephyr/devicetree.h> #include <zephyr/drivers/i2c.h> #include <zephyr/logging/log.h> #define DT_DRV_COMPAT maxim_ds2482_800 LOG_MODULE_REGISTER(ds2482, CONFIG_W1_LOG_LEVEL); struct ds2482_config { const struct i2c_dt_spec i2c_spe...
/content/code_sandbox/drivers/w1/w1_ds2482-800.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
441
```c /* * */ #include "w1_ds2482-800.h" #include "w1_ds2482_84_common.h" #include <zephyr/devicetree.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/w1.h> #include <zephyr/logging/log.h> #define DT_DRV_COMPAT maxim_ds2482_800_channel LOG_MODULE_DECLARE(ds2482, CONFIG_W1_LOG_LEVEL); struct ds2482_conf...
/content/code_sandbox/drivers/w1/w1_ds2482-800_channel.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,229
```c /* * */ #include <stdlib.h> #include <zephyr/drivers/w1.h> #include <zephyr/shell/shell.h> #include <zephyr/kernel.h> #define BUF_SIZE CONFIG_W1_SHELL_BUFFER_SIZE static uint8_t msg_buf[BUF_SIZE]; #define W1DEV_X_NOT_FOUND "1-Wire device not found: \"%s\"" #define OPTION_HELP_RESET "-r Perform bus reset bef...
/content/code_sandbox/drivers/w1/w1_shell.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,913
```unknown # 1-Wire configuration options menuconfig W1 bool prompt "1-Wire bus drivers" select CRC help Enable 1-Wire Drivers if W1 module = W1 module-str = W1 source "subsys/logging/Kconfig.template.log_config" config W1_INIT_PRIORITY int default 65 prompt "Init priority" help 1-Wire device driver ...
/content/code_sandbox/drivers/w1/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
416
```unknown # Configuration options for the Zephyr GPIO 1-Wire Master driver config W1_ZEPHYR_GPIO bool "1-wire GPIO" default y depends on DT_HAS_ZEPHYR_W1_GPIO_ENABLED help This option enables the Zephyr GPIO 1-Wire master driver. The bus reset, and bit read and write operations are executed via byte re...
/content/code_sandbox/drivers/w1/Kconfig.zephyr_gpio
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
187
```unknown # Configuration options for the Zephyr serial 1-Wire Master driver config W1_ZEPHYR_SERIAL bool "1-wire Serial" select SERIAL default y depends on DT_HAS_ZEPHYR_W1_SERIAL_ENABLED select UART_USE_RUNTIME_CONFIGURE help This option enables the Zephyr serial 1-Wire master driver. The bus reset, a...
/content/code_sandbox/drivers/w1/Kconfig.zephyr_serial
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
222
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_EDAC_IBECC_H_ #define ZEPHYR_DRIVERS_EDAC_IBECC_H_ /* TODO: Add to include/sys/util.h */ #define BITFIELD(val, h, l) (((val) & GENMASK(h, l)) >> l) #define BITFIELD64(val, h, l) (((val) & GENMASK64(h, l)) >> l) #define PCI_VENDOR_ID_INTEL 0x8086 /* Supported SKU map ...
/content/code_sandbox/drivers/edac/ibecc.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,730
```c /* * */ #include <stdlib.h> #include <zephyr/device.h> #include <zephyr/shell/shell.h> #include <zephyr/drivers/edac.h> #include "ibecc.h" /** * EDAC Error Injection interface * * edac inject addr [value] Physical memory address base * edac inject mask [value] Physical memory a...
/content/code_sandbox/drivers/edac/shell.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,258
```unknown # # EDAC configuration options menuconfig EDAC bool "Error Detection and Correction (EDAC) drivers" help Enable Error Detection and Correction (EDAC) driver. if EDAC config EDAC_ERROR_INJECT bool "EDAC Error Injection mechanism" help Enable Error injection capability for test error checking a...
/content/code_sandbox/drivers/edac/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
182
```c /* * */ #define DT_DRV_COMPAT intel_ibecc #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/drivers/pcie/pcie.h> #include <zephyr/drivers/edac.h> #include "ibecc.h" #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(edac_ibecc, CONFIG_EDAC_LOG_LEVEL); #define DEVICE_NODE DT_NODELABEL(i...
/content/code_sandbox/drivers/edac/edac_ibecc.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,833
```objective-c /* */ #ifndef INCLUDE_ZEPHYR_DRIVERS_BBRAM_NPCX_H_ #define INCLUDE_ZEPHYR_DRIVERS_BBRAM_NPCX_H_ #include <stdint.h> #include <zephyr/devicetree.h> /** Device config */ struct bbram_npcx_config { /** BBRAM base address */ uintptr_t base_addr; /** BBRAM size (Unit:bytes) */ int size; /** Status r...
/content/code_sandbox/drivers/bbram/npcx.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
357
```unknown config BBRAM_STM32 bool "ST STM32 Battery-backed RAM drivers" default y depends on DT_HAS_ST_STM32_BBRAM_ENABLED depends on COUNTER_RTC_STM32 || RTC_STM32 help This option enables the BBRAM driver for STM32 family of processors. STM32 BBRAM are 32-bit registers which can be used for storing u...
/content/code_sandbox/drivers/bbram/Kconfig.stm32
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
151
```c /* */ #include <zephyr/devicetree.h> #include <zephyr/drivers/emul.h> #include <zephyr/drivers/emul_bbram.h> #include "it8xxx2.h" #define DT_DRV_COMPAT ite_it8xxx2_bbram struct bbram_it8xxx2_emul_config { const struct device *dev; }; #define GET_CONFIG(target) ...
/content/code_sandbox/drivers/bbram/bbram_it8xxx2_emul.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
469
```c /* */ #include <zephyr/devicetree.h> #include <zephyr/drivers/emul.h> #include <zephyr/drivers/emul_bbram.h> #include "npcx.h" #define DT_DRV_COMPAT nuvoton_npcx_bbram struct bbram_npcx_emul_config { const struct device *dev; }; #define GET_CONFIG(target) ...
/content/code_sandbox/drivers/bbram/bbram_npcx_emul.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
438
```c /* * */ #include <stdlib.h> #include <string.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/bbram.h> #include <zephyr/kernel.h> #include <zephyr/shell/shell.h> #include <zephyr/sys/util.h> /* Buffer is only needed for bytes that follow command, device and address. */ #define BUF_ARRAY_CNT (CONFIG_...
/content/code_sandbox/drivers/bbram/bbram_shell.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,320
```c /* * */ #define DT_DRV_COMPAT microchip_mcp7940n #include <string.h> #include <zephyr/device.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/bbram.h> #include <zephyr/kernel.h> #include <zephyr/sys/util.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(bbram_mic...
/content/code_sandbox/drivers/bbram/bbram_microchip_mcp7940n.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,854
```unknown config BBRAM_IT8XXX2 bool "ITE IT81202 Battery-backed RAM drivers" default y depends on DT_HAS_ITE_IT8XXX2_BBRAM_ENABLED help This option enables the BBRAM driver for RISCV_ITE family of processors. config BBRAM_IT8XXX2_EMUL bool "Emulator for the ITE IT81202 BBRAM driver" default y depends on...
/content/code_sandbox/drivers/bbram/Kconfig.it8xxx2
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
126
```c /* */ #define DT_DRV_COMPAT zephyr_bbram_emul #include <zephyr/drivers/bbram.h> #include <string.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(bbram, CONFIG_BBRAM_LOG_LEVEL); /** Device config */ struct bbram_emul_config { /** BBRAM size (Unit:bytes) */ int size; }; /** Device data */ struct bbram...
/content/code_sandbox/drivers/bbram/bbram_emul.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,026
```unknown config BBRAM_EMUL bool "Battery-backed RAM emulated drivers" default y depends on DT_HAS_ZEPHYR_BBRAM_EMUL_ENABLED help This option enables the BBRAM emulation driver. ```
/content/code_sandbox/drivers/bbram/Kconfig.bbram_emul
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
50
```c /* * */ #define DT_DRV_COMPAT nuvoton_npcx_bbram #include <zephyr/drivers/bbram.h> #include <errno.h> #include <zephyr/sys/util.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(npcx_bbram, CONFIG_BBRAM_LOG_LEVEL); #include "npcx.h" #define NPCX_STATUS_IBBR BIT(7) #define NPCX_STATUS_VSBY BIT(1) #defin...
/content/code_sandbox/drivers/bbram/bbram_npcx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
750
```c /* * */ #include <zephyr/drivers/bbram.h> #include <zephyr/internal/syscall_handler.h> static inline int z_vrfy_bbram_check_invalid(const struct device *dev) { K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM)); return z_impl_bbram_check_invalid(dev); } #include <zephyr/syscalls/bbram_check_invalid_mrsh.c> stat...
/content/code_sandbox/drivers/bbram/bbram_handlers.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
486
```unknown config BBRAM_XEC bool "Microchip XEC Battery-backed RAM drivers" default y depends on DT_HAS_MICROCHIP_XEC_BBRAM_ENABLED help This option enables the BBRAM driver for Microchip XEC family of processors. ```
/content/code_sandbox/drivers/bbram/Kconfig.xec
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
60
```objective-c /* */ #ifndef INCLUDE_ZEPHYR_DRIVERS_BBRAM_IT8XXX2_H_ #define INCLUDE_ZEPHYR_DRIVERS_BBRAM_IT8XXX2_H_ #include <stdint.h> #include <zephyr/devicetree.h> /** Device config */ struct bbram_it8xxx2_config { /** BBRAM base address */ uintptr_t base_addr; /** BBRAM size (Unit:bytes) */ int size; }; ...
/content/code_sandbox/drivers/bbram/it8xxx2.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
291
```c /* * */ #define DT_DRV_COMPAT ite_it8xxx2_bbram #include <errno.h> #include <zephyr/drivers/bbram.h> #include <zephyr/logging/log.h> #include <zephyr/sys/util.h> #ifndef CONFIG_BBRAM_IT8XXX2_EMUL #include <chip_chipregs.h> #else /* Emulation register values */ enum bram_indices { BRAM_IDX_VALID_FLAGS0, BRA...
/content/code_sandbox/drivers/bbram/bbram_it8xxx2.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
969
```unknown config BBRAM_MICROCHIP_MCP7940N bool "Microchip MCP7940N SRAM BBRAM driver" default y depends on DT_HAS_MICROCHIP_MCP7940N_ENABLED select I2C help Enable driver for Microchip MCP7940N SRAM based battery-backed RAM. config BBRAM_MICROCHIP_MCP7940N_EMUL bool "Emulator for the Microchip MCP7940N SRAM...
/content/code_sandbox/drivers/bbram/Kconfig.microchip
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
153
```unknown config BBRAM_NPCX bool "Nuvoton NPCX embedded controller (EC) Battery-backed RAM drivers" default y depends on DT_HAS_NUVOTON_NPCX_BBRAM_ENABLED help This option enables the BBRAM driver for NPCX family of processors. config BBRAM_NPCX_EMUL bool "Emulator for the NPCX BBRAM driver" default y depe...
/content/code_sandbox/drivers/bbram/Kconfig.npcx
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
117
```c /* */ #define DT_DRV_COMPAT microchip_mcp7940n #include <zephyr/device.h> #include <zephyr/drivers/emul.h> #include <zephyr/drivers/emul_bbram.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/i2c_emul.h> #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(bbram_microchip_mcp7940n, CONFIG_BBRAM_LOG_LE...
/content/code_sandbox/drivers/bbram/bbram_microchip_mcp7940n_emul.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,358
```c /* * */ #define DT_DRV_COMPAT microchip_xec_bbram #include <zephyr/drivers/bbram.h> #include <errno.h> #include <soc.h> #include <zephyr/sys/util.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(bbram, CONFIG_BBRAM_LOG_LEVEL); /** Device config */ struct bbram_xec_config { /** BBRAM base address */ u...
/content/code_sandbox/drivers/bbram/bbram_xec.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
655
```unknown menuconfig BBRAM bool "Battery-backed RAM (BBRAM) drivers" help Enable BBRAM (battery-backed RAM) driver configuration. if BBRAM module = BBRAM module-str = bbram source "subsys/logging/Kconfig.template.log_config" config BBRAM_SHELL bool "Battery-backed RAM shell" depends on SHELL help Enable...
/content/code_sandbox/drivers/bbram/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
292
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/pm/device.h> #include <zephyr/pm/device_runtime.h> #include <adsp_shim.h> #include <adsp_power.h> #if CONFIG_SOC_INTEL_ACE15_MTPM #include <adsp_power.h> #endif /* CONFIG_SOC_INTEL_ACE15_MTPM */ #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(power_domai...
/content/code_sandbox/drivers/power_domain/power_domain_intel_adsp.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
747
```c /* * */ #define DT_DRV_COMPAT st_stm32_bbram #include <errno.h> #include <zephyr/drivers/bbram.h> #include <zephyr/logging/log.h> #include <zephyr/sys/util.h> #include <stm32_ll_pwr.h> #include <stm32_ll_rtc.h> LOG_MODULE_REGISTER(bbram, CONFIG_BBRAM_LOG_LEVEL); #define STM32_BKP_REG_BYTES 4 #ifdef TAMP /*...
/content/code_sandbox/drivers/bbram/bbram_stm32.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,131
```unknown menuconfig POWER_DOMAIN bool "Power domain drivers" help Include drivers for power domains in system config if POWER_DOMAIN module = POWER_DOMAIN module-str = power_domain source "subsys/logging/Kconfig.template.log_config" config POWER_DOMAIN_INIT_PRIORITY int "Power domain init priority" default...
/content/code_sandbox/drivers/power_domain/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
366
```c /* * Organisation (CSIRO) ABN 41 687 119 230. * */ #define DT_DRV_COMPAT power_domain_gpio #include <zephyr/kernel.h> #include <zephyr/drivers/gpio.h> #include <zephyr/pm/device.h> #include <zephyr/pm/device_runtime.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(power_domain_gpio, CONFIG_POWER_DOMAIN...
/content/code_sandbox/drivers/power_domain/power_domain_gpio.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,073
```unknown # USB configuration options source "drivers/usb/bc12/Kconfig" source "drivers/usb/udc/Kconfig" source "drivers/usb/uhc/Kconfig" source "drivers/usb/uvb/Kconfig" source "drivers/usb/device/Kconfig" source "drivers/usb/common/Kconfig" ```
/content/code_sandbox/drivers/usb/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
68
```c /* * */ #define DT_DRV_COMPAT power_domain_gpio_monitor #include <zephyr/kernel.h> #include <zephyr/drivers/gpio.h> #include <zephyr/pm/device.h> #include <zephyr/pm/device_runtime.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(power_domain_gpio_monitor, CONFIG_POWER_DOMAIN_LOG_LEVEL); struct pd_gpi...
/content/code_sandbox/drivers/power_domain/power_domain_gpio_monitor.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,022
```c /* * */ #define DT_DRV_COMPAT atmel_sam0_usb #define LOG_LEVEL CONFIG_USB_DRIVER_LOG_LEVEL #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(usb_dc_sam0); #include <zephyr/kernel.h> #include <zephyr/usb/usb_device.h> #include <zephyr/drivers/pinctrl.h> #include <soc.h> #include <string.h> #include <zephyr/i...
/content/code_sandbox/drivers/usb/device/usb_dc_sam0.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,823
```c /* * */ #include <soc.h> #include <string.h> #include <hardware/regs/usb.h> #include <hardware/structs/usb.h> #include <hardware/resets.h> #include <pico/platform.h> #include <zephyr/init.h> #include <zephyr/kernel.h> #include <zephyr/usb/usb_device.h> #include <zephyr/sys/util.h> #include <zephyr/logging/log....
/content/code_sandbox/drivers/usb/device/usb_dc_rpi_pico.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
7,615
```c /* * */ /* For accept4() */ #define _GNU_SOURCE 1 #define __packed __attribute__((__packed__)) #include <stdio.h> #include <stdarg.h> #include <stdbool.h> #include <errno.h> #include <string.h> #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> #include...
/content/code_sandbox/drivers/usb/device/usb_dc_native_posix_adapt.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,899
```c /* * */ #define DT_DRV_COMPAT atmel_sam_usbhs #include <zephyr/usb/usb_device.h> #include <zephyr/drivers/clock_control/atmel_sam_pmc.h> #include <zephyr/irq.h> #include <zephyr/kernel.h> #include <zephyr/sys/barrier.h> #include <soc.h> #include <string.h> #define LOG_LEVEL CONFIG_USB_DRIVER_LOG_LEVEL #includ...
/content/code_sandbox/drivers/usb/device/usb_dc_sam_usbhs.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
7,262
```c /* * */ #define DT_DRV_COMPAT nuvoton_numaker_usbd #include <zephyr/kernel.h> #include <zephyr/usb/usb_device.h> #include <zephyr/dt-bindings/usb/usb.h> #include <zephyr/sys/math_extras.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/clock_control/clock_control_numaker.h> #include <zephyr...
/content/code_sandbox/drivers/usb/device/usb_dc_numaker.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
15,367
```objective-c /* * */ struct op_common { uint16_t version; uint16_t code; uint32_t status; } __packed; struct devlist_device { char path[256]; char busid[32]; uint32_t busnum; uint32_t devnum; uint32_t speed; uint16_t idVendor; uint16_t idProduct; uint16_t bcdDevice; uint8_t bDeviceClass; uint8_t b...
/content/code_sandbox/drivers/usb/device/usb_dc_native_posix_adapt.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
610
```c /* * */ #define DT_DRV_COMPAT atmel_sam_usbc #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(usb_dc_sam_usbc, CONFIG_USB_DRIVER_LOG_LEVEL); #include <zephyr/kernel.h> #include <zephyr/usb/usb_device.h> #include <soc.h> #include <string.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/barrier.h> #...
/content/code_sandbox/drivers/usb/device/usb_dc_sam_usbc.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
11,378
```c /* * */ /** * @file * @brief USB DesignWare device controller driver * * USB DesignWare device controller driver. The driver implements the low * level control routines to deal directly with the hardware. */ #define DT_DRV_COMPAT snps_dwc2 #include <string.h> #include <stdio.h> #include <zephyr/kernel....
/content/code_sandbox/drivers/usb/device/usb_dc_dw.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
10,987
```c /* * */ /** * @file * @brief USB device controller shim driver for STM32 devices * * This driver uses the STM32 Cube low level drivers to talk to the USB * device controller on the STM32 family of devices using the * STM32Cube HAL layer. */ #include <soc.h> #include <stm32_ll_bus.h> #include <stm32_ll_p...
/content/code_sandbox/drivers/usb/device/usb_dc_stm32.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,758
```c /* * */ /** * @file usb_dc_nrfx.c * @brief Nordic USB device controller driver * * The driver implements the interface between the USBD peripheral * driver from nrfx package and the operating system. */ #include <soc.h> #include <string.h> #include <stdio.h> #include <zephyr/init.h> #include <zephyr/ker...
/content/code_sandbox/drivers/usb/device/usb_dc_nrfx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
12,765
```c /* * */ #define DT_DRV_COMPAT ite_it82xx2_usb #include <zephyr/kernel.h> #include <zephyr/usb/usb_device.h> #include <zephyr/drivers/pinctrl.h> #include <soc.h> #include <soc_dt.h> #include <string.h> #include <zephyr/irq.h> #include <zephyr/pm/policy.h> #include <zephyr/drivers/interrupt_controller/wuc_ite_it...
/content/code_sandbox/drivers/usb/device/usb_dc_it82xx2.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
13,209
```c /* * */ /** * @file * @brief USB native_posix device driver */ #include <string.h> #include <stdio.h> #include <zephyr/kernel.h> #include <zephyr/sys/byteorder.h> #include <zephyr/drivers/usb/usb_dc.h> #include <zephyr/usb/usb_device.h> #include <zephyr/net/net_ip.h> #include "usb_dc_native_posix_adapt.h" ...
/content/code_sandbox/drivers/usb/device/usb_dc_native_posix.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,929
```c /* * */ /** * @file usb_dc_smartbond.c * @brief SmartBond USB device controller driver * */ #include <stdio.h> #include <string.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/usb/usb_dc.h> #include <zephyr/init.h> #include <zephyr/kernel.h> #include <zephyr/usb/usb_device.h> #incl...
/content/code_sandbox/drivers/usb/device/usb_dc_smartbond.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
13,482
```unknown # USB device configuration options menuconfig USB_DEVICE_DRIVER bool "USB device controller drivers" help Enable USB device controller drivers. if USB_DEVICE_DRIVER config USB_DC_HAS_HS_SUPPORT bool "USB device controller supports high speed" help USB device controller supports high speed. con...
/content/code_sandbox/drivers/usb/device/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,760
```c /* * */ #include <soc.h> #include <string.h> #include <zephyr/drivers/usb/usb_dc.h> #include <zephyr/usb/usb_device.h> #include <soc.h> #include <zephyr/init.h> #include <zephyr/kernel.h> #include <zephyr/drivers/pinctrl.h> #include "usb.h" #include "usb_device.h" #include "usb_device_config.h" #include "usb_de...
/content/code_sandbox/drivers/usb/device/usb_dc_mcux.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,974
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_USB_DEVICE_USB_DC_DW_STM32_H #define ZEPHYR_DRIVERS_USB_DEVICE_USB_DC_DW_STM32_H #include <stdint.h> #include <zephyr/device.h> #include <zephyr/drivers/clock_control/stm32_clock_control.h> #include <usb_dwc2_hw.h> struct usb_dw_stm32_clk { const struct device *const...
/content/code_sandbox/drivers/usb/device/usb_dc_dw_stm32.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
622
```c /* usb_dc_kinetis.c - Kinetis USBFSOTG usb device driver */ /* * */ #define DT_DRV_COMPAT nxp_kinetis_usbd #include <soc.h> #include <string.h> #include <stdio.h> #include <zephyr/kernel.h> #include <zephyr/sys/byteorder.h> #include <zephyr/usb/usb_device.h> #include <zephyr/init.h> #define LOG_LEVEL CONFIG_...
/content/code_sandbox/drivers/usb/device/usb_dc_kinetis.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
7,980
```unknown rsource "nrf_usbd_common/Kconfig" ```
/content/code_sandbox/drivers/usb/common/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
13
```objective-c /* * */ /* This file is undergoing transition towards native Zephyr nrf USB driver. */ /** @cond INTERNAL_HIDDEN */ #ifndef NRF_USBD_COMMON_ERRATA_H__ #define NRF_USBD_COMMON_ERRATA_H__ #include <nrfx.h> #include <nrf_erratas.h> #ifndef NRF_USBD_COMMON_ERRATA_ENABLE /** * @brief The constant that...
/content/code_sandbox/drivers/usb/common/nrf_usbd_common/nrf_usbd_common_errata.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
407
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_USB_COMMON_USB_DWC2_HW #define ZEPHYR_DRIVERS_USB_COMMON_USB_DWC2_HW #include <stdint.h> #ifdef __cplusplus extern "C" { #endif /* This file describes register set for the DesignWare USB 2.0 controller IP */ /* IN endpoint register block */ struct usb_dwc2_in_ep { v...
/content/code_sandbox/drivers/usb/common/usb_dwc2_hw.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
13,883
```objective-c /* * */ /* This file is undergoing transition towards native Zephyr nrf USB driver. */ /** @cond INTERNAL_HIDDEN */ #ifndef NRF_USBD_COMMON_H__ #define NRF_USBD_COMMON_H__ #include <nrfx.h> #ifdef __cplusplus extern "C" { #endif /** * @defgroup nrf_usbd_common USBD driver * @{ * @ingroup nrf_u...
/content/code_sandbox/drivers/usb/common/nrf_usbd_common/nrf_usbd_common.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,203
```unknown module = NRF_USBD_COMMON module-str = nRF USBD common source "subsys/logging/Kconfig.template.log_config" config NRF_USBD_COMMON bool "USBD driver" depends on HAS_NRFX depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_USBD)) config NRF_USBD_ISO_IN_ZLP bool "Send ZLP on ISO IN when not ready" depends ...
/content/code_sandbox/drivers/usb/common/nrf_usbd_common/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
152
```c /* * */ /* This file is undergoing transition towards native Zephyr nrf USB driver. */ /** @cond INTERNAL_HIDDEN */ #include <nrfx.h> #include "nrf_usbd_common.h" #include "nrf_usbd_common_errata.h" #include <string.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(nrf_usbd_c...
/content/code_sandbox/drivers/usb/common/nrf_usbd_common/nrf_usbd_common.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
13,759
```unknown # # # menuconfig UVB bool prompt "USB virtual bus" help USB virtual bus service intended for use by virtual UDC and UHC controllers. if UVB config UVB_MAX_MESSAGES int "Maximum number of messages allocatable" range 4 256 default 16 help Maximum number of messages allocatable. module = UVB...
/content/code_sandbox/drivers/usb/uvb/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
113
```linker script ITERABLE_SECTION_RAM(uvb_node, Z_LINK_ITERABLE_SUBALIGN) ```
/content/code_sandbox/drivers/usb/uvb/uvb.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
16
```c /* * */ #include <stdio.h> #include <zephyr/kernel.h> #include <zephyr/init.h> #include <zephyr/sys/dlist.h> #include <zephyr/sys/iterable_sections.h> #include "uvb.h" #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(uvb, CONFIG_UVB_LOG_LEVEL); static struct k_fifo uvb_queue; static void uvb_work_handler(...
/content/code_sandbox/drivers/usb/uvb/uvb.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,967
```objective-c /* * */ /** * @file * @brief USB virtual bus service */ #ifndef ZEPHYR_INCLUDE_UVB #define ZEPHYR_INCLUDE_UVB #include <zephyr/sys/atomic.h> #include <zephyr/sys/dlist.h> #include <zephyr/sys/iterable_sections.h> #ifdef __cplusplus extern "C" { #endif /** * @brief Virtual bus event types */ e...
/content/code_sandbox/drivers/usb/uvb/uvb.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,654
```unknown config UDC_NXP_EHCI bool "NXP MCUX USB EHCI Device controller driver" default y depends on DT_HAS_NXP_EHCI_ENABLED select NOCACHE_MEMORY if HAS_MCUX_CACHE && CPU_HAS_DCACHE imply UDC_BUF_FORCE_NOCACHE help NXP MCUX USB Device Controller Driver for EHCI. config UDC_NXP_IP3511 bool "NXP MCUX USB IP...
/content/code_sandbox/drivers/usb/udc/Kconfig.mcux
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
132
```c /* * */ /* * USB device controller (UDC) driver skeleton * * This is a skeleton for a device controller driver using the UDC API. * Please use it as a starting point for a driver implementation for your * USB device controller. Maintaining a common style, terminology and * abbreviations will allow us to s...
/content/code_sandbox/drivers/usb/udc/udc_skeleton.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,194
```unknown config UDC_SKELETON bool "Skeleton for an USB device controller driver" default y depends on DT_HAS_ZEPHYR_UDC_SKELETON_ENABLED help Skeleton for an USB device controller driver. config UDC_SKELETON_STACK_SIZE int "UDC controller driver internal thread stack size" depends on UDC_SKELETON default ...
/content/code_sandbox/drivers/usb/udc/Kconfig.skeleton
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
140
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_USB_UDC_DWC2_H #define ZEPHYR_DRIVERS_USB_UDC_DWC2_H #include <stdint.h> #include <zephyr/device.h> #include <zephyr/drivers/usb/udc.h> #include <usb_dwc2_hw.h> /* Vendor quirks per driver instance */ struct dwc2_vendor_quirks { /* Called at the beginning of udc_dwc2_...
/content/code_sandbox/drivers/usb/udc/udc_dwc2.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
676
```unknown config UDC_DWC2 bool "DWC2 USB device controller driver" default y depends on DT_HAS_SNPS_DWC2_ENABLED select NRFS if NRFS_HAS_VBUS_DETECTOR_SERVICE select NRFS_VBUS_DETECTOR_SERVICE_ENABLED if NRFS_HAS_VBUS_DETECTOR_SERVICE help DWC2 USB device controller driver. config UDC_DWC2_DMA bool "DWC2 U...
/content/code_sandbox/drivers/usb/udc/Kconfig.dwc2
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
264
```c /* * */ /** * @file udc_virtual.c * @brief Virtual USB device controller (UDC) driver * * Virtual device controller does not emulate any hardware * and can only communicate with the virtual host controller * through virtual bus. */ #include "udc_common.h" #include "../uvb/uvb.h" #include <string.h> #i...
/content/code_sandbox/drivers/usb/udc/udc_virtual.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,192
```unknown config UDC_STM32 bool "STM32 USB device controller driver" depends on DT_HAS_ST_STM32_OTGFS_ENABLED \ || DT_HAS_ST_STM32_OTGHS_ENABLED \ || DT_HAS_ST_STM32_USB_ENABLED select USE_STM32_LL_USB select USE_STM32_HAL_PCD select USE_STM32_HAL_PCD_EX default y help STM32 USB device controller driver...
/content/code_sandbox/drivers/usb/udc/Kconfig.stm32
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
98
```c /* * */ /* * Driver for the USBFSOTG device controller which can be found on * devices like Kinetis K64F. */ #define DT_DRV_COMPAT nxp_kinetis_usbd #include <soc.h> #include <string.h> #include <stdio.h> #include <zephyr/device.h> #include <zephyr/kernel.h> #include <zephyr/sys/byteorder.h> #include <zephy...
/content/code_sandbox/drivers/usb/udc/udc_kinetis.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,503
```c /* * */ #include "udc_common.h" #include <soc.h> #include <soc_dt.h> #include <zephyr/pm/policy.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/logging/log.h> #include <zephyr/drivers/interrupt_controller/wuc_ite_it8xxx2.h> #include <zephyr/dt-bindings/interrupt-controller/it8xxx2-wuc.h> LOG_MODULE_REG...
/content/code_sandbox/drivers/usb/udc/udc_it82xx2.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
12,637
```unknown config UDC_KINETIS bool "Kinetis USB device controller driver" imply UDC_WORKQUEUE default y depends on DT_HAS_NXP_KINETIS_USBD_ENABLED help Kinetis USB device controller criver. config UDC_KINETIS_EVENT_COUNT int "Number or blocks in event slab" depends on UDC_KINETIS range 4 16 default 4 hel...
/content/code_sandbox/drivers/usb/udc/Kconfig.kinetis
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
105
```unknown config UDC_VIRTUAL bool "Virtual USB device controller driver" select UVB default y depends on DT_HAS_ZEPHYR_UDC_VIRTUAL_ENABLED help Virtual USB device controller driver. config UDC_VIRTUAL_STACK_SIZE int "Virtual controller driver internal thread stack size" depends on UDC_VIRTUAL default 512 ...
/content/code_sandbox/drivers/usb/udc/Kconfig.virtual
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
121
```unknown config UDC_NRF bool "Nordic Semiconductor USB device controller driver" default y depends on DT_HAS_NORDIC_NRF_USBD_ENABLED select NRF_USBD_COMMON select NRFX_POWER help nRF USB device controller driver. if UDC_NRF config UDC_NRF_THREAD_STACK_SIZE int "nRF UDC driver internal thread stack size" ...
/content/code_sandbox/drivers/usb/udc/Kconfig.nrf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
166
```unknown config UDC_NUMAKER bool "Nuvoton NuMaker USB 1.1 device controller" default y depends on DT_HAS_NUVOTON_NUMAKER_USBD_ENABLED help Enable Nuvoton NuMaker USB 1.1 device controller driver if UDC_NUMAKER config UDC_NUMAKER_MSG_QUEUE_SIZE int "UDC NuMaker message queue size" default 32 help Maxim...
/content/code_sandbox/drivers/usb/udc/Kconfig.numaker
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
184
```c /* * */ #define DT_DRV_COMPAT nxp_lpcip3511 #include <soc.h> #include <string.h> #include <stdio.h> #include <zephyr/device.h> #include <zephyr/kernel.h> #include <zephyr/sys/byteorder.h> #include <zephyr/drivers/usb/udc.h> #include <zephyr/drivers/pinctrl.h> #include "udc_common.h" #include "usb.h" #include ...
/content/code_sandbox/drivers/usb/udc/udc_mcux_ip3511.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,926
```c /* * */ /** * @file udc_stm32.c * @brief STM32 USB device controller (UDC) driver */ #include <soc.h> #include <stm32_ll_bus.h> #include <stm32_ll_pwr.h> #include <stm32_ll_rcc.h> #include <stm32_ll_system.h> #include <string.h> #include <zephyr/irq.h> #include <zephyr/drivers/gpio.h> #include <zephyr/driv...
/content/code_sandbox/drivers/usb/udc/udc_stm32.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,879
```c /* * */ #include <zephyr/init.h> #include <zephyr/kernel.h> #include <zephyr/net/buf.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/__assert.h> #include <zephyr/usb/usb_ch9.h> #include <zephyr/drivers/usb/udc_buf.h> #include "udc_common.h" #include <zephyr/logging/log.h> #if defined(CONFIG_UDC_DRIVE...
/content/code_sandbox/drivers/usb/udc/udc_common.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,959
```unknown config UDC_IT82XX2 bool "IT82XX2 USB device controller driver" default y depends on DT_HAS_ITE_IT82XX2_USB_ENABLED help IT82xx2 USB device controller driver. if UDC_IT82XX2 config UDC_IT82xx2_EVENT_COUNT int "UDC IT82xx2 event count" range 4 64 default 8 help IT82xx2 event count. config UDC...
/content/code_sandbox/drivers/usb/udc/Kconfig.it82xx2
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
161
```c /* * */ #define DT_DRV_COMPAT nuvoton_numaker_usbd #include <zephyr/kernel.h> #include <zephyr/drivers/usb/udc.h> #include <zephyr/sys/math_extras.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/clock_control/clock_control_numaker.h> #include <zephyr/drivers/reset.h> #include <zephyr/driv...
/content/code_sandbox/drivers/usb/udc/udc_numaker.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
14,502
```objective-c /* * */ /** * @file * @brief Private API for USB device controller (UDC) drivers */ #ifndef ZEPHYR_INCLUDE_UDC_COMMON_H #define ZEPHYR_INCLUDE_UDC_COMMON_H #include <zephyr/drivers/usb/udc.h> #include <zephyr/sys/byteorder.h> #define CTRL_PIPE_STAGE_SETUP 0 #define CTRL_PIPE_STAGE_DATA_OUT 1 #d...
/content/code_sandbox/drivers/usb/udc/udc_common.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,787
```c /* * */ #define DT_DRV_COMPAT nxp_ehci #include <soc.h> #include <string.h> #include <stdio.h> #include <zephyr/device.h> #include <zephyr/kernel.h> #include <zephyr/sys/byteorder.h> #include <zephyr/drivers/usb/udc.h> #include <zephyr/drivers/pinctrl.h> #include "udc_common.h" #include "usb.h" #include "usb_...
/content/code_sandbox/drivers/usb/udc/udc_mcux_ehci.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,740
```unknown menuconfig UDC_DRIVER bool "USB device controller drivers [EXPERIMENTAL]" select EXPERIMENTAL select NET_BUF help USB device controller driver. if UDC_DRIVER config UDC_BUF_COUNT int "Number of buffers in the pool" range 16 256 default 16 help Number of UDC request buffers in the pool. con...
/content/code_sandbox/drivers/usb/udc/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
439
```c /* * */ #include "udc_common.h" #include "udc_dwc2.h" #include <string.h> #include <stdio.h> #include <zephyr/cache.h> #include <zephyr/kernel.h> #include <zephyr/devicetree.h> #include <zephyr/sys/util.h> #include <zephyr/sys/sys_io.h> #include <zephyr/sys/byteorder.h> #include <zephyr/drivers/usb/udc.h> #in...
/content/code_sandbox/drivers/usb/udc/udc_dwc2.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
20,623
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_USB_UDC_DWC2_VENDOR_QUIRKS_H #define ZEPHYR_DRIVERS_USB_UDC_DWC2_VENDOR_QUIRKS_H #include "udc_dwc2.h" #include <stdint.h> #include <zephyr/device.h> #include <zephyr/drivers/usb/udc.h> #if DT_HAS_COMPAT_STATUS_OKAY(st_stm32f4_fsotg) #include <zephyr/sys/sys_io.h> #i...
/content/code_sandbox/drivers/usb/udc/udc_dwc2_vendor_quirks.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,074
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/usb/usb_ch9.h> #include "uhc_common.h" #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(uhc, CONFIG_UHC_DRIVER_LOG_LEVEL); K_MEM_SLAB_DEFINE_STATIC(uhc_xfer_pool, sizeof(struct uhc_transfer), CONFIG_UHC_XFER_COUNT, sizeof(void *)); NET_BUF_POOL_VAR_D...
/content/code_sandbox/drivers/usb/uhc/uhc_common.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,943
```unknown config UHC_VIRTUAL bool "Virtual USB host controller driver" select UVB default y depends on DT_HAS_ZEPHYR_UHC_VIRTUAL_ENABLED help Virtual USB host controller driver. ```
/content/code_sandbox/drivers/usb/uhc/Kconfig.virtual
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
45
```c /* * */ /** * @file udc_nrf.c * @brief Nordic USB device controller (UDC) driver * * The driver implements the interface between the nRF USBD peripheral * driver from nrfx package and UDC API. */ #include <string.h> #include <stdio.h> #include <soc.h> #include <zephyr/kernel.h> #include <zephyr/drivers...
/content/code_sandbox/drivers/usb/udc/udc_nrf.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,458
```unknown DT_COMPAT_UHC_MAX3421E := maxim,max3421e_spi config UHC_MAX3421E bool "MAX3421E driver" default y depends on DT_HAS_MAXIM_MAX3421E_SPI_ENABLED select SPI help This option enables MAX3421E USB Peripheral/Host Controller with SPI Interface. if UHC_MAX3421E config MAX3421E_THREAD_STACK_SIZE int ...
/content/code_sandbox/drivers/usb/uhc/Kconfig.max3421e
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
162
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_UHC_MAX3421E_H #define ZEPHYR_INCLUDE_UHC_MAX3421E_H #include <zephyr/sys/util_macro.h> #define MAX3421E_MAX_EP_SIZE 64U /* SPI command byte format macros */ #define MAX3421E_CMD_REG_SHIFT 3U #define MAX3421E_CMD_DIR_WR BIT(1) #define MAX3421E_CMD_DIR_RD 0U #def...
/content/code_sandbox/drivers/usb/uhc/uhc_max3421e.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,630
```objective-c /* * */ /** * @file * @brief Private API for USB host controller (UHC) drivers */ #ifndef ZEPHYR_INCLUDE_UHC_COMMON_H #define ZEPHYR_INCLUDE_UHC_COMMON_H #include <zephyr/drivers/usb/uhc.h> /** * @brief Get driver's private data * * @param[in] dev Pointer to device struct of the driver ins...
/content/code_sandbox/drivers/usb/uhc/uhc_common.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
714
```unknown menuconfig UHC_DRIVER bool "USB host controller drivers [EXPERIMENTAL]" select EXPERIMENTAL select NET_BUF help USB host controller driver. if UHC_DRIVER config UHC_XFER_COUNT int "Number of transfers in the pool" range 2 256 default 16 help Number of UHC transfers available. config UHC_BU...
/content/code_sandbox/drivers/usb/uhc/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
212
```c /* * */ /* * @file uhc_virtual.c * @brief Virtual USB host controller (UHC) driver * * Virtual device controller does not emulate any hardware * and can only communicate with the virtual device controllers * through virtual bus. */ #include "uhc_common.h" #include "../uvb/uvb.h" #include <string.h> #i...
/content/code_sandbox/drivers/usb/uhc/uhc_virtual.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,760
```c /* * */ /* * MAX3421E USB Peripheral/Host Controller with SPI Interface. * NOTE: Driver supports only host mode yet. */ #define DT_DRV_COMPAT maxim_max3421e_spi #include <string.h> #include <zephyr/kernel.h> #include <zephyr/init.h> #include <zephyr/sys/byteorder.h> #include <zephyr/drivers/gpio.h> #inclu...
/content/code_sandbox/drivers/usb/uhc/uhc_max3421e.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
8,138
```c /* * */ /* PI3USB9201 USB BC 1.2 Charger Detector driver. */ #define DT_DRV_COMPAT diodes_pi3usb9201 #include <zephyr/device.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/usb/usb_bc12.h> #include <zephyr/logging/log.h> #include "bc12_pi3usb9201.h" LOG_MODULE_REG...
/content/code_sandbox/drivers/usb/bc12/bc12_pi3usb9201.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,052
```objective-c /* * */ /* PI3USB9201 USB BC 1.2 Charger Detector driver definitions */ #ifndef ZEPHYR_INCLUDE_USB_BC12_PI3USB9201_H #define ZEPHYR_INCLUDE_USB_BC12_PI3USB9201_H #define PI3USB9201_REG_CTRL_1 0x0 #define PI3USB9201_REG_CTRL_2 0x1 #define PI3USB9201_REG_CLIENT_STS 0x2 #define PI3USB9201_REG_HOST_ST...
/content/code_sandbox/drivers/usb/bc12/bc12_pi3usb9201.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
393
```unknown menuconfig USB_BC12 bool "USB BC1.2 Drivers" help Enable USB BC1.2 (battery charging detection) drivers. if USB_BC12 module = USB_BC12 module-str = usb_bc12 source "subsys/logging/Kconfig.template.log_config" source "drivers/usb/bc12/Kconfig.pi3usb9201" endif # USB_BC12 ```
/content/code_sandbox/drivers/usb/bc12/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
84