/**
 ******************************************************************************
 *
 * @file        MG32_APB_ITR_Init.h
 *
 * @brief       This file is to configure APB ITR6/7 source.
 *              Device : MG32F02U128
 * @par         Project
 *              MG32 
 * @version     V1.00
 * @date        2022/10/03
 * @author      MG32CoGen: 2.0.0.32 , 2026/2/9 上午 10:17 
 * @copyright   Copyright (c) 2022 MegaWin Technology Co., Ltd.
 *              All rights reserved.
 *
 ******************************************************************************
 * @par     Disclaimer 
 *    The Demo software is provided "AS IS"  without any warranty, either 
 *    expressed or implied, including, but not limited to, the implied warranties 
 *    of merchantability and fitness for a particular purpose.  The author will 
 *    not be liable for any special, incidental, consequential or indirect 
 *    damages due to loss of data or any other reason. 
 *    These statements agree with the world wide and local dictated laws about 
 *    authorship and violence against these laws. 
 *******************************************************************************
 *******************************************************************************
 */

#ifndef _MG32_APB_ITR_INIT_H
/*!< _MG32_APB_ITR_INIT_H */ 
#define _MG32_APB_ITR_INIT_H

#include "MG32_APB_DRV.h"

// <<< Use Configuration Wizard in Context Menu >>>
//<e0> Configure ITR6 Module
    #define CONF_ITR6_MODE                      0
//  <o0.0..2> ITR6 source select.    <0=> TM00 : TM00_TRGO signal
//                                   <1=> TM10 : TM10_TRGO signal
//                                   <2=> TM20 : TM20_TRGO signal
//                                   <3=> TM36 : TM36_TRGO signal
//                                   <4=> INTPB : INT_PB signal
//                                   <5=> U1TM0 : URT1_TMO signal
//                                   <6=> U2BRO : URT2_BRO signal
//                                   <7=> U2TMO	: URT2_TMO signal
    #define CONF_ITR6_CR2_ITR6_MUX            0x00000000
//</e>
//<e0> Configure ITR7 Module
    #define CONF_ITR7_MODE                      0
//  <o0.4..7> ITR7 source select.  <0=> TM01 : TM01_TRGO signal
//                                 <1=> TM16 : TM16_TRGO signal
//                                 <2=> TM26 : TM26_TRGO signal
//                                 <3=> ADC0 : ADC0_OUT signal
//                                 <4=> INTPD : INT_PD signal
//                                 <5=> U1BRO : URT1_BRO signal
//                                 <8=> ICKO : ICKO_INT signal
//                                 <9=> RTC : RTC_OUT signal
//                                 <10=> XOR : TM36_XOR signal
//                                 <11=> NCO0 : NCO0_OUT signal
    #define CONF_ITR7_CR2_ITR7_MUX            0x00000000
//</e>
// <<< end of Configuration section >>>

// Combined with APB_CRO register bit function
// --------------------------------------------------------------------
// APB ITR6 Module
// --------------------------------------------------------------------
#define CONF_APB_ITRx_CR2   (CONF_ITR6_CR2_ITR6_MUX | CONF_ITR7_CR2_ITR7_MUX)

#endif  // _MG32_APB_ITR_INIT_H

