[9:04 AM] Josue Roberto Gonzalez
Hello @RehabSoliman
The RTM documentation states that the Pins driver provides the following function below to configure the digital filter:
Function Name: PINS_DRV_ConfigDigitalFilter
Description : This function configures digital filter for port with given
configuration:
Note: Updating the filter configuration must be done only
after all filters are disabled.
Parameters :
* PORT_Type *const base -> (This is the Port base pointer
(PORTA, PORTB, PORTC, etc.))
* const port_digital_filter_config_t *const config -> The
digital filter configuration struct
Returns: void
This are the steps to use it.
* Create a configuration strucure of type port_digital_filter_config_t
* Set the desired values into your configuration structure
* Call PINS_DRV_ConfigDigitalFilter function making sure that the Digital filter is disabled. (It can be before the PINS_DRV_Init function gets called)
In example:
port_digital_filter_config_t PTE_DigFltr_Config;
PTE_DigFltr_Config.clock = 1U;
PTE_DigFltr_Config.width = 0x1F;
PINS_DRV_ConfigDigitalFilter (PORTE, &PTE_DigFltr_Config);
error = PINS_DRV_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);
I hope this information is helpful.
Best Regards