/* ===================================================================*/ LDD_TError PwmLdd3_Enable(LDD_TDeviceData *DeviceDataPtr) { PwmLdd3_TDeviceData *DeviceDataPrv = (PwmLdd3_TDeviceData *)DeviceDataPtr; if (!DeviceDataPrv->EnUser) { /* Is the device disabled by user? */ DeviceDataPrv->EnUser = TRUE; /* If yes then set the flag "device enabled" */ (void)TU1_Enable(DeviceDataPrv->LinkedDeviceDataPtr); /* Enable TimerUnit */ } return ERR_OK; }
void TP1_enableTimer(LDD_TDeviceData *TU1Handl) { TU1_Enable(TU1Handl); //TPM1_SC |= TPM_SC_DMA_MASK; }