/**
 ******************************************************************************
 *
 * @file        MG32_APB_IR_Init.h
 *
 * @brief       This file is to configure APB OBM0 baudrate setting.
 *              Device : MG32F02A132
 * @par         Project
 *              MG32 
 * @version     V1.00
 * @date        2022/10/03
 * @author      MG32CoGen: 2.0.0.32 , 2026/2/9 下午 04:23 
 * @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_IR_INIT_H
/*!< _MG32_APB_IR_INIT_H */ 
#define _MG32_APB_IR_INIT_H

#include "MG32_APB_DRV.h"

// <<< Use Configuration Wizard in Context Menu >>>
//<e0> Configure IR Module
    #define CONF_IR_MODE                      0
//  <h> IR (IR data signal envelope source)
//    <o0.12..14> IR data envelope signal source select <0=> 0 (Output 0)
//                                                      <1=> TM20 : TM20_TRGO signal
//                                                      <2=> TM26 : TM26_TRGO signal
//                                                      <3=> TM36 : TM36_TRGO signal
//                                                      <4=> SPI0 : SPI0_MOSI signal
//                                                      <5=> URT1 : URT1_TX signal
//                                                      <6=> URT2 : URT2_TX signal
//                                                      <7=> URT3 : URT3_TX signal
      #define CONF_IR_CR0_IRDAT_MUX           0x00000000
//    <q0.5> IR data envelope signal inverse enable bit <0=> Disable <1=> Enable
      #define CONF_IR_CR0_IRDAT_INV           0x00000000
//  </h>
//  <h> IR (IR carrier clock)
//    <o0.8..10> IR carrier clock source select. <0=> 0 (Output 0)
//                                               <1=> TM00 : TM00_TRGO signal
//                                               <2=> TM01 : TM01_TRGO signal
//                                               <3=> TM10 : TM10_TRGO signal
//                                               <4=> TM16 : TM16_TRGO signal
//                                               <5=> URT1 : URT1_TMO signal
//                                               <6=> URT2 : URT2_TMO signal
//                                               <7=> URT3 : URT3_TMO signal
      #define CONF_IR_CR0_IRCLK_MUX           0x00000000
//    <q0.4> IR clock signal inverse enable bit <0=> Disable <1=> Enable
      #define CONF_IR_CR0_IRCLK_INV           0x00000000
//  </h>
//</e>
// <<< end of Configuration section >>>

// Combined with APB_CRO register bit function
// --------------------------------------------------------------------
// APB IR Module
// --------------------------------------------------------------------

// ----------------------------------------------
#define CONF_APB_IR_CR0 CONF_IR_CR0_IRDAT_MUX   |\
                        CONF_IR_CR0_IRDAT_INV   |\
                        CONF_IR_CR0_IRCLK_MUX   |\
                        CONF_IR_CR0_IRCLK_INV

#endif  // _MG32_APB_IR_INIT_H

