The event system enables direct peripheral-to-peripheral communication and signaling. The event system consists of generators, channels, and users. A change in the peripheral’s state is referred to as an event.
This will result in the following code:
EVSYS.ASYNCUSER1 = EVSYS_ASYNCUSER1_SYNCCH0_gc /* Synchronous Event Channel 0 */ ;
EVSYS.SYNCCH0 = EVSYS_SYNCCH0_TCA0_OVF_LUNF_gc /* Timer/Counter A0 overflow */;
The event input is enabled in adc.c.
ADC0.EVCTRL = 1 << ADC_STARTEI_bp /* Start Event Input Enable: enabled */;