/Zephyr-Core-3.5.0/dts/bindings/can/ |
D | microchip,mcp251xfd.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Microchip MCP251XFD SPI CAN-FD controller 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>; 22 bus-speed = <125000>; 23 sample-point = <875>; 24 bus-speed-data = <1000000>; 25 sample-point-data = <875>; [all …]
|
/Zephyr-Core-3.5.0/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-Core-3.5.0/drivers/can/ |
D | can_mcux_flexcan.c | 4 * SPDX-License-Identifier: Apache-2.0 10 /* CAN-FD extension compatible */ 41 #error You must either set a sampling-point or timings (phase-seg* and prop-seg) 64 #define MCUX_FLEXCAN_MAX_TX (MCUX_FLEXCAN_MAX_MB - MCUX_FLEXCAN_MAX_RX) 77 #define TX_MBIDX_TO_ALLOC_IDX(x) (x - MCUX_FLEXCAN_MAX_RX) 160 const struct mcux_flexcan_config *config = dev->config; in mcux_flexcan_get_core_clock() 162 return clock_control_get_rate(config->clock_dev, config->clock_subsys, rate); in mcux_flexcan_get_core_clock() 174 const struct mcux_flexcan_config *config = dev->config; in mcux_flexcan_get_max_bitrate() 176 *max_bitrate = config->max_bitrate; in mcux_flexcan_get_max_bitrate() 184 struct mcux_flexcan_data *data = dev->data; in mcux_flexcan_set_timing() [all …]
|
D | can_shell.c | 5 * SPDX-License-Identifier: Apache-2.0 33 CAN_SHELL_MODE_MAPPING("listen-only", CAN_MODE_LISTENONLY), 36 CAN_SHELL_MODE_MAPPING("one-shot", CAN_MODE_ONE_SHOT), 37 CAN_SHELL_MODE_MAPPING("triple-sampling", CAN_MODE_3_SAMPLES), 65 uint8_t nbytes = can_dlc_to_bytes(frame->dlc); in can_shell_print_frame() 69 /* Timestamp */ in can_shell_print_frame() 70 shell_fprintf(sh, SHELL_NORMAL, "(%05d) ", frame->timestamp); in can_shell_print_frame() 76 (frame->flags & CAN_FRAME_BRS) == 0 ? '-' : 'B', in can_shell_print_frame() 77 (frame->flags & CAN_FRAME_ESI) == 0 ? '-' : 'P'); in can_shell_print_frame() 82 (frame->flags & CAN_FRAME_IDE) != 0 ? 0 : 5, "", 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 35 if ((src->flags & CAN_FRAME_IDE) != 0) { in mcp251xfd_canframe_to_txobj() 36 dst->id = FIELD_PREP(MCP251XFD_OBJ_ID_SID_MASK, src->id >> 18); in mcp251xfd_canframe_to_txobj() 37 dst->id |= FIELD_PREP(MCP251XFD_OBJ_ID_EID_MASK, src->id); in mcp251xfd_canframe_to_txobj() 39 dst->flags |= MCP251XFD_OBJ_FLAGS_IDE; in mcp251xfd_canframe_to_txobj() 41 dst->id = FIELD_PREP(MCP251XFD_OBJ_ID_SID_MASK, src->id); in mcp251xfd_canframe_to_txobj() 44 if ((src->flags & CAN_FRAME_BRS) != 0) { in mcp251xfd_canframe_to_txobj() 45 dst->flags |= MCP251XFD_OBJ_FLAGS_BRS; in mcp251xfd_canframe_to_txobj() 48 dst->flags |= FIELD_PREP(MCP251XFD_OBJ_FLAGS_DLC_MASK, src->dlc); in mcp251xfd_canframe_to_txobj() 50 if ((src->flags & CAN_FRAME_FDF) != 0) { in mcp251xfd_canframe_to_txobj() [all …]
|
D | can_nxp_s32_canxl.c | 2 * Copyright 2022-2023 NXP 4 * SPDX-License-Identifier: Apache-2.0 26 #define RX_MBIDX_TO_ALLOC_IDX(x) (x - CONFIG_CAN_NXP_S32_MAX_TX) 49 #error You must either set a sampling-point or timings (phase-seg* and prop-seg) 61 #error You must either set a sampling-point-data or timings (phase-seg-data* and prop-seg-data) 145 const struct can_nxp_s32_config *config = dev->config; in can_nxp_s32_start() 146 struct can_nxp_s32_data *data = dev->data; in can_nxp_s32_start() 149 if (data->started) { in can_nxp_s32_start() 150 return -EALREADY; in can_nxp_s32_start() 153 if (config->phy != NULL) { in can_nxp_s32_start() [all …]
|
D | can_stm32_bxcan.c | 5 * SPDX-License-Identifier: Apache-2.0 42 #error You must either set a sampling-point or timings (phase-seg* and prop-seg) 108 can_tx_callback_t callback = mb->tx_callback; in can_stm32_signal_tx_complete() 111 callback(dev, status, mb->callback_arg); in can_stm32_signal_tx_complete() 112 mb->tx_callback = NULL; in can_stm32_signal_tx_complete() 120 if (mbox->RIR & CAN_RI0R_IDE) { in can_stm32_rx_fifo_pop() 121 frame->id = mbox->RIR >> CAN_RI0R_EXID_Pos; in can_stm32_rx_fifo_pop() 122 frame->flags |= CAN_FRAME_IDE; in can_stm32_rx_fifo_pop() 124 frame->id = mbox->RIR >> CAN_RI0R_STID_Pos; in can_stm32_rx_fifo_pop() 127 if ((mbox->RIR & CAN_RI0R_RTR) != 0) { in can_stm32_rx_fifo_pop() [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_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-Core-3.5.0/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. Since the watchdog counter is 8-bits, maximum 70 /* t0 timer wake-up input source configuration */ [all …]
|
/Zephyr-Core-3.5.0/drivers/counter/ |
D | counter_ll_stm32_rtc.c | 6 * SPDX-License-Identifier: Apache-2.0 35 /* Seconds from 1970-01-01T00:00:00 to 2000-01-01T00:00:00 */ 80 #define RTC_ASYNCPRE (RTCCLK_FREQ - 1) 83 /* Adjust the second sync prescaler to get 1Hz on ck_spre */ 84 #define RTC_SYNCPRE ((RTCCLK_FREQ / (1 + RTC_ASYNCPRE)) - 1) 237 /* Convert calendar datetime to UNIX timestamp */ in rtc_stm32_read() 242 /* tm_mon allowed values are 0-11 */ in rtc_stm32_read() 243 now.tm_mon = __LL_RTC_CONVERT_BCD2BIN(__LL_RTC_GET_MONTH(rtc_date)) - 1; in rtc_stm32_read() 253 ts -= T_TIME_OFFSET; in rtc_stm32_read() 260 * down starting from the sync prescaler value. Add already counted in rtc_stm32_read() [all …]
|
/Zephyr-Core-3.5.0/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-Core-3.5.0/include/zephyr/drivers/ |
D | can.h | 6 * SPDX-License-Identifier: Apache-2.0 38 * @brief Bit mask for a standard (11-bit) CAN identifier. 42 * @brief Maximum value for a standard (11-bit) CAN identifier. 46 * @brief Bit mask for an extended (29-bit) CAN identifier. 50 * @brief Maximum value for an extended (29-bit) CAN identifier. 58 * @brief Maximum data length code for CAN-FD. 92 /** Controller allows transmitting/receiving CAN-FD frames. */ 117 /** Error-active state (RX/TX error count < 96). */ 119 /** Error-warning state (RX/TX error count < 128). */ 121 /** Error-passive state (RX/TX error count < 256). */ [all …]
|
/Zephyr-Core-3.5.0/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 …]
|