/* Select lptimer Trigger Source. 
Select timer external trigger source. */
void lptimer_select_trigger_source(uint32_t lptimer_peripheral, uint32_t trigger_source)
/* Select lptimer Trigger Source. 
Select timer external trigger source. */
void lptimer_select_trigger_source(uint32_t lptimer_peripheral, uint32_t trigger_source)
{
	uint32_t reg32 = LPTIM_CFGR(lptimer_peripheral);
	reg32 &= ~(LPTIM_CFGR_TRIGSEL_MASK << LPTIM_CFGR_TRIGSEL_SHIFT);
	LPTIM_CFGR(lptimer_peripheral) = reg32 | trigger_source;
}