Lines Matching +full:4 +full:u
19 #define MIN_PERIOD PWM_SEC(1U) / 128U
20 #define MAX_PERIOD PWM_SEC(1U)
26 uint8_t dir = 0U; in main()
41 * Keep its value at least MIN_PERIOD * 4 to make sure in main()
46 while (pwm_set_dt(&pwm_led0, max_period, max_period / 2U)) { in main()
47 max_period /= 2U; in main()
48 if (max_period < (4U * MIN_PERIOD)) { in main()
51 4U * MIN_PERIOD); in main()
56 printk("Done calibrating; maximum/minimum periods %u/%lu nsec\n", in main()
61 ret = pwm_set_dt(&pwm_led0, period, period / 2U); in main()
68 period = dir ? (period * 2U) : (period / 2U); in main()
70 period = max_period / 2U; in main()
71 dir = 0U; in main()
73 period = MIN_PERIOD * 2U; in main()
74 dir = 1U; in main()
77 k_sleep(K_SECONDS(4U)); in main()