/* ===================================================================*/ void ExtIntLdd1_Enable(LDD_TDeviceData *DeviceDataPtr) { (void)DeviceDataPtr; /* Parameter is not used, suppress unused argument warning */ PORT_PDD_ClearPinInterruptFlag(PORTC_BASE_PTR, ExtIntLdd1_PIN_INDEX); PORT_PDD_SetPinInterruptConfiguration(PORTC_BASE_PTR, ExtIntLdd1_PIN_INDEX, PORT_PDD_INTERRUPT_ON_RISING); }
/* ** =================================================================== ** Method : ExtIntLdd7_Disable (component ExtInt_LDD) ** ** Description : ** Disable the component - the external events are not accepted. ** This method is available only if HW module allows ** enable/disable of the interrupt. ** Parameters : ** NAME - DESCRIPTION ** * DeviceDataPtr - Device data structure ** pointer returned by <Init> method. ** Returns : Nothing ** =================================================================== */ void ExtIntLdd7_Disable(LDD_TDeviceData *DeviceDataPtr) { ExtIntLdd7_TDeviceData *DeviceDataPrv = (ExtIntLdd7_TDeviceData *)DeviceDataPtr; PORT_PDD_SetPinInterruptConfiguration(ExtIntLdd7_PORTCONTROL_BASE_ADDRESS,\ ExtIntLdd7_PIN_INDEX, PORT_PDD_INTERRUPT_DMA_DISABLED); DeviceDataPrv->UserEnabled = FALSE; /* Set device as Disabled */ }
/* ** =================================================================== ** Method : ExtIntLdd7_Enable (component ExtInt_LDD) ** ** Description : ** Enable the component - the external events are accepted. ** This method is available only if HW module allows ** enable/disable of the interrupt. ** Parameters : ** NAME - DESCRIPTION ** * DeviceDataPtr - Device data structure ** pointer returned by <Init> method. ** Returns : Nothing ** =================================================================== */ void ExtIntLdd7_Enable(LDD_TDeviceData *DeviceDataPtr) { ExtIntLdd7_TDeviceData *DeviceDataPrv = (ExtIntLdd7_TDeviceData *)DeviceDataPtr; PORT_PDD_ClearPinInterruptFlag(ExtIntLdd7_PORTCONTROL_BASE_ADDRESS, ExtIntLdd7_PIN_INDEX); PORT_PDD_SetPinInterruptConfiguration(ExtIntLdd7_PORTCONTROL_BASE_ADDRESS,\ ExtIntLdd7_PIN_INDEX, ExtIntLdd7_IRQ_CONFIG); DeviceDataPrv->UserEnabled = TRUE; /* Set device as Enabled */ }
/* ===================================================================*/ void ExtIntLdd1_Disable(LDD_TDeviceData *DeviceDataPtr) { (void)DeviceDataPtr; /* Parameter is not used, suppress unused argument warning */ PORT_PDD_SetPinInterruptConfiguration(PORTC_BASE_PTR, ExtIntLdd1_PIN_INDEX, PORT_PDD_INTERRUPT_DMA_DISABLED); }