Hi Nelson Lobo,
You don't need to add the dac_gen_wave function in your KL25 ADC hardware trigger sample code, because just like the KSDK1.2.0 Demo App User Guide section 2.2.4 said, although KL25 have the 12bit DAC, but this DAC output can't used as the ADC hardware trigger directly, if you want use the ADC hardware trigger, you need to use LPTMR, TPM, PIT ect.
You can find the ADC hardware trigger module in the KL25 reference manual:

DAC is not the hardware trigger source for ADC module in KL25 chip.
Wish it helps you!
If you still have question, please contact with me!
Hope it helps
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------