/Zephyr-latest/tests/drivers/can/timing/src/ |
D | main.c | 75 static void assert_bitrate_correct(const struct device *dev, struct can_timing *timing, in assert_bitrate_correct() argument 78 const uint32_t ts = 1 + timing->prop_seg + timing->phase_seg1 + timing->phase_seg2; in assert_bitrate_correct() 83 zassert_not_equal(timing->prescaler, 0, "prescaler is zero"); in assert_bitrate_correct() 88 bitrate_calc = core_clock / timing->prescaler / ts; in assert_bitrate_correct() 101 static void assert_timing_within_bounds(struct can_timing *timing, in assert_timing_within_bounds() argument 105 zassert_true(timing->sjw <= max->sjw, "sjw exceeds max"); in assert_timing_within_bounds() 106 zassert_true(timing->prop_seg <= max->prop_seg, "prop_seg exceeds max"); in assert_timing_within_bounds() 107 zassert_true(timing->phase_seg1 <= max->phase_seg1, "phase_seg1 exceeds max"); in assert_timing_within_bounds() 108 zassert_true(timing->phase_seg2 <= max->phase_seg2, "phase_seg2 exceeds max"); in assert_timing_within_bounds() 109 zassert_true(timing->prescaler <= max->prescaler, "prescaler exceeds max"); in assert_timing_within_bounds() [all …]
|
/Zephyr-latest/drivers/w1/ |
D | w1_zephyr_gpio.c | 104 const struct w1_gpio_timing *timing; member 141 const struct w1_gpio_timing *timing = data->timing; in w1_gpio_reset_bus() local 146 W1_GPIO_WAIT_US(timing->g); in w1_gpio_reset_bus() 152 W1_GPIO_WAIT_US(timing->h); in w1_gpio_reset_bus() 158 W1_GPIO_WAIT_US(timing->i); in w1_gpio_reset_bus() 165 W1_GPIO_WAIT_US(timing->j); in w1_gpio_reset_bus() 177 const struct w1_gpio_timing *timing = data->timing; in w1_gpio_read_bit() local 187 W1_GPIO_WAIT_US(timing->a); in w1_gpio_read_bit() 193 W1_GPIO_WAIT_US(timing->e); in w1_gpio_read_bit() 200 W1_GPIO_WAIT_US(timing->f); in w1_gpio_read_bit() [all …]
|
/Zephyr-latest/doc/kernel/timing_functions/ |
D | index.rst | 6 The timing functions can be used to obtain execution time of 9 Please note that the timing functions may use a different timer 16 To allow using the timing functions, :kconfig:option:`CONFIG_TIMING_FUNCTIONS` 22 To gather timing information: 27 timing information. This usually starts the timer. 41 7. Repeat from step 3 to gather timing information for other 45 timing information. This usually stops the timer. 50 This shows an example on how to use the timing functions: 54 #include <zephyr/timing/timing.h>
|
/Zephyr-latest/subsys/timing/ |
D | Kconfig | 8 When enabled, timing related functions are compiled. This is 9 useful for gathering timing on code execution. 15 Hidden option to indicate that timing functions need to be 19 to use timing functions.
|
D | CMakeLists.txt | 6 zephyr_library_sources(timing.c)
|
/Zephyr-latest/drivers/can/ |
D | can_shell.c | 438 struct can_timing timing = { 0 }; in cmd_can_bitrate_set() local 462 err = can_calc_timing(dev, &timing, bitrate, sample_pnt); in cmd_can_bitrate_set() 472 timing.sjw = (uint16_t)strtoul(argv[4], &endptr, 10); in cmd_can_bitrate_set() 482 timing.sjw); in cmd_can_bitrate_set() 485 timing.sjw, timing.prop_seg, timing.phase_seg1, timing.phase_seg2, in cmd_can_bitrate_set() 486 timing.prescaler); in cmd_can_bitrate_set() 488 err = can_set_timing(dev, &timing); in cmd_can_bitrate_set() 509 struct can_timing timing = { 0 }; in cmd_can_dbitrate_set() local 533 err = can_calc_timing_data(dev, &timing, bitrate, sample_pnt); in cmd_can_dbitrate_set() 543 timing.sjw = (uint16_t)strtoul(argv[4], &endptr, 10); in cmd_can_dbitrate_set() [all …]
|
D | can_common.c | 346 static int check_timing_in_range(const struct can_timing *timing, in check_timing_in_range() argument 350 if (!IN_RANGE(timing->sjw, min->sjw, max->sjw) || in check_timing_in_range() 351 !IN_RANGE(timing->prop_seg, min->prop_seg, max->prop_seg) || in check_timing_in_range() 352 !IN_RANGE(timing->phase_seg1, min->phase_seg1, max->phase_seg1) || in check_timing_in_range() 353 !IN_RANGE(timing->phase_seg2, min->phase_seg2, max->phase_seg2) || in check_timing_in_range() 354 !IN_RANGE(timing->prescaler, min->prescaler, max->prescaler)) { in check_timing_in_range() 358 if ((timing->sjw > timing->phase_seg1) || (timing->sjw > timing->phase_seg2)) { in check_timing_in_range() 366 const struct can_timing *timing) in z_impl_can_set_timing() argument 373 err = check_timing_in_range(timing, min, max); in z_impl_can_set_timing() 378 return api->set_timing(dev, timing); in z_impl_can_set_timing() [all …]
|
D | can_mcux_flexcan.c | 116 struct can_timing timing; member 137 const struct can_timing *timing) in mcux_flexcan_set_timing() argument 141 if (!timing) { in mcux_flexcan_set_timing() 149 data->timing = *timing; in mcux_flexcan_set_timing() 249 flexcan_timing_config_t timing; in mcux_flexcan_start() local 293 timing.preDivider = data->timing.prescaler - 1U; in mcux_flexcan_start() 294 timing.rJumpwidth = data->timing.sjw - 1U; in mcux_flexcan_start() 295 timing.phaseSeg1 = data->timing.phase_seg1 - 1U; in mcux_flexcan_start() 296 timing.phaseSeg2 = data->timing.phase_seg2 - 1U; in mcux_flexcan_start() 297 timing.propSeg = data->timing.prop_seg - 1U; in mcux_flexcan_start() [all …]
|
D | can_esp32_twai.c | 118 static int can_esp32_twai_set_timing(const struct device *dev, const struct can_timing *timing) in can_esp32_twai_set_timing() argument 130 btr0 = TWAI_BAUD_PRESC_PREP(timing->prescaler - 1) | in can_esp32_twai_set_timing() 131 TWAI_SYNC_JUMP_WIDTH_PREP(timing->sjw - 1); in can_esp32_twai_set_timing() 132 btr1 = TWAI_TIME_SEG1_PREP(timing->phase_seg1 - 1) | in can_esp32_twai_set_timing() 133 TWAI_TIME_SEG2_PREP(timing->phase_seg2 - 1); in can_esp32_twai_set_timing()
|
D | can_mcp2515.c | 321 const struct can_timing *timing) in mcp2515_set_timing() argument 326 if (!timing) { in mcp2515_set_timing() 338 __ASSERT(timing->prescaler > 0, "Prescaler should be bigger than zero"); in mcp2515_set_timing() 339 uint8_t brp = timing->prescaler - 1; in mcp2515_set_timing() 340 uint8_t sjw = (timing->sjw - 1) << 6; in mcp2515_set_timing() 346 const uint8_t phseg1 = (timing->phase_seg1 - 1) << 3; in mcp2515_set_timing() 347 const uint8_t prseg = (timing->prop_seg - 1); in mcp2515_set_timing() 355 const uint8_t phseg2 = (timing->phase_seg2 - 1); in mcp2515_set_timing() 914 struct can_timing timing = { 0 }; in mcp2515_init() local 975 ret = can_calc_timing(dev, &timing, dev_cfg->common.bitrate, in mcp2515_init() [all …]
|
/Zephyr-latest/drivers/mspi/ |
D | mspi_ambiq.h | 55 mspi_timing_cfg *timing = (mspi_timing_cfg *)cfg; \ 56 timing->ui8TurnAround; \ 61 mspi_timing_cfg *timing = (mspi_timing_cfg *)cfg; \ 62 timing->ui8TurnAround = num; \
|
/Zephyr-latest/soc/microchip/mec/mec15xx/ |
D | CMakeLists.txt | 17 # Use MEC15xx timing calculations only if DWT is not present 19 zephyr_library_sources(timing.c)
|
/Zephyr-latest/soc/microchip/mec/mec172x/ |
D | CMakeLists.txt | 17 # Use MEC172x timing calculations only if DWT is not present 19 zephyr_library_sources(timing.c)
|
/Zephyr-latest/samples/drivers/mspi/mspi_flash/boards/ |
D | apollo3p_evb.overlay | 53 ambiq,timing-config-mask = <3>; 54 ambiq,timing-config = <0 6 0 0 0 0 0 0>; 74 ambiq,timing-config-mask = <3>; 75 ambiq,timing-config = <0 8 0 0 0 0 0 0>;
|
/Zephyr-latest/boards/atmel/sam/sam4s_xplained/ |
D | sam4s_xplained.dts | 225 atmel,smc-setup-timing = <1 1 1 1>; 226 atmel,smc-pulse-timing = <6 6 6 6>; 227 atmel,smc-cycle-timing = <7 7>; 235 atmel,smc-setup-timing = <1 1 1 1>; 236 atmel,smc-pulse-timing = <6 6 6 6>; 237 atmel,smc-cycle-timing = <7 7>;
|
/Zephyr-latest/drivers/memc/ |
D | memc_stm32_nor_psram.c | 24 FMC_NORSRAM_TimingTypeDef timing; member 54 (FMC_NORSRAM_TimingTypeDef *)&bank_config->timing, in memc_stm32_nor_init() 80 (FMC_NORSRAM_TimingTypeDef *)&bank_config->timing, in memc_stm32_psram_init() 143 .timing = { \
|
D | memc_stm32_sdram.c | 22 FMC_SDRAM_TimingTypeDef timing; member 51 (FMC_SDRAM_TimingTypeDef *)&config->banks[i].timing); in memc_stm32_sdram_init() 104 .timing = { \
|
/Zephyr-latest/drivers/spi/ |
D | Kconfig.ambiq | 61 bool "Ambiq SPI-BLEIF timing trace" 65 configurable BLEIF timing observation functions on other exposed 66 pins. The user can enable it to configure the pins for timing
|
/Zephyr-latest/soc/nordic/ |
D | CMakeLists.txt | 31 # Use nRF-specific timing calculations only if DWT is not present 33 zephyr_library_sources(timing.c)
|
/Zephyr-latest/subsys/sd/ |
D | sdmmc.c | 462 enum sdhc_timing_mode timing; in sdmmc_set_bus_speed() local 475 timing = SDHC_TIMING_SDR104; in sdmmc_set_bus_speed() 478 timing = SDHC_TIMING_DDR50; in sdmmc_set_bus_speed() 481 timing = SDHC_TIMING_SDR50; in sdmmc_set_bus_speed() 484 timing = SDHC_TIMING_SDR25; in sdmmc_set_bus_speed() 487 timing = SDHC_TIMING_SDR12; in sdmmc_set_bus_speed() 498 timing = SDHC_TIMING_HS; in sdmmc_set_bus_speed() 501 timing = SDHC_TIMING_LEGACY; in sdmmc_set_bus_speed() 519 card->bus_io.timing = timing; in sdmmc_set_bus_speed()
|
/Zephyr-latest/boards/qemu/cortex_a53/ |
D | qemu_cortex_a53_defconfig | 16 # Avoid timing skew in tests
|
D | qemu_cortex_a53_qemu_cortex_a53_xip_defconfig | 16 # Avoid timing skew in tests
|
/Zephyr-latest/samples/drivers/memc/boards/ |
D | apollo3p_evb.overlay | 52 ambiq,timing-config-mask = <3>; 53 ambiq,timing-config = <0 6 0 0 0 0 0 0>;
|
/Zephyr-latest/samples/drivers/mspi/mspi_async/boards/ |
D | apollo3p_evb.overlay | 52 ambiq,timing-config-mask = <3>; 53 ambiq,timing-config = <0 6 0 0 0 0 0 0>;
|
/Zephyr-latest/tests/drivers/mspi/flash/boards/ |
D | apollo3p_evb.overlay | 47 ambiq,timing-config-mask = <3>; 48 ambiq,timing-config = <0 8 0 0 0 0 0 0>;
|