Lines Matching refs:delay
220 #define SW_CLOCK_CYCLE(dev, delay) \ argument
223 pin_delay_asm(delay); \
225 pin_delay_asm(delay); \
228 #define SW_WRITE_BIT(dev, bit, delay) \ argument
232 pin_delay_asm(delay); \
234 pin_delay_asm(delay); \
237 #define SW_READ_BIT(dev, bit, delay) \ argument
240 pin_delay_asm(delay); \
243 pin_delay_asm(delay); \
530 uint32_t delay; in sw_set_clock() local
534 delay = 1U; in sw_set_clock()
538 delay = ((CPU_CLOCK / 2U) + (clock - 1U)) / clock; in sw_set_clock()
539 if (delay > config->port_write_cycles) { in sw_set_clock()
540 delay -= config->port_write_cycles; in sw_set_clock()
541 delay = (delay + (DELAY_SLOW_CYCLES - 1U)) / DELAY_SLOW_CYCLES; in sw_set_clock()
543 delay = 1U; in sw_set_clock()
547 sw_data->clock_delay = delay; in sw_set_clock()