/********************************************************************************
Detailed Description:
Example shows possible implementation of multiple ADC conversions using SDK.
Here 7 channels are sampled periodically. 2 ADC modules and 2 PDBs are used.
ADC0 is configured to sample 3 channels, ADC1 4 channels.
PDBs are set to back-to-back mode to perform chain conversion as shown in
RM's Figure 46-3. PDB back-to-back chain forming PDB0-PDB1 ring.
Within ADC component you need to select ADC input to be measured for each item
in configuration list. For ADC0 ch5 External input channel 28 is selected,
as it is connected to potentiometer on the EVB.
PDB0 is triggered by LPIT ch0 at 500ms rate.
Two DMA channels are configured to read result registers from both ADCs.
* ------------------------------------------------------------------------------
* Test HW: S32K148EVB-Q144
* MCU: FS32K144UAVLQ 0N20V
* Target: Debug_FLASH
* EVB connection: UART terminal 115200, 8N1
* Compiler: S32DS.ARM.3.4
* SDK release: S32SDK_S32K1XX_RTM_4.0.3
* Debugger: S32DS
********************************************************************************
Revision History:
Ver Date Author Description of Changes
1.0 Feb-21-2023 Petr Stancik Initial version, based on adc_hwtrigger_s32k148
*******************************************************************************/