/Zephyr-latest/dts/bindings/can/ |
D | microchip,mcp251xfd.yaml | 2 # SPDX-License-Identifier: Apache-2.0 11 cs-gpios = <&mikrobus_header 2 GPIO_ACTIVE_LOW>; 17 spi-max-frequency = <18000000>; 18 int-gpios = <&mikrobus_header 7 GPIO_ACTIVE_LOW>; 20 osc-freq = <40000000>; 27 include: [spi-device.yaml, can-fd-controller.yaml] 30 osc-freq: 35 int-gpios: 36 type: phandle-array 39 The interrupt signal from the controller is active low in push-pull mode. [all …]
|
/Zephyr-latest/subsys/logging/backends/ |
D | log_backend_swo.c | 4 * SPDX-License-Identifier: Apache-2.0 13 * An SWO viewer program will typically set-up the SWO port including its 16 * re-configure the SWO port upon boot and set the frequency as specified by 21 * as defined by the clock-frequency property in the CPU node. This may require 40 /* Set TPIU prescaler for the current debug trace clock frequency. */ 54 #error CONFIG_LOG_BACKEND_SWO_FREQ_HZ is too low. SWO clock divider is 16-bit. \ 84 log_output_func(&log_output_swo, &msg->log, flags); in log_backend_swo_process() 96 CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; in log_backend_swo_init() 98 ITM->LAR = 0xC5ACCE55; in log_backend_swo_init() 99 /* Disable stimulus ports ITM_STIM0-ITM_STIM31 */ in log_backend_swo_init() [all …]
|
/Zephyr-latest/doc/hardware/peripherals/can/ |
D | shell.rst | 38 For example, building the :zephyr:code-sample:`hello_world` sample for the :zephyr:board:`frdm_k64f… 41 .. zephyr-app-commands:: 42 :zephyr-app: samples/hello_world 44 …:gen-args: -DCONFIG_SHELL=y -DCONFIG_CAN=y -DCONFIG_CAN_SHELL=y -DCONFIG_STATS=y -DCONFIG_CAN_STAT… 48 interact with the shell. The CAN shell comes with built-in help (unless 49 :kconfig:option:`CONFIG_SHELL_HELP` is disabled). The built-in help messages can be printed by 50 passing ``-h`` or ``--help`` to the ``can`` command or any of its subcommands. All subcommands also 51 support tab-completion of their arguments. 55 also supports tab-completion. A list of all devices available can be obtained using the ``device 67 .. code-block:: console [all …]
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_npcx.c | 4 * SPDX-License-Identifier: Apache-2.0 18 * +---------------------+ +-----------------+ 19 * LFCLK --->| T0 Prescale Counter |-+->| 16-Bit T0 Timer |--------> T0 Timer 21 * +---------------------+ | +-----------------+ 22 * +---------------------------------+ 24 * | +-------------------+ +-----------------+ 25 * +--->| Watchdog Prescale |--->| 8-Bit Watchdog |-----> Watchdog Event/Reset 27 * +-------------------+ +-----------------+ 49 * Maximum watchdog window time. Keep the timer and watchdog clock prescaler 50 * (TWCP) to 0x5. Since the watchdog counter is 8-bits, maximum time supported [all …]
|
/Zephyr-latest/drivers/can/ |
D | can_mcux_flexcan.c | 4 * SPDX-License-Identifier: Apache-2.0 47 #define MCUX_FLEXCAN_MAX_TX (MCUX_FLEXCAN_MAX_MB - MCUX_FLEXCAN_MAX_RX) 60 #define TX_MBIDX_TO_ALLOC_IDX(x) (x - MCUX_FLEXCAN_MAX_RX) 124 const struct mcux_flexcan_config *config = dev->config; in mcux_flexcan_get_core_clock() 126 return clock_control_get_rate(config->clock_dev, config->clock_subsys, rate); in mcux_flexcan_get_core_clock() 139 struct mcux_flexcan_data *data = dev->data; in mcux_flexcan_set_timing() 142 return -EINVAL; in mcux_flexcan_set_timing() 145 if (data->common.started) { in mcux_flexcan_set_timing() 146 return -EBUSY; in mcux_flexcan_set_timing() 149 data->timing = *timing; in mcux_flexcan_set_timing() [all …]
|
D | can_shell.c | 5 * SPDX-License-Identifier: Apache-2.0 36 /* zephyr-keep-sorted-start */ 38 CAN_SHELL_MODE_MAPPING("listen-only", CAN_MODE_LISTENONLY), 40 CAN_SHELL_MODE_MAPPING("manual-recovery", CAN_MODE_MANUAL_RECOVERY), 42 CAN_SHELL_MODE_MAPPING("one-shot", CAN_MODE_ONE_SHOT), 43 CAN_SHELL_MODE_MAPPING("triple-sampling", CAN_MODE_3_SAMPLES), 44 /* zephyr-keep-sorted-stop */ 88 uint8_t nbytes = can_dlc_to_bytes(frame->dlc); in can_shell_print_frame() 97 /* Timestamp */ in can_shell_print_frame() 98 shell_fprintf_normal(sh, "(%05d) ", frame->timestamp); in can_shell_print_frame() [all …]
|
D | can_rcar.c | 4 * SPDX-License-Identifier: Apache-2.0 24 #define RCAR_CAN_CTLR_BOM (3 << 11) /* Bus-Off Recovery Mode Bits */ 25 #define RCAR_CAN_CTLR_BOM_ENT BIT(11) /* Automatic halt mode entry at bus-off entry */ 136 #define RCAR_CAN_EIFR_BORIF BIT(4) /* Bus-Off Recovery Detect Flag */ 137 #define RCAR_CAN_EIFR_BOEIF BIT(3) /* Bus-Off Entry Detect Flag */ 148 * mailbox 60 - 63 - Rx FIFO mailboxes 149 * mailbox 56 - 59 - Tx FIFO mailboxes 150 * non-FIFO mailboxes are not used 157 #define RCAR_CAN_MB_TSH_OFFSET 0x14 /* Timestamp upper byte */ 158 #define RCAR_CAN_MB_TSL_OFFSET 0x15 /* Timestamp lower byte */ [all …]
|
D | can_mcp251xfd.c | 5 * SPDX-License-Identifier: Apache-2.0 27 if ((src->flags & CAN_FRAME_IDE) != 0) { in mcp251xfd_canframe_to_txobj() 28 dst->id = FIELD_PREP(MCP251XFD_OBJ_ID_SID_MASK, src->id >> 18); in mcp251xfd_canframe_to_txobj() 29 dst->id |= FIELD_PREP(MCP251XFD_OBJ_ID_EID_MASK, src->id); in mcp251xfd_canframe_to_txobj() 31 dst->flags |= MCP251XFD_OBJ_FLAGS_IDE; in mcp251xfd_canframe_to_txobj() 33 dst->id = FIELD_PREP(MCP251XFD_OBJ_ID_SID_MASK, src->id); in mcp251xfd_canframe_to_txobj() 36 if ((src->flags & CAN_FRAME_BRS) != 0) { in mcp251xfd_canframe_to_txobj() 37 dst->flags |= MCP251XFD_OBJ_FLAGS_BRS; in mcp251xfd_canframe_to_txobj() 40 dst->flags |= FIELD_PREP(MCP251XFD_OBJ_FLAGS_DLC_MASK, src->dlc); in mcp251xfd_canframe_to_txobj() 42 if ((src->flags & CAN_FRAME_FDF) != 0) { in mcp251xfd_canframe_to_txobj() [all …]
|
D | can_nxp_s32_canxl.c | 2 * Copyright 2022-2024 NXP 4 * SPDX-License-Identifier: Apache-2.0 30 #define RX_MBIDX_TO_ALLOC_IDX(x) (x - CONFIG_CAN_NXP_S32_MAX_TX) 152 const struct can_nxp_s32_config *config = dev->config; in can_nxp_s32_config_rx_fifo_filter() 153 struct can_nxp_s32_data *data = dev->data; in can_nxp_s32_config_rx_fifo_filter() 156 (void)config->base_rx_fifo_ctrl->RXFSYSLOCK; in can_nxp_s32_config_rx_fifo_filter() 158 CanXL_ConfigIDFilter(config->base_rx_fifo, in can_nxp_s32_config_rx_fifo_filter() 159 &data->rx_fifo_filter[filter_id], filter_id); in can_nxp_s32_config_rx_fifo_filter() 161 if ((config->base_rx_fifo_ctrl->RXFCSTA & CANXL_RXFIFO_CONTROL_RXFCSTA_SYSLOCK_MASK) in can_nxp_s32_config_rx_fifo_filter() 164 config->base_rx_fifo_ctrl->RXFSYSLOCK = in can_nxp_s32_config_rx_fifo_filter() [all …]
|
D | can_mcan.c | 2 * Copyright (c) 2022-2023 Vestas Wind Systems A/S 5 * SPDX-License-Identifier: Apache-2.0 22 const struct can_mcan_config *config = dev->config; in can_mcan_read_reg() 25 err = config->ops->read_reg(dev, reg, val); in can_mcan_read_reg() 35 const struct can_mcan_config *config = dev->config; in can_mcan_write_reg() 38 err = config->ops->write_reg(dev, reg, val); in can_mcan_write_reg() 48 struct can_mcan_data *data = dev->data; in can_mcan_exit_sleep_mode() 53 k_mutex_lock(&data->lock, K_FOREVER); in can_mcan_exit_sleep_mode() 75 if (k_cycle_get_32() - start_time > k_ms_to_cyc_ceil32(CAN_INIT_TIMEOUT_MS)) { in can_mcan_exit_sleep_mode() 82 err = -EAGAIN; in can_mcan_exit_sleep_mode() [all …]
|
D | can_stm32_bxcan.c | 5 * SPDX-License-Identifier: Apache-2.0 82 can_tx_callback_t callback = mb->tx_callback; in can_stm32_signal_tx_complete() 85 callback(dev, status, mb->callback_arg); in can_stm32_signal_tx_complete() 86 mb->tx_callback = NULL; in can_stm32_signal_tx_complete() 94 if (mbox->RIR & CAN_RI0R_IDE) { in can_stm32_rx_fifo_pop() 95 frame->id = mbox->RIR >> CAN_RI0R_EXID_Pos; in can_stm32_rx_fifo_pop() 96 frame->flags |= CAN_FRAME_IDE; in can_stm32_rx_fifo_pop() 98 frame->id = mbox->RIR >> CAN_RI0R_STID_Pos; in can_stm32_rx_fifo_pop() 101 if ((mbox->RIR & CAN_RI0R_RTR) != 0) { in can_stm32_rx_fifo_pop() 102 frame->flags |= CAN_FRAME_RTR; in can_stm32_rx_fifo_pop() [all …]
|
D | can_tcan4x5x.c | 4 * SPDX-License-Identifier: Apache-2.0 21 * The register definitions correspond to those found in the TI TCAN4550-Q1 datasheet, revision D 103 /* Timestamp Prescaler register */ 241 const struct can_mcan_config *mcan_config = dev->config; in tcan4x5x_read() 242 const struct tcan4x5x_config *tcan_config = mcan_config->custom; in tcan4x5x_read() 271 /* Maximum transfer size is 256 32-bit words */ in tcan4x5x_read() 275 err = spi_transceive_dt(&tcan_config->spi, &tx, &rx); in tcan4x5x_read() 292 const struct can_mcan_config *mcan_config = dev->config; in tcan4x5x_write() 293 const struct tcan4x5x_config *tcan_config = mcan_config->custom; in tcan4x5x_write() 321 /* Maximum transfer size is 256 32-bit words */ in tcan4x5x_write() [all …]
|
/Zephyr-latest/drivers/counter/ |
D | counter_ll_stm32_rtc.c | 6 * SPDX-License-Identifier: Apache-2.0 36 /* Seconds from 1970-01-01T00:00:00 to 2000-01-01T00:00:00 */ 81 #define RTC_ASYNCPRE (RTCCLK_FREQ - 1) 84 /* Adjust the second sync prescaler to get 1Hz on ck_spre */ 85 #define RTC_SYNCPRE ((RTCCLK_FREQ / (1 + RTC_ASYNCPRE)) - 1) 190 const struct rtc_stm32_config *cfg = dev->config; in rtc_stm32_start() 193 if (clock_control_on(clk, (clock_control_subsys_t) &cfg->pclken[0]) != 0) { in rtc_stm32_start() 195 return -EIO; in rtc_stm32_start() 213 const struct rtc_stm32_config *cfg = dev->config; in rtc_stm32_stop() 216 if (clock_control_off(clk, (clock_control_subsys_t) &cfg->pclken[0]) != 0) { in rtc_stm32_stop() [all …]
|
/Zephyr-latest/include/zephyr/drivers/can/ |
D | can_mcan.h | 5 * SPDX-License-Identifier: Apache-2.0 41 /* Data Bit Timing & Prescaler register */ 83 /* Nominal Bit Timing & Prescaler register */ 90 /* Timestamp Counter Configuration register */ 95 /* Timestamp Counter Value register */ 399 * @name Indexes for the cells in the devicetree bosch,mram-cfg property 402 * These match the description of the cells in the bosch,m_can-base devicetree binding. 408 /** std-filter-elements cell index */ 410 /** ext-filter-elements cell index */ 412 /** rx-fifo0-elements cell index */ [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | can.h | 6 * SPDX-License-Identifier: Apache-2.0 45 * @brief Bit mask for a standard (11-bit) CAN identifier. 50 * @brief Bit mask for an extended (29-bit) CAN identifier. 103 /** Controller requires manual recovery after entering bus-off state */ 122 /** Error-active state (RX/TX error count < 96). */ 124 /** Error-warning state (RX/TX error count < 128). */ 126 /** Error-passive state (RX/TX error count < 256). */ 128 /** Bus-off state (RX/TX error count >= 256). */ 141 /** Frame uses extended (29-bit) CAN ID */ 153 /** CAN FD Error State Indicator (ESI). Indicates that the transmitting node is in error-passive [all …]
|
/Zephyr-latest/doc/releases/ |
D | release-notes-3.5.rst | 38 * CVE-2023-3725 `Zephyr project bug tracker GHSA-2g3m-p6c7-8rr3 39 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-2g3m-p6c7-8rr3>`_ 41 * CVE-2023-4257 `Zephyr project bug tracker GHSA-853q-q69w-gf5j 42 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-853q-q69w-gf5j>`_ 44 * CVE-2023-4258 `Zephyr project bug tracker GHSA-m34c-cp63-rwh7 45 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-m34c-cp63-rwh7>`_ 47 * CVE-2023-4259 `Zephyr project bug tracker GHSA-gghm-c696-f4j4 48 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gghm-c696-f4j4>`_ 50 * CVE-2023-4260 `Zephyr project bug tracker GHSA-gj27-862r-55wh 51 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gj27-862r-55wh>`_ [all …]
|
D | release-notes-2.2.rst | 18 * Fix CVE-2020-10028 19 * Fix CVE-2020-10060 20 * Fix CVE-2020-10063 21 * Fix CVE-2020-10066 32 * :github:`23494` - Bluetooth: LL/PAC/SLA/BV-01-C fails if Slave-initiated Feature Exchange is disa… 33 * :github:`23485` - BT: host: Service Change indication sent regardless of whether it is needed or … 34 * :github:`23482` - 2M PHY + DLE and timing calculations on an encrypted link are wrong 35 * :github:`23070` - Bluetooth: controller: Fix ticker implementation to avoid catch up 36 * :github:`22967` - Bluetooth: controller: ASSERTION FAIL on invalid packet sequence 37 * :github:`24183` - [v2.2] Bluetooth: controller: split: Regression slave latency during connection… [all …]
|
D | release-notes-3.1.rst | 61 * Split CAN classic and CAN-FD APIs: 90 was moved from Kconfig to :ref:`devicetree <dt-guide>`. 91 See the :dtcompatible:`st,stm32f1-pinctrl` devicetree binding for more information. 182 * MIPI-DSI 184 * Added a :ref:`MIPI-DSI api <mipi_dsi_api>`. This is an experimental API, 196 * Added support for enabling/disabling CAN-FD mode at runtime using :c:macro:`CAN_MODE_FD`. 220 * Added support for Provisioners over PB-GATT 231 * Implemented ISO-AL TX unframed fragmentation 232 * Added support for back-to-back receiving of PDUs on nRF5x platforms 249 newly created informational-only callback struct :c:struct:`bt_conn_auth_info_cb`. [all …]
|
D | release-notes-3.2.rst | 13 * Added support for :ref:`bin-blobs` (also see :ref:`west-blobs`). 15 * Converted all supported boards from ``pinmux`` to :ref:`pinctrl-guide`. 31 * CVE-2022-2993: Under embargo until 2022-11-03 33 * CVE-2022-2741: Under embargo until 2022-10-14 56 This definition can be used by third-party code to compile code conditional 58 Therefore, any third-party code integrated using the Zephyr build system will 91 changed from ``-ENETDOWN`` to ``-ENETUNREACH``. A return value of ``-ENETDOWN`` now indicates 129 * Removed support for configuring the CAN-FD maximum DLC value via Kconfig 156 valid for specific bindings to specify like :dtcompatible:`gpio-leds` and 157 :dtcompatible:`fixed-partitions`. [all …]
|
D | release-notes-2.3.rst | 18 with future support for features like 64-bit and absolute timeouts in mind 21 * Zephyr now integrates with the TF-M (Trusted Firmware M) PSA-compliant 24 * The CMSIS-DSP library is now included and integrated 33 * CVE-2020-10022: UpdateHub Module Copies a Variable-Sized Hash String 34 into a fixed-size array. 35 * CVE-2020-10059: UpdateHub Module Explicitly Disables TLS 37 * CVE-2020-10061: Improper handling of the full-buffer case in the 39 * CVE-2020-10062: Packet length decoding error in MQTT 40 * CVE-2020-10063: Remote Denial of Service in CoAP Option Parsing Due 42 * CVE-2020-10068: In the Zephyr project Bluetooth subsystem, certain [all …]
|
D | release-notes-3.0.rst | 22 * CVE-2021-3835: `Zephyr project bug tracker GHSA-fm6v-8625-99jf 23 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-fm6v-8625-99jf>`_ 25 * CVE-2021-3861: `Zephyr project bug tracker GHSA-hvfp-w4h8-gxvj 26 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-hvfp-w4h8-gxvj>`_ 28 * CVE-2021-3966: `Zephyr project bug tracker GHSA-hfxq-3w6x-fv2m 29 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-hfxq-3w6x-fv2m>`_ 36 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_. 53 * Added ``ranges`` and ``dma-ranges`` as invalid property to be used with DT_PROP_LEN() 58 CRC-16-ANSI checksum. A new function, :c:func:`crc16_reflect`, has been 69 * The following Kconfig options related to radio front-end modules (FEMs) were [all …]
|