/* Set Lock Bits. 
Set the lock bits for an advanced timer. Three levels of lock providing protection against software errors. Once written they cannot be changed until a timer reset has occurred. */
void timer_set_break_lock(uint32_t timer_peripheral, uint32_t lock)
/* Set Lock Bits. 
Set the lock bits for an advanced timer. Three levels of lock providing protection against software errors. Once written they cannot be changed until a timer reset has occurred. */
void timer_set_break_lock(uint32_t timer_peripheral, uint32_t lock)
{
	TIM_BDTR(timer_peripheral) |= lock;
}