/*!
 * @file        user_tmr_config.h
 *
 * @brief       TMR DMA Configuration
 *
 * @version     V1.0.0
 *
 * @date        2026-03-26
 *
 * @attention
 *
 *  Copyright (C) 2026 Geehy Semiconductor
 *
 *  You may not use this file except in compliance with the
 *  Geehy Semiconductor Software License Agreement.
 *
 *  The program is only for reference, which is distributed in the hope
 *  that it will be useful and instructional for customers to develop
 *  their software. Unless required by applicable law or agreed to in
 *  writing, the program is distributed in an "AS IS" BASIS, WITHOUT
 *  ANY WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the Geehy Semiconductor Software License Agreement for the governing permissions
 *  and limitations under the license.
 */

#ifndef USER_TMR_CONFIG_H
#define USER_TMR_CONFIG_H

#include "g32a10xx_gpio.h"
#include "g32a10xx_tmr.h"
#include "g32a10xx_dma.h"
#include "g32a10xx_misc.h"
#include "g32a10xx_eint.h"

#ifdef __cplusplus
extern "C" {
#endif

/** @addtogroup Examples
  @{
*/

/** @addtogroup TMR_Examples
@{
*/

/** @addtogroup TMR_DMA
  @{
*/

/** @defgroup TMR_DMA_Macros Macros
  @{
*/

/* TMR1 CH1 */
#define TMR1_CH1_GPIO_PORT        GPIOA
#define TMR1_CH1_GPIO_PIN         GPIO_PIN_8
#define TMR1_CH1_PIN_SOURCE       GPIO_PIN_SOURCE_8
#define TMR1_CH1_GPIO_AF          GPIO_AF_PIN2

/* TMR1 CH1N */
#define TMR1_CH1N_GPIO_PORT       GPIOA
#define TMR1_CH1N_GPIO_PIN        GPIO_PIN_7
#define TMR1_CH1N_PIN_SOURCE      GPIO_PIN_SOURCE_7
#define TMR1_CH1N_GPIO_AF         GPIO_AF_PIN2

/**@} end of group TMR_DMA_Macros */

/** @defgroup TMR_DMA_Variables Variables
  @{
*/

extern Gpio_ConfigType    g_tmrGpioConfig;
extern Dma_ConfigType     g_dmaConfig;
extern Tmr_TimeBaseType   g_tmrBaseConfig;
extern Tmr_OcConfigType   g_tmrOcConfig;

/**@} end of group TMR_DMA_Variables */

/**@} end of group TMR_DMA */
/**@} end of group TMR_Examples */
/**@} end of group Examples */

#ifdef __cplusplus
}
#endif

#endif /* USER_TMR_CONFIG_H */
