/* Set Deadtime. 
The deadtime and sampling clock (DTSC) is set in the clock division ratio part of the timer mode settings. The deadtime count is an 8 bit value defined in terms of the number of DTSC cycles: */
void timer_set_deadtime(uint32_t timer_peripheral, uint32_t deadtime)
/* Set Deadtime. 
The deadtime and sampling clock (DTSC) is set in the clock division ratio part of the timer mode settings. The deadtime count is an 8 bit value defined in terms of the number of DTSC cycles: */
void timer_set_deadtime(uint32_t timer_peripheral, uint32_t deadtime)
{
	TIM_BDTR(timer_peripheral) |= deadtime;
}