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 qemu_ivshmem
#define LOG_LEVEL CONFIG_IVSHMEM_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(ivshmem);
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/pcie/cap.h>
#include <zephyr/init.h>
#include <zephyr/drivers... | /content/code_sandbox/drivers/virtualization/virt_ivshmem.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,670 |
```unknown
# MCUX CAN configuration options
config CAN_MCUX_FLEXCAN
bool "NXP FlexCAN driver"
default y
depends on DT_HAS_NXP_FLEXCAN_ENABLED
depends on CLOCK_CONTROL
select PINCTRL
help
Enable support for the NXP FlexCAN driver.
if CAN_MCUX_FLEXCAN
config CAN_MCUX_FLEXCAN_FD
bool # hidden
default y
dep... | /content/code_sandbox/drivers/can/Kconfig.mcux | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 569 |
```objective-c
/*
*
*
*/
#ifndef _MCP2515_H_
#define _MCP2515_H_
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/can.h>
#define MCP2515_RX_CNT 2
/* Reduce the number of Tx buffers to 1 in order to avoid priority inversion. */
#define MCP2515_TX_CNT 1
#define MCP2515_F... | /content/code_sandbox/drivers/can/can_mcp2515.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,362 |
```unknown
# CAN loopback device configuration options
config CAN_LOOPBACK
bool "Emulated CAN loopback driver"
default y
depends on DT_HAS_ZEPHYR_CAN_LOOPBACK_ENABLED
help
This is an emulated driver that can only loopback messages.
if CAN_LOOPBACK
config CAN_MAX_FILTER
int "Maximum number of concurrent acti... | /content/code_sandbox/drivers/can/Kconfig.loopback | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 270 |
```c
/*
*
*/
/* Include soc.h prior to Zephyr CAN headers to pull in HAL fixups */
#include <soc.h>
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/transceiver.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <zephyr/drivers/pinctrl.h>
... | /content/code_sandbox/drivers/can/can_stm32_bxcan.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,598 |
```c
/*
*
*/
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/can_mcan.h>
#include <zephyr/drivers/can/transceiver.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/sys_io.h>
#include <zephyr/sys/util.h>
LOG_MODULE_REGISTER(can_mcan, CONFIG_CAN_LOG_LEVEL);
#define CAN_I... | /content/code_sandbox/drivers/can/can_mcan.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 12,305 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_CAN_MICROCHIP_MCP251XFD_H_
#define ZEPHYR_DRIVERS_CAN_MICROCHIP_MCP251XFD_H_
#include <stdint.h>
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#define MCP251XFD_UINT32_FLAG_TO_BYTE_MASK(flag_u32) \
((flag_u32) >> R... | /content/code_sandbox/drivers/can/can_mcp251xfd.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,956 |
```unknown
# NXP SJA1000 configuration options
config CAN_SJA1000
bool
help
This enables support for the shared NXP SJA1000 CAN driver.
config CAN_MAX_FILTER
int "Maximum number of concurrent active RX filters"
depends on CAN_SJA1000
default 5
range 1 32
help
As the NXP SJA1000 only supports one full-wi... | /content/code_sandbox/drivers/can/Kconfig.sja1000 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 103 |
```unknown
# STM32 CAN configuration options
config CAN_STM32_BXCAN
bool "STM32 bxCAN driver"
default y
depends on DT_HAS_ST_STM32_BXCAN_ENABLED
help
Enable STM32 bxCAN Driver.
if CAN_STM32_BXCAN
config CAN_MAX_STD_ID_FILTER
int "Maximum number of standard (11-bit) ID filters"
default 14
range 0 28
help
... | /content/code_sandbox/drivers/can/Kconfig.stm32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 522 |
```c
/*
*
*/
/**
* @file
*
* Routines setting up the host system. Those are placed in separate file
* because there is naming conflicts between host and zephyr network stacks.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <errno.h>
#include <string.h>
#include <stdbool.h>
/* Linux hos... | /content/code_sandbox/drivers/can/can_native_linux_adapt.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 898 |
```unknown
# TCAN4x5x configuration options
config CAN_TCAN4X5X
bool "TI TCAN4x5x"
default y
depends on DT_HAS_TI_TCAN4X5X_ENABLED
select CAN_MCAN
select SPI
help
Enable support for the Texas Instruments TCAN4x5x.
if CAN_TCAN4X5X
config CAN_TCAN4X5X_THREAD_STACK_SIZE
int "Stack size for the TCAN4x5x inter... | /content/code_sandbox/drivers/can/Kconfig.tcan4x5x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 185 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_mcp2515
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/can/transceiver.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(can_mcp2515, CONFIG_CAN_LOG_LEVEL);
#include "... | /content/code_sandbox/drivers/can/can_mcp2515.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,410 |
```unknown
config CAN_NXP_S32_CANXL
bool "NXP S32 CANXL driver"
default y
depends on DT_HAS_NXP_S32_CANXL_ENABLED
select CLOCK_CONTROL
help
Enable support for NXP S32 CANXL driver.
if CAN_NXP_S32_CANXL
config CAN_NXP_S32_RX_FIFO
bool "NXP S32 CANXL uses RX FIFO"
default y
help
If this is enabled, NXP S3... | /content/code_sandbox/drivers/can/Kconfig.nxp_s32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 224 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_can_loopback
#include <stdbool.h>
#include <string.h>
#include <zephyr/drivers/can.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
LOG_MODULE_REGISTER(can_loopback, CONFIG_CAN_LOG_LEVEL);
struct can_loopback_frame {
struct can_... | /content/code_sandbox/drivers/can/can_loopback.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,102 |
```objective-c
/*
*
*/
/** @file
* @brief Private functions for native posix canbus driver.
*/
#ifndef ZEPHYR_DRIVERS_CAN_NATIVE_LINUX_ADAPT_H_
#define ZEPHYR_DRIVERS_CAN_NATIVE_LINUX_ADAPT_H_
int linux_socketcan_iface_open(const char *if_name);
int linux_socketcan_iface_close(int fd);
int linux_socketcan_poll... | /content/code_sandbox/drivers/can/can_native_linux_adapt.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 132 |
```c
/*
*
*/
#define DT_DRV_COMPAT infineon_xmc4xxx_can_node
#include <zephyr/device.h>
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/transceiver.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/bitarray.h>
#include <soc.h>
#include <xmc_can.h>
#include <zephyr... | /content/code_sandbox/drivers/can/can_xmc4xxx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,025 |
```unknown
config CAN_NRF
bool "nRF CAN driver"
default y
depends on DT_HAS_NORDIC_NRF_CAN_ENABLED
select CAN_MCAN
select CLOCK_CONTROL
help
Driver for nRF CAN.
``` | /content/code_sandbox/drivers/can/Kconfig.nrf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 48 |
```unknown
# Espressif ESP32 TWAI configuration options
config CAN_ESP32_TWAI
bool "Espressif TWAI CAN driver"
default y
depends on DT_HAS_ESPRESSIF_ESP32_TWAI_ENABLED
select CAN_SJA1000
help
This enables support for the Espressif Two-Wire Automotive Interface
(TWAI) CAN driver.
``` | /content/code_sandbox/drivers/can/Kconfig.esp32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 80 |
```c
/*
*
*/
#include <zephyr/internal/syscall_handler.h>
#include <zephyr/drivers/can.h>
static int z_vrfy_can_calc_timing(const struct device *dev, struct can_timing *res,
uint32_t bitrate, uint16_t sample_pnt)
{
struct can_timing res_copy;
int err;
K_OOPS(K_SYSCALL_DRIVER_CAN(dev, get_core_clock));
K_... | /content/code_sandbox/drivers/can/can_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,579 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/can_mcan.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
#include <zephyr/drivers/reset.h>
LOG_MODULE_REGISTER(can_mcux_mcan, ... | /content/code_sandbox/drivers/can/can_mcux_mcan.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,297 |
```c
/*
*
*/
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/can_mcan.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/clock_control/atmel_sam_pmc.h>
#include <soc.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(can_sam, CONFIG_CA... | /content/code_sandbox/drivers/can/can_sam.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,919 |
```unknown
# MCP2515 CAN configuration options
config CAN_MCP2515
bool "MCP2515 CAN Driver"
default y
depends on DT_HAS_MICROCHIP_MCP2515_ENABLED
select SPI
help
Enable MCP2515 CAN Driver
if CAN_MCP2515
config CAN_MCP2515_INT_THREAD_STACK_SIZE
int "Stack size for interrupt handler"
default 1024
help
S... | /content/code_sandbox/drivers/can/Kconfig.mcp2515 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 209 |
```unknown
# NuMaker CAN(-FD) driver configuration options
config CAN_NUMAKER
bool "Nuvoton NuMaker CAN FD driver"
default y
select CAN_MCAN
depends on DT_HAS_NUVOTON_NUMAKER_CANFD_ENABLED
depends on SOC_SERIES_M46X || SOC_SERIES_M2L31X
help
Enables Nuvoton NuMaker CAN FD driver, using Bosch M_CAN
``` | /content/code_sandbox/drivers/can/Kconfig.numaker | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 88 |
```unknown
# Renesas R-Car CAN configuration options
config CAN_RCAR
bool "Renesas R-Car CAN Driver"
default y
depends on DT_HAS_RENESAS_RCAR_CAN_ENABLED
help
Enable Renesas R-Car CAN Driver.
config CAN_RCAR_MAX_FILTER
int "Maximum number of concurrent active filters"
depends on CAN_RCAR
default 5
range 1... | /content/code_sandbox/drivers/can/Kconfig.rcar | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 115 |
```unknown
# Fake CAN configuration options
config CAN_FAKE
bool "Fake CAN driver"
default y
depends on DT_HAS_ZEPHYR_FAKE_CAN_ENABLED
help
Enable support for the FFF-based fake CAN driver.
``` | /content/code_sandbox/drivers/can/Kconfig.fake | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 49 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_native_linux_can
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <cmdline.h>
#include <posix_native_task.h>
#include <zephyr/drivers/can.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/net/net_pkt.h>
#include <zephyr/net/... | /content/code_sandbox/drivers/can/can_native_linux.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,540 |
```c
/*
*
*/
#define DT_DRV_COMPAT espressif_esp32_twai
#include <zephyr/drivers/can/can_sja1000.h>
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/interrupt_controller/intc_esp32.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/logging/log.h>
#include <so... | /content/code_sandbox/drivers/can/can_esp32_twai.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,941 |
```unknown
# Native Linux SocketCAN configuration options
config CAN_NATIVE_LINUX
bool "Native Linux SocketCAN Driver"
default y
depends on DT_HAS_ZEPHYR_NATIVE_LINUX_CAN_ENABLED
depends on ARCH_POSIX
help
Enable native Linux SocketCAN Driver
if CAN_NATIVE_LINUX
config CAN_NATIVE_LINUX_RX_THREAD_PRIORITY
i... | /content/code_sandbox/drivers/can/Kconfig.native_linux | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 156 |
```c
/*
*
*/
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/can_mcan.h>
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/kernel.h>
#include <stm32_ll_rcc.h>
#include <zephyr/logging/log.h>
#inclu... | /content/code_sandbox/drivers/can/can_stm32h7_fdcan.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,820 |
```c
/*
*
*/
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/can_mcan.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/irq.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <soc.h>
LOG_MODULE_REGISTER(can_sam0, CONFIG_CAN_LOG_LEVEL);
#define DT_DRV_COMPAT atmel_sam0_can
st... | /content/code_sandbox/drivers/can/can_sam0.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,276 |
```unknown
# Bosch M_CAN configuration options
config CAN_MCAN
bool
help
Enable the Bosch M_CAN CAN IP module driver backend.
``` | /content/code_sandbox/drivers/can/Kconfig.mcan | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 29 |
```unknown
# Kvaser PCIcan configuration options
config CAN_KVASER_PCI
bool "Kvaser PCIcan driver"
default y
depends on DT_HAS_KVASER_PCICAN_ENABLED
select PCIE
select CAN_SJA1000
help
This enables support for the Kvaser PCIcan.
``` | /content/code_sandbox/drivers/can/Kconfig.kvaser | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```c
/*
*
*/
#include <zephyr/drivers/can/can_sja1000.h>
#include "can_sja1000_priv.h"
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/transceiver.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(can_sja1000, CONFIG_CAN_LOG_LEVEL);
/* Timeout for entering/leaving reset mode */
#define CAN_SJA10... | /content/code_sandbox/drivers/can/can_sja1000.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,737 |
```c
/*
*
*/
/* Base driver compatible */
#define DT_DRV_COMPAT nxp_flexcan
/* CAN FD extension compatible */
#define FLEXCAN_FD_DRV_COMPAT nxp_flexcan_fd
#include <zephyr/kernel.h>
#include <zephyr/sys/atomic.h>
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/transceiver.h>
#include <zephyr/drivers/c... | /content/code_sandbox/drivers/can/can_mcux_flexcan.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 12,435 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/can_mcan.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
LOG_MODULE_REGISTER(can_tcan4x5x, CONFIG_CA... | /content/code_sandbox/drivers/can/can_tcan4x5x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,815 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/atomic.h>
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/transceiver.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/device.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
#include... | /content/code_sandbox/drivers/can/can_nxp_s32_canxl.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11,446 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/can_fake.h>
#include <zephyr/fff.h>
#include <zephyr/sys/util.h>
#ifdef CONFIG_ZTEST
#include <zephyr/ztest.h>
#endif /* CONFIG_ZTEST */
#define DT_DRV_COMPAT zephyr_fake_can
struct fake_can_config {
const struct... | /content/code_sandbox/drivers/can/can_fake.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,316 |
```c
/*
*
*/
#define DT_DRV_COMPAT renesas_rcar_can
#include <zephyr/kernel.h>
#include <errno.h>
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/transceiver.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/renesas_cpg_mssr.h>
#include <zephyr/drivers/pinctrl.h>
#incl... | /content/code_sandbox/drivers/can/can_rcar.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,709 |
```c
/*
*/
#define DT_DRV_COMPAT nordic_nrf_can
#include <stdint.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/can_mcan.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/pinctrl.h>
#include <... | /content/code_sandbox/drivers/can/can_nrf.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,830 |
```c
/*
*
*/
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/can_mcan.h>
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/__assert.h>
#include <soc.h>
#include <stm3... | /content/code_sandbox/drivers/can/can_stm32_fdcan.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,110 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_CAN_SJA1000_PRIV_H_
#define ZEPHYR_DRIVERS_CAN_SJA1000_PRIV_H_
#include <zephyr/sys/util.h>
/* SJA1000 register "CAN addresses", PeliCAN mode */
#define CAN_SJA1000_MOD (0U)
#define CAN_SJA1000_CMR (1U)
#define CAN_SJA1000_SR (2U)
#define CAN_SJA10... | /content/code_sandbox/drivers/can/can_sja1000_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,466 |
```unknown
# CAN configuration options
#
# CAN options
#
menuconfig CAN
bool "Controller Area Network (CAN) drivers"
help
Enable CAN Driver Configuration
if CAN
module = CAN
module-str = CAN
source "subsys/logging/Kconfig.template.log_config"
config CAN_INIT_PRIORITY
int "CAN driver init priority"
default 8... | /content/code_sandbox/drivers/can/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 882 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_numaker_canfd
#include <zephyr/drivers/reset.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/can_mcan.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/clock_control_numaker.h>
#include <... | /content/code_sandbox/drivers/can/can_numaker.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,593 |
```c
/*
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <zephyr/device.h>
#include <zephyr/drivers/can.h>
#include <zephyr/logging/log.h>
#include <zephyr/shell/shell.h>
LOG_MODULE_REGISTER(can_shell, CONFIG_CAN_LOG_LEVEL);
struct can_shell_tx_event {
unsigned int frame_no;
int error;
};
struct can_shell_... | /content/code_sandbox/drivers/can/can_shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,192 |
```unknown
# MCP25XXFD CAN configuration options
config CAN_MCP251XFD
bool "MCP25XXFD CAN Driver"
default y
depends on DT_HAS_MICROCHIP_MCP251XFD_ENABLED
select CRC
select SPI
help
Enable MCP25XXFD CAN Driver
if CAN_MCP251XFD
config CAN_MCP251XFD_MAX_TX_QUEUE
int "Maximum number of queued messages"
defau... | /content/code_sandbox/drivers/can/Kconfig.mcp251xfd | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 377 |
```c
/*
*
*/
#define DT_DRV_COMPAT kvaser_pcican
#include <zephyr/drivers/can/can_sja1000.h>
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/pcie/pcie.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
LOG_MODULE_REGISTER(can_kvaser_pci, CONFIG_CAN_LOG_LEVEL);
/* AMCC S5920 I/O BAR register... | /content/code_sandbox/drivers/can/can_kvaser_pci.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,821 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_mcp251xfd
#include "can_mcp251xfd.h"
#include <zephyr/device.h>
#include <zephyr/drivers/can/transceiver.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/crc.h>
#include <zephyr/logging/log.h... | /content/code_sandbox/drivers/can/can_mcp251xfd.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14,918 |
```unknown
# Infineon XMC4xxx CAN configuration options
config CAN_XMC4XXX
bool "Infineon XMC4xxx CAN Driver"
default y
depends on DT_HAS_INFINEON_XMC4XXX_CAN_NODE_ENABLED
help
Enable Infineon XMC4xxx CAN Driver
if CAN_XMC4XXX
config CAN_XMC4XXX_MAX_TX_QUEUE
int "Maximum number of queued messages"
default 8... | /content/code_sandbox/drivers/can/Kconfig.xmc4xxx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 285 |
```unknown
# SAM CAN configuration options
config CAN_SAM0
bool "Atmel SAM0 CAN driver"
default y
depends on DT_HAS_ATMEL_SAM0_CAN_ENABLED
select CAN_MCAN
``` | /content/code_sandbox/drivers/can/Kconfig.sam0 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 44 |
```unknown
# CAN transceiver configuration options
menu "CAN transceiver drivers"
config CAN_TRANSCEIVER_INIT_PRIORITY
int "CAN transceiver driver init priority"
default 45
help
CAN transceiver device driver initialization priority.
config CAN_TRANSCEIVER_GPIO
bool "GPIO controlled CAN transceiver"
default ... | /content/code_sandbox/drivers/can/transceiver/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 96 |
```c
/*
*
*/
#include <zephyr/drivers/can.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/check.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(can_common, CONFIG_CAN_LOG_LEVEL);
/* Maximum acceptable deviation in sample point location (permille) */
#define SAMPLE_POINT_MARGI... | /content/code_sandbox/drivers/can/can_common.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,751 |
```c
/*
*
*/
#define DT_DRV_COMPAT can_transceiver_gpio
#include <zephyr/device.h>
#include <zephyr/drivers/can/transceiver.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(can_transceiver_gpio, CONFIG_CAN_LOG_LEVEL);
/* Does any devicetree instance have an enable-gpios prop... | /content/code_sandbox/drivers/can/transceiver/can_transceiver_gpio.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,141 |
```unknown
config RESET_AST10X0
bool "ASPEED reset driver"
default y
depends on DT_HAS_ASPEED_AST10X0_RESET_ENABLED
help
This option enables the reset driver for ASPEED AST10X0 series SOC.
``` | /content/code_sandbox/drivers/reset/Kconfig.aspeed | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 52 |
```c
/*
*
*/
#define DT_DRV_COMPAT gd_gd32_rctl
#include <zephyr/arch/cpu.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/reset.h>
/** RCU offset (from id field) */
#define GD32_RESET_ID_OFFSET(id) (((id) >> 6U) & 0xFFU)
/** RCU configuration bit (from id field) */
#define GD3... | /content/code_sandbox/drivers/reset/reset_gd32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 493 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_npcx_rst
#include <zephyr/kernel.h>
#include <zephyr/drivers/reset.h>
#if defined(CONFIG_SOC_SERIES_NPCX7)
#include <zephyr/dt-bindings/reset/npcx7_reset.h>
#elif defined(CONFIG_SOC_SERIES_NPCX9)
#include <zephyr/dt-bindings/reset/npcx9_reset.h>
#elif defined(CONFIG_SOC_S... | /content/code_sandbox/drivers/reset/reset_npcx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 615 |
```c
/*
*
*/
#define DT_DRV_COMPAT raspberrypi_pico_reset
#include <limits.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/device.h>
#include <zephyr/drivers/reset.h>
struct reset_rpi_config {
DEVICE_MMIO_ROM;
uint8_t reg_width;
uint8_t active_low;
uintptr_t base_address;
};
static int reset_rpi_read_regist... | /content/code_sandbox/drivers/reset/reset_rpi_pico.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 993 |
```unknown
config RESET_STM32
bool "STM32 Reset Controller Driver"
default y
depends on DT_HAS_ST_STM32_RCC_RCTL_ENABLED
``` | /content/code_sandbox/drivers/reset/Kconfig.stm32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 33 |
```unknown
config RESET_INTEL_SOCFPGA
bool "Intel SoC FPGA Reset Controller driver"
default y
depends on DT_HAS_INTEL_SOCFPGA_RESET_ENABLED
help
Enable the Reset driver for Intel SoC FPGA device
``` | /content/code_sandbox/drivers/reset/Kconfig.intel_socfpga | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 50 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_rstctl
#include <zephyr/device.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/sys/util.h>
#include <fsl_device_registers.h>
#define NXP_RSTCTL_OFFSET(id) ((id >> 16) * sizeof(uint32_t))
#define NXP_RSTCTL_BIT(id) (BIT(id & 0xFFFF))
#define NXP_RSTCTL_CTL(id) (NXP_RSTC... | /content/code_sandbox/drivers/reset/reset_nxp_rstctl.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 649 |
```unknown
config RESET_NXP_RSTCTL
bool "NXP RSTCTL driver"
default y
depends on DT_HAS_NXP_RSTCTL_ENABLED
help
Enable the driver for the NXP RSTCTL,
a peripheral reset controller.
``` | /content/code_sandbox/drivers/reset/Kconfig.nxp_rstctl | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 52 |
```unknown
# Nuvoton NuMaker Reset Controller configuration options
config RESET_NUMAKER
bool "Nuvoton NuMaker reset controller driver"
default y
depends on DT_HAS_NUVOTON_NUMAKER_RST_ENABLED
help
This option enables the reset controller driver for Nuvoton NuMaker MCUs.
``` | /content/code_sandbox/drivers/reset/Kconfig.numaker | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```c
/*
*
*/
#define DT_DRV_COMPAT aspeed_ast10x0_reset
#include <errno.h>
#include <zephyr/dt-bindings/reset/ast10x0_reset.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/drivers/syscon.h>
#include <zephyr/sys/util.h>
/*
* RESET_CTRL0/1_ASSERT registers:
* - Each bit in these registers controls a reset ... | /content/code_sandbox/drivers/reset/reset_ast10x0.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 793 |
```unknown
config RESET_NXP_SYSCON
bool "NXP Syscon Reset controller driver"
default y
depends on DT_HAS_NXP_LPC_SYSCON_RESET_ENABLED
help
Enable the NXP syscon reset controller driver.
Syscon is found on LPC parts and LPC heritage parts.
``` | /content/code_sandbox/drivers/reset/Kconfig.lpc_syscon | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_rcc_rctl
#include <zephyr/arch/cpu.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/reset.h>
#define STM32_RESET_CLR_OFFSET(id) (((id) >> 17U) & 0xFFFU)
#define STM32_RESET_SET_OFFSET(id) (((id) >> 5U) & 0xFFFU)
#define STM32_RESET_RE... | /content/code_sandbox/drivers/reset/reset_stm32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 535 |
```unknown
config RESET_GD32
bool "GD32 Reset Controller Driver"
default y
depends on DT_HAS_GD_GD32_RCTL_ENABLED
``` | /content/code_sandbox/drivers/reset/Kconfig.gd32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 33 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_numaker_rst
#include <zephyr/arch/cpu.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/reset.h>
/* Reset controller module IPRST offset */
#define NUMAKER_RESET_IPRST0_OFFSET (8UL)
#define NUMAKER_RESET_IP_OFFSET(id) (NUMAKER_RESET_IPR... | /content/code_sandbox/drivers/reset/reset_numaker.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 513 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_lpc_syscon_reset
#include <zephyr/device.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/sys/util.h>
#include <fsl_device_registers.h>
#define LPC_RESET_OFFSET(id) (id >> 16)
#define LPC_RESET_BIT(id) (BIT(id & 0xFFFF))
static int reset_nxp_syscon_status(const struct ... | /content/code_sandbox/drivers/reset/reset_lpc_syscon.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 473 |
```unknown
# NPCX reset controller driver configuration options
config RESET_NPCX
bool "Nuvoton NPCX embedded controller (EC) reset controller driver"
default y
depends on DT_HAS_NUVOTON_NPCX_RST_ENABLED
help
This option enables the reset controller driver for Nuvoton NPCX MCUs.
``` | /content/code_sandbox/drivers/reset/Kconfig.npcx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```unknown
# Reset Controller driver configuration options
#
# Reset Controller options
#
menuconfig RESET
bool "Reset Controller drivers"
help
Reset Controller drivers. Reset node represents a region containing
information about reset controller device. The typical use-case is
for some other node's driver... | /content/code_sandbox/drivers/reset/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 234 |
```unknown
config RESET_RPI_PICO
bool "Raspberry Pi Reset Controller driver"
default y
depends on DT_HAS_RASPBERRYPI_PICO_RESET_ENABLED
``` | /content/code_sandbox/drivers/reset/Kconfig.rpi_pico | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 36 |
```c
/*
*
*/
#define DT_DRV_COMPAT intel_socfpga_reset
#include <zephyr/device.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/kernel.h>
/** regwidth 4 for 32 bit register */
#define RESET_REG_WIDTH 4
struct reset_intel_config {
DEVICE_MMIO_ROM;
/* check peripheral active low / active high */
bool active... | /content/code_sandbox/drivers/reset/reset_intel_socfpga.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 876 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_npcx_peci
#include <errno.h>
#include <soc.h>
#include <zephyr/device.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/peci.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_M... | /content/code_sandbox/drivers/peci/peci_npcx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,383 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_peci
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#ifdef CONFIG_SOC_SERIES_MEC172X
#include <zephyr/drivers/clock_control/mchp_xec_clock_control.h>
#include <zephyr/drivers/interrupt_controller/intc_mchp_xec_ecia.h>
#endif
#include <zephyr... | /content/code_sandbox/drivers/peci/peci_mchp_xec.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,583 |
```c
/*
*
*/
#include <zephyr/drivers/peci.h>
#include <zephyr/internal/syscall_handler.h>
static inline int z_vrfy_peci_config(const struct device *dev,
uint32_t bitrate)
{
K_OOPS(K_SYSCALL_DRIVER_PECI(dev, config));
return z_impl_peci_config(dev, bitrate);
}
#include <zephyr/syscalls/peci_config_mrsh... | /content/code_sandbox/drivers/peci/peci_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 299 |
```unknown
# ITE IT8XXX2 PECI configuration options
config PECI_ITE_IT8XXX2
bool "ITE IT8XXX2 PECI driver"
default y
depends on DT_HAS_ITE_IT8XXX2_PECI_ENABLED
select PECI_INTERRUPT_DRIVEN
help
Enable the ITE IT8XXX2 PECI IO driver.
``` | /content/code_sandbox/drivers/peci/Kconfig.it8xxx2 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 79 |
```unknown
# Microchip XEC PECI configuration options
config PECI_XEC
bool "XEC Microchip PECI driver"
default y
depends on DT_HAS_MICROCHIP_XEC_PECI_ENABLED
select PINCTRL
help
Enable the Microchip XEC PECI IO driver.
``` | /content/code_sandbox/drivers/peci/Kconfig.xec | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```unknown
# NPCX PECI driver configuration options
config PECI_NPCX
bool "NPCX PECI driver"
default y
depends on DT_HAS_NUVOTON_NPCX_PECI_ENABLED
select PECI_INTERRUPT_DRIVEN
help
Enable the NPCX PECI IO driver.
``` | /content/code_sandbox/drivers/peci/Kconfig.npcx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```c
/*
*
*/
#define DT_DRV_COMPAT ite_it8xxx2_peci
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/peci.h>
#include <zephyr/kernel.h>
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/drivers/peci.h>
#include <soc.h>
#include <soc_dt.h>
#include <zephyr/lo... | /content/code_sandbox/drivers/peci/peci_ite_it8xxx2.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,079 |
```unknown
# Hidden option to enable the vnd,serial dummy driver used in testing.
config SERIAL_TEST
def_bool DT_HAS_VND_SERIAL_ENABLED
depends on DT_HAS_VND_SERIAL_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select SERIAL_SUPPORT_ASYNC
select RING_BUFFER if (UART_INTERRUPT_DRIVEN || UART_AS... | /content/code_sandbox/drivers/serial/Kconfig.test | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 71 |
```unknown
# PECI configuration options
menuconfig PECI
bool "Platform Environment Control Interface (PECI) drivers"
help
Include PECI drivers in system config.
if PECI
source "drivers/peci/Kconfig.xec"
source "drivers/peci/Kconfig.it8xxx2"
source "drivers/peci/Kconfig.npcx"
module = PECI
module-str = peci
so... | /content/code_sandbox/drivers/peci/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 198 |
```c
/*
*
*/
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/clock_control/adi_max32_clock_control.h>
#include <wrap_max32_uart.h>
#define DT_DRV_COMPAT adi_max32_uart
LOG_MODULE_REGISTER(uart_max32, CONFIG_UA... | /content/code_sandbox/drivers/serial/uart_max32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,425 |
```c
/* uart_xlnx_ps.c - Xilinx Zynq family serial driver */
/*
*
*/
#define DT_DRV_COMPAT xlnx_xuartps
/**
* @brief Xilinx Zynq Family Serial Driver
*
* This is the driver for the Xilinx Zynq family cadence serial device.
*
* Before individual UART port can be used, uart_xlnx_ps_init() has to be
* called to... | /content/code_sandbox/drivers/serial/uart_xlnx_ps.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,228 |
```c
/*
*
*/
#define DT_DRV_COMPAT ene_kb1200_uart
#include <zephyr/kernel.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/pinctrl.h>
#include <reg/ser.h>
struct kb1200_uart_config {
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
void (*irq_cfg_func)(void);
#endif
struct serial_regs *ser;
const struct pinctrl... | /content/code_sandbox/drivers/serial/uart_ene_kb1200.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,858 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_kinetis_lpuart
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/irq.h>
#include <zephyr/kernel.h>
#include <zephyr/pm/policy.h>
#include <zephyr/drivers/pinctrl.h>
#ifdef CONFIG_UART_ASYNC... | /content/code_sandbox/drivers/serial/uart_mcux_lpuart.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11,299 |
```c
/*
*
*/
#define DT_DRV_COMPAT litex_uart
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/init.h>
#include <zephyr/irq.h>
#include <zephyr/device.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/types.h>
#include <soc.h>
#define UART_EV_TX BIT(0)
#define UART_EV_RX BIT(1)
struc... | /content/code_sandbox/drivers/serial/uart_litex.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,584 |
```c
/*
*/
#define DT_DRV_COMPAT cdns_uart
/**
* @brief Serial Driver for cadence UART IP6528
*/
#include "uart_cdns.h"
#define DEV_UART(dev) ((struct uart_cdns_regs *) \
((const struct uart_cdns_device_config *const)(dev)->config)->port)
/** Check if tx FIFO is full */
bool uart_cdns_is_tx_fifo_full(struct ... | /content/code_sandbox/drivers/serial/uart_cdns.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,374 |
```unknown
# MCUXpresso SDK UART
config UART_MCUX
bool "MCUX uart driver"
default y
depends on DT_HAS_NXP_KINETIS_UART_ENABLED
depends on CLOCK_CONTROL
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select PINCTRL
help
Enable the MCUX uart driver.
``` | /content/code_sandbox/drivers/serial/Kconfig.mcux | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```c
/*
*/
#define DT_DRV_COMPAT atmel_sam_usart
/** @file
* @brief USART driver for Atmel SAM MCU family.
*/
#include <errno.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <soc.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/pinctrl.h>
#include <zeph... | /content/code_sandbox/drivers/serial/usart_sam.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,257 |
```c
/*
*
*/
#define DT_DRV_COMPAT efinix_sapphire_uart0
#include <zephyr/device.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/types.h>
#define UART_IRQ DT_INST_IRQN(0)
#define UART0_BASE_ADDR DT_INST_REG_ADDR(0)
#define BSP_UART_DATA 0x00... | /content/code_sandbox/drivers/serial/uart_efinix_sapphire.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 714 |
```c
/*
*
*/
#define DT_DRV_COMPAT renesas_ra_sci_uart
#include <zephyr/kernel.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/irq.h>
#include <soc.h>
#include "r_sci_uart.h"
#include "r_dtc.h"
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(ra_sci_uart);
#define SCI_U... | /content/code_sandbox/drivers/serial/uart_renesas_ra_sci.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,241 |
```objective-c
/*
*
*/
/**
* @brief Driver for UART port on STM32 family processor.
*
*/
#ifndef ZEPHYR_DRIVERS_SERIAL_UART_STM32_H_
#define ZEPHYR_DRIVERS_SERIAL_UART_STM32_H_
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/drivers/uart.h>
#include <stm32_ll_usart.h>
#d... | /content/code_sandbox/drivers/serial/uart_stm32.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 678 |
```unknown
# LPC11U6X UART configuration
config UART_LPC11U6X
bool "LPC11U6X serial driver"
default y
depends on DT_HAS_NXP_LPC11U6X_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help
Enable UART driver for LPC11U6X series
``` | /content/code_sandbox/drivers/serial/Kconfig.lpc11u6x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 73 |
```c
/*
*
*/
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/pm/device.h>
#include "sedi_driver_uart.h"
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
static void uart_sedi_isr(void *arg);
static void uart_sedi_cb(struct device *port);
#endif
#define DT_DRV_COMPAT intel_sedi_ua... | /content/code_sandbox/drivers/serial/uart_sedi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,548 |
```unknown
config UART_MSP432P4XX
bool "MSP432P4XX UART driver"
default y
depends on DT_HAS_TI_MSP432P4XX_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help
This option enables the MSP432P4XX UART driver, for UART_0.
``` | /content/code_sandbox/drivers/serial/Kconfig.msp432p4xx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 70 |
```unknown
# LiteX UART configuration option
config UART_LITEX
bool "LiteX serial driver"
default y
depends on DT_HAS_LITEX_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help
This option enables LiteX UART serial driver.
``` | /content/code_sandbox/drivers/serial/Kconfig.litex | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```c
/*
*
*/
/**
* @brief Driver for Nordic Semiconductor nRF5X UART
*/
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/pm/device.h>
#include <zephyr/irq.h>
#include <soc.h>
#include <hal/nrf_uart.h>
/*
* Extract information from devicetree.
*
* This driver only supports ... | /content/code_sandbox/drivers/serial/uart_nrfx_uart.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,055 |
```unknown
# RV32M1 SDK LPUART
config UART_RV32M1_LPUART
bool "RV32M1 LPUART driver"
default y
depends on DT_HAS_OPENISA_RV32M1_LPUART_ENABLED
depends on CLOCK_CONTROL
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select PINCTRL
help
Enable the RV32M1 LPUART driver.
``` | /content/code_sandbox/drivers/serial/Kconfig.rv32m1_lpuart | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 87 |
```c
/*
*/
#define DT_DRV_COMPAT cypress_psoc6_uart
/** @file
* @brief UART driver for Cypress PSoC6 MCU family.
*
* Note:
* - Error handling is not implemented.
* - The driver works only in polling mode, interrupt mode is not implemented.
*/
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/pinctrl.h>... | /content/code_sandbox/drivers/serial/uart_psoc6.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,941 |
```c
/*
*
*/
#include <zephyr/drivers/uart.h>
#include <zephyr/kernel.h>
#include <string.h>
#define DT_DRV_COMPAT snps_hostlink_uart
/* Only supported by HW and nSIM targets */
BUILD_ASSERT(!IS_ENABLED(CONFIG_QEMU_TARGET));
/* Only supported by ARC targets */
BUILD_ASSERT(IS_ENABLED(CONFIG_ARC));
#define HL_SYSC... | /content/code_sandbox/drivers/serial/uart_hostlink.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,004 |
```unknown
# Cypress SCB[UART] configuration
config UART_PSOC6
bool "PSoC-6 MCU SCB serial driver"
default y
depends on DT_HAS_CYPRESS_PSOC6_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select USE_INFINEON_UART
select PINCTRL
help
This option enables the SCB[UART] driver for PSoC-6... | /content/code_sandbox/drivers/serial/Kconfig.psoc6 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 90 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.