*********************************************************************************
* Detailed Description:
*
* ADC hardware trigger demonstration using BCTU Trigger Mode on S32K358.
*
* An eMIOS1 Channel 23 reload event is used as a trigger source for the BCTU).
* The BCTU initiates a hardware-triggered conversion of an ADC1 group containing
* three channels.
*
* The result of the third ADC channel, connected to the on-board potentiometer
* (ADCPOT0), is used to dynamically update the duty cycle of an
* eMIOS Channel 5 PWM output.
*
* The PWM output drives the on-board LED, allowing the potentiometer position
* to control LED brightness.
*
* Key Functionality:
* - eMIOS-triggered BCTU operation.
* - BCTU Trigger Mode configuration.
* - ADC1 hardware-triggered group conversion.
* - ADC notification callback processing.
* - PWM duty-cycle update based on ADC result.
* - LED brightness control using the potentiometer.
*
* ------------------------------------------------------------------------------
* Test HW: S32K3x8EVB-Q289
* MCU: S32K358
* IDE: EB Tresos 29.0.0
* RTD Release: S32K3_RTD_6_0_0_D2506_ASR_REL_4_7_REV_0000_20250610
* Debugger: Lauterbach
* Target: Internal_FLASH
********************************************************************************
* Revision History:
* Ver Date Author Description of Changes
* 1.0 02-10-2026 Petr Stancik Initial version
********************************************************************************