Searched refs:BSP_DELAY_UNIT_CONV_US_TO_NS (Results 1 – 1 of 1) sorted by relevance
17 #define BSP_DELAY_UNIT_CONV_US_TO_NS (1000) macro86 us_per_cycle = BSP_DELAY_UNIT_CONV_S_TO_NS / (iclk_hz / BSP_DELAY_UNIT_CONV_US_TO_NS); in R_BSP_SoftwareDelay()87 ns_64bits = (uint64_t) total_us * (uint64_t) BSP_DELAY_UNIT_CONV_US_TO_NS; in R_BSP_SoftwareDelay()93 cycles_requested = (((uint32_t) ns_64bits / us_per_cycle) * BSP_DELAY_UNIT_CONV_US_TO_NS); in R_BSP_SoftwareDelay()99 … total_us = (total_us / ((us_per_cycle * BSP_DELAY_LOOP_CYCLES) / BSP_DELAY_UNIT_CONV_US_TO_NS)); in R_BSP_SoftwareDelay()100 ns_64bits = (uint64_t) total_us * (uint64_t) BSP_DELAY_UNIT_CONV_US_TO_NS; // Convert to ns. in R_BSP_SoftwareDelay()