/* Configures the: Break feature, dead time, Lock level, the IMOS.  */
void TMR_ConfigBDT(TMR_T *tmr, TMR_BDTConfig_T *BDTConfig)
/* Configures the: Break feature, dead time, Lock level, the IMOS.  */
void TMR_ConfigBDT(TMR_T *tmr, TMR_BDTConfig_T *BDTConfig)
{
    tmr->BDT = (BDTConfig->IMOS)<<10 |\
               (BDTConfig->RMOS)<<11 |\
               (BDTConfig->lockLevel)<<8 |\
               (BDTConfig->deadTime) |\
               (BDTConfig->BRKState)<<12 |\
               (BDTConfig->BRKPolarity)<<13 |\
               (BDTConfig->automaticOutput)<<14;
}