Lines Matching full:period
24 static uint32_t period; variable
36 /* The "period / 2" pulse duration gives 50% duty cycle, which in beep()
39 pwm_set_dt(&pwm, period, period / 2U); in beep()
45 /* Ensure there's a clear silent period between two tones */ in beep()
64 if (period < PERIOD_MAX) { in button_pressed()
65 period += PWM_USEC(50U); in button_pressed()
69 if (period > PERIOD_MIN) { in button_pressed()
70 period -= PWM_USEC(50U); in button_pressed()
74 printk("Period is %u us (%u Hz)\n", period / NSEC_PER_USEC, in button_pressed()
75 NS_TO_HZ(period)); in button_pressed()
79 NS_TO_HZ(period)); in button_pressed()
99 period = pwm.period; in main()