/* ###################################################################
**     This component module is generated by Processor Expert. Do not modify it.
**     Filename    : ADC1.h
**     Project     : MAPS-MC-2IN1_DualServo_release
**     Processor   : MC56F84789VLL
**     Component   : Init_ADC
**     Version     : Component 01.350, Driver 01.26, CPU db: 3.50.001
**     Compiler    : CodeWarrior DSP C Compiler
**     Date/Time   : 2019-04-03, 17:51, # CodeGen: 0
**     Abstract    :
**         This "Init_ADC" Peripheral Inspector implements the
**         Analog-to-Digital converter module (ADC), basic 
**         initialization and settings.
**     Settings    :
**          Component name                                 : ADC1
**          Device                                         : ADC12
**          Settings                                       : 
**            Clock setting                                : 
**              Clock divisor select value                 : 5
**              A/D Frequency                              : 20 MHz
**              Speed control                              : clock frequency =< 20MHz
**              Clock divisor select value 1               : 5
**              A/D Frequency 1                            : 20 MHz
**              Speed control 1                            : clock frequency =< 20MHz
**            Stop mode (0)                                : no
**            Stop mode 1                                  : yes
**            ADC mode                                     : Triggered Parallel
**            Parallel mode                                : simultaneous
**            Trigger mode (0)                             : SYNC input or START bit
**            Trigger mode 1                               : SYNC input or START bit
**            Sampling time (0)                            : 5 ADC clocks
**            Sampling time 1                              : 5 ADC clocks
**            Power savings mode                           : Disabled
**            Power-up delay                               : 26
**            Auto standby                                 : Disabled
**            DMA trigger source                           : EOSI
**            High volt. ref. source 0                     : internal
**            Low volt. ref. source 0                      : internal
**            High volt. ref. source 1                     : internal
**            Low volt. ref. source 1                      : internal
**            A/D Channels                                 : 
**              Channels configuration                     : 
**                ANA0-ANA1                                : Single ended mode
**                ANA2-ANA3                                : Single ended mode
**                ANB0-ANB1                                : Single ended mode
**                ANB2-ANB3                                : Single ended mode
**                ANA4-ANA5                                : Single ended mode
**                ANA6-ANA7                                : Single ended mode
**                ANB4-ANB5                                : Single ended mode
**                ANB6-ANB7                                : Single ended mode
**              Sample 0                                   : Enabled
**                Channel                                  : GPIOA0/ANA0/CMPA_IN3/CMPC_O
**                Channel signal                           : 
**                Negative input                           : Disabled
**              Sample 1                                   : Enabled
**                Channel                                  : GPIOA1/ANA1/CMPA_IN0
**                Channel signal                           : 
**                Negative input                           : Disabled
**              Sample 2                                   : Enabled
**                Channel                                  : GPIOA0/ANA0/CMPA_IN3/CMPC_O
**                Channel signal                           : 
**                Negative input                           : Disabled
**              Sample 3                                   : Enabled
**                Channel                                  : GPIOA4/ANA4/ANC8/CMPD_IN0
**                Channel signal                           : 
**                Negative input                           : Disabled
**              Sample 4                                   : Enabled
**                Channel                                  : GPIOA5/ANA5/ANC9
**                Channel signal                           : 
**                Negative input                           : Disabled
**              Sample 5                                   : Enabled
**                Channel                                  : GPIOA5/ANA5/ANC9
**                Channel signal                           : 
**                Negative input                           : Disabled
**              Sample 6                                   : Disabled
**              Sample 7                                   : Disabled
**              Sample 8                                   : Enabled
**                Channel                                  : GPIOB0/ANB0/CMPB_IN3
**                Channel signal                           : 
**                Negative input                           : Disabled
**              Sample 9                                   : Enabled
**                Channel                                  : GPIOB1/ANB1/CMPB_IN0
**                Channel signal                           : 
**                Negative input                           : Disabled
**              Sample 10                                  : Enabled
**                Channel                                  : GPIOB2/ANB2/CMPC_IN3
**                Channel signal                           : 
**                Negative input                           : Disabled
**              Sample 11                                  : Enabled
**                Channel                                  : GPIOB4/ANB4/ANC12/CMPC_IN1
**                Channel signal                           : 
**                Negative input                           : Disabled
**              Sample 12                                  : Enabled
**                Channel                                  : GPIOB5/ANB5/ANC13/CMPC_IN2
**                Channel signal                           : 
**                Negative input                           : Disabled
**              Sample 13                                  : Enabled
**                Channel                                  : GPIOB6/ANB6/ANC14/CMPB_IN1
**                Channel signal                           : 
**                Negative input                           : Disabled
**              Sample 14                                  : Disabled
**              Sample 15                                  : Disabled
**              Internal trigger (0)                       : Enabled
**                Trigger input                            : AOI_Function0_Out
**                Trigger input signal                     : 
**              Internal trigger 1                         : Disabled
**            Zero crossing                                : 
**              Sample 0                                   : disabled
**              Sample 1                                   : disabled
**              Sample 2                                   : disabled
**              Sample 3                                   : disabled
**              Sample 4                                   : disabled
**              Sample 5                                   : disabled
**              Sample 6                                   : disabled
**              Sample 7                                   : disabled
**              Sample 8                                   : disabled
**              Sample 9                                   : disabled
**              Sample 10                                  : disabled
**              Sample 11                                  : disabled
**              Sample 12                                  : disabled
**              Sample 13                                  : disabled
**              Sample 14                                  : disabled
**              Sample 15                                  : disabled
**            Low limit                                    : 
**              Low limit register 0                       : 0
**              Low limit register 1                       : 0
**              Low limit register 2                       : 0
**              Low limit register 3                       : 0
**              Low limit register 4                       : 0
**              Low limit register 5                       : 0
**              Low limit register 6                       : 0
**              Low limit register 7                       : 0
**              Low limit register 8                       : 0
**              Low limit register 9                       : 0
**              Low limit register 10                      : 0
**              Low limit register 11                      : 0
**              Low limit register 12                      : 0
**              Low limit register 13                      : 0
**              Low limit register 14                      : 0
**              Low limit register 15                      : 0
**            High limit                                   : 
**              High limit register 0                      : 7FF8
**              High limit register 1                      : 7FF8
**              High limit register 2                      : 7FF8
**              High limit register 3                      : 7FF8
**              High limit register 4                      : 7FF8
**              High limit register 5                      : 7FF8
**              High limit register 6                      : 7FF8
**              High limit register 7                      : 7FF8
**              High limit register 8                      : 7FF8
**              High limit register 9                      : 7FF8
**              High limit register 10                     : 7FF8
**              High limit register 11                     : 7FF8
**              High limit register 12                     : 7FF8
**              High limit register 13                     : 7FF8
**              High limit register 14                     : 7FF8
**              High limit register 15                     : 7FF8
**            Offset                                       : 
**              Offset register 0                          : 0
**              Offset register 1                          : 0
**              Offset register 2                          : 0
**              Offset register 3                          : 0
**              Offset register 4                          : 0
**              Offset register 5                          : 0
**              Offset register 6                          : 0
**              Offset register 7                          : 0
**              Offset register 8                          : 0
**              Offset register 9                          : 0
**              Offset register 10                         : 0
**              Offset register 11                         : 0
**              Offset register 12                         : 0
**              Offset register 13                         : 0
**              Offset register 14                         : 0
**              Offset register 15                         : 0
**            Gain control                                 : 
**              ANA0                                       : x1 amplification
**              ANA1                                       : x1 amplification
**              ANA2                                       : x1 amplification
**              ANA3                                       : x1 amplification
**              ANA4                                       : x1 amplification
**              ANA5                                       : x1 amplification
**              ANA6                                       : x1 amplification
**              ANA7                                       : x1 amplification
**              ANB0                                       : x1 amplification
**              ANB1                                       : x1 amplification
**              ANB2                                       : x1 amplification
**              ANB3                                       : x1 amplification
**              ANB4                                       : x1 amplification
**              ANB5                                       : x1 amplification
**              ANB6                                       : x1 amplification
**              ANB7                                       : x1 amplification
**            Scan control                                 : 
**              Sample 0                                   : Continue
**              Sample 1                                   : Continue
**              Sample 2                                   : Continue
**              Sample 3                                   : Pause
**              Sample 4                                   : Continue
**              Sample 5                                   : Continue
**              Sample 6                                   : Continue
**              Sample 7                                   : Continue
**              Sample 8                                   : Continue
**              Sample 9                                   : Continue
**              Sample 10                                  : Continue
**              Sample 11                                  : Continue
**              Sample 12                                  : Continue
**              Sample 13                                  : Continue
**              Sample 14                                  : Continue
**              Sample 15                                  : Continue
**          Interrupts/DMA                                 : 
**            Conversion complete (0)                      : 
**              Interrupt                                  : INT_ADC12_CC0
**              End of scan interrupt                      : Enabled
**              Interrupt priority                         : 1
**              ISR name                                   : M2_isr
**              DMA request                                : Disabled
**            Conversion complete 1                        : 
**              Interrupt                                  : INT_ADC12_CC1
**              End of scan interrupt                      : Disabled
**              Interrupt priority                         : default
**              ISR name                                   : 
**              DMA request                                : Disabled
**            Scan halted interrupt enable                 : 
**              Sample 0                                   : Disabled
**              Sample 1                                   : Disabled
**              Sample 2                                   : Disabled
**              Sample 3                                   : Disabled
**              Sample 4                                   : Disabled
**              Sample 5                                   : Disabled
**              Sample 6                                   : Disabled
**              Sample 7                                   : Disabled
**              Sample 8                                   : Disabled
**              Sample 9                                   : Disabled
**              Sample 10                                  : Disabled
**              Sample 11                                  : Disabled
**              Sample 12                                  : Disabled
**              Sample 13                                  : Disabled
**              Sample 14                                  : Disabled
**              Sample 15                                  : Disabled
**            Zero crossing or limit error                 : 
**              Interrupt                                  : INT_ADC12_ERR
**              Zero crossing interrupt                    : Disabled
**              Low limit error interrupt                  : Disabled
**              High limit error interrupt                 : Disabled
**              Interrupt priority                         : default
**              ISR name                                   : 
**          Initialization                                 : 
**            Call Init method                             : yes
**            Enable peripheral clock                      : yes
**            Start ADC conversion (0)                     : no
**            Start ADC conversion 1                       : no
**            Power down ADC 0                             : no
**            Power down ADC 1                             : no
**     Contents    :
**         Init - void ADC1_Init(void);
**
**     Copyright : 1997 - 2014 Freescale Semiconductor, Inc. 
**     All Rights Reserved.
**     
**     Redistribution and use in source and binary forms, with or without modification,
**     are permitted provided that the following conditions are met:
**     
**     o Redistributions of source code must retain the above copyright notice, this list
**       of conditions and the following disclaimer.
**     
**     o Redistributions in binary form must reproduce the above copyright notice, this
**       list of conditions and the following disclaimer in the documentation and/or
**       other materials provided with the distribution.
**     
**     o Neither the name of Freescale Semiconductor, Inc. nor the names of its
**       contributors may be used to endorse or promote products derived from this
**       software without specific prior written permission.
**     
**     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
**     ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
**     WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
**     DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
**     ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
**     (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
**     LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
**     ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
**     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
**     SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**     
**     http: www.freescale.com
**     mail: support@freescale.com
** ###################################################################*/
/*!
** @file ADC1.h
** @version 01.26
** @brief
**         This "Init_ADC" Peripheral Inspector implements the
**         Analog-to-Digital converter module (ADC), basic 
**         initialization and settings.
*/         
/*!
**  @addtogroup ADC1_module ADC1 module documentation
**  @{
*/         

#ifndef __ADC1
#define __ADC1

/* MODULE ADC1. */

/*Include shared modules, which are used for whole project*/
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
/* Include inherited beans */
#include "Cpu.h"

/* PESL device mapping  */
#define ADC1_DEVICE ADC12

void M2_isr(void);
/*
** ===================================================================
** The interrupt service routine must be implemented by user in one
** of the user modules (see ADC1.c file for more information).
** ===================================================================
*/

void ADC1_Init(void);
/*
** ===================================================================
**     Method      :  ADC1_Init (component Init_ADC)
**     Description :
**         This method initializes registers of the ADC module
**         according to this Peripheral Initialization settings. Call
**         this method in the user code to initialize the module. By
**         default, the method is called by PE automatically; see "Call
**         Init method" property of the component for more details.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

/* END ADC1. */

#endif /* ifndef __ADC1 */
/*!
** @}
*/
/*
** ###################################################################
**
**     This file was created by Processor Expert 10.3 [05.09]
**     for the Freescale 56800 series of microcontrollers.
**
** ###################################################################
*/
