From 474b07b3ba596c78988f17bde7f61ef1d432274d Mon Sep 17 00:00:00 2001 From: sp-cai <70000077+sp-cai@users.noreply.github.com> Date: Wed, 8 May 2024 14:13:52 +0800 Subject: [PATCH] =?UTF-8?q?[BSP][HC32F460]=E6=B8=85=E7=90=86=E5=B7=B2?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E4=BD=BF=E7=94=A8=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PWM 配置文件 pwm_tmra_config.h 已合并到 pwm_tmr_config.h 了。 --- .../board/config/pwm_tmra_config.h | 205 ------------------ 1 file changed, 205 deletions(-) delete mode 100644 bsp/hc32/ev_hc32f460_lqfp100_v2/board/config/pwm_tmra_config.h diff --git a/bsp/hc32/ev_hc32f460_lqfp100_v2/board/config/pwm_tmra_config.h b/bsp/hc32/ev_hc32f460_lqfp100_v2/board/config/pwm_tmra_config.h deleted file mode 100644 index a8f6727ff13..00000000000 --- a/bsp/hc32/ev_hc32f460_lqfp100_v2/board/config/pwm_tmra_config.h +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Copyright (c) 2006-2022, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2022-06-27 lianghongquan first version - */ - -#ifndef __PWM_TMRA_CONFIG_H__ -#define __PWM_TMRA_CONFIG_H__ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef BSP_USING_PWM_TMRA_1 -#ifndef PWM_TMRA_1_CONFIG -#define PWM_TMRA_1_CONFIG \ - { \ - .name = "pwm_a1", \ - .instance = CM_TMRA_1, \ - .channel = 0, \ - .stcTmraInit = \ - { \ - .u8CountSrc = TMRA_CNT_SRC_SW, \ - .u32PeriodValue = 0xFFFF, \ - .sw_count = \ - { \ - .u16ClockDiv = TMRA_CLK_DIV1, \ - .u16CountMode = TMRA_MD_SAWTOOTH, \ - .u16CountDir = TMRA_DIR_DOWN, \ - }, \ - }, \ - .stcPwmInit = \ - { \ - .u32CompareValue = 0x0000, \ - .u16StartPolarity = TMRA_PWM_LOW, \ - .u16StopPolarity = TMRA_PWM_LOW, \ - .u16CompareMatchPolarity = TMRA_PWM_HIGH, \ - .u16PeriodMatchPolarity = TMRA_PWM_LOW, \ - }, \ - } -#endif /* PWM_TMRA_1_CONFIG */ -#endif /* BSP_USING_PWM_TMRA_1 */ - -#ifdef BSP_USING_PWM_TMRA_2 -#ifndef PWM_TMRA_2_CONFIG -#define PWM_TMRA_2_CONFIG \ - { \ - .name = "pwm_a2", \ - .instance = CM_TMRA_2, \ - .channel = 0, \ - .stcTmraInit = \ - { \ - .u8CountSrc = TMRA_CNT_SRC_SW, \ - .u32PeriodValue = 0xFFFF, \ - .sw_count = \ - { \ - .u16ClockDiv = TMRA_CLK_DIV1, \ - .u16CountMode = TMRA_MD_SAWTOOTH, \ - .u16CountDir = TMRA_DIR_DOWN, \ - }, \ - }, \ - .stcPwmInit = \ - { \ - .u32CompareValue = 0x0000, \ - .u16StartPolarity = TMRA_PWM_LOW, \ - .u16StopPolarity = TMRA_PWM_LOW, \ - .u16CompareMatchPolarity = TMRA_PWM_HIGH, \ - .u16PeriodMatchPolarity = TMRA_PWM_LOW, \ - }, \ - } -#endif /* PWM_TMRA_2_CONFIG */ -#endif /* BSP_USING_PWM_TMRA_2 */ - -#ifdef BSP_USING_PWM_TMRA_3 -#ifndef PWM_TMRA_3_CONFIG -#define PWM_TMRA_3_CONFIG \ - { \ - .name = "pwm_a3", \ - .instance = CM_TMRA_3, \ - .channel = 0, \ - .stcTmraInit = \ - { \ - .u8CountSrc = TMRA_CNT_SRC_SW, \ - .u32PeriodValue = 0xFFFF, \ - .sw_count = \ - { \ - .u16ClockDiv = TMRA_CLK_DIV1, \ - .u16CountMode = TMRA_MD_SAWTOOTH, \ - .u16CountDir = TMRA_DIR_DOWN, \ - }, \ - }, \ - .stcPwmInit = \ - { \ - .u32CompareValue = 0x0000, \ - .u16StartPolarity = TMRA_PWM_LOW, \ - .u16StopPolarity = TMRA_PWM_LOW, \ - .u16CompareMatchPolarity = TMRA_PWM_HIGH, \ - .u16PeriodMatchPolarity = TMRA_PWM_LOW, \ - }, \ - } -#endif /* PWM_TMRA_3_CONFIG */ -#endif /* BSP_USING_PWM_TMRA_3 */ - -#ifdef BSP_USING_PWM_TMRA_4 -#ifndef PWM_TMRA_4_CONFIG -#define PWM_TMRA_4_CONFIG \ - { \ - .name = "pwm_a4", \ - .instance = CM_TMRA_4, \ - .channel = 0, \ - .stcTmraInit = \ - { \ - .u8CountSrc = TMRA_CNT_SRC_SW, \ - .u32PeriodValue = 0xFFFF, \ - .sw_count = \ - { \ - .u16ClockDiv = TMRA_CLK_DIV1, \ - .u16CountMode = TMRA_MD_SAWTOOTH, \ - .u16CountDir = TMRA_DIR_DOWN, \ - }, \ - }, \ - .stcPwmInit = \ - { \ - .u32CompareValue = 0x0000, \ - .u16StartPolarity = TMRA_PWM_LOW, \ - .u16StopPolarity = TMRA_PWM_LOW, \ - .u16CompareMatchPolarity = TMRA_PWM_HIGH, \ - .u16PeriodMatchPolarity = TMRA_PWM_LOW, \ - }, \ - } -#endif /* PWM_TMRA_4_CONFIG */ -#endif /* BSP_USING_PWM_TMRA_4 */ - -#ifdef BSP_USING_PWM_TMRA_5 -#ifndef PWM_TMRA_5_CONFIG -#define PWM_TMRA_5_CONFIG \ - { \ - .name = "pwm_a5", \ - .instance = CM_TMRA_5, \ - .channel = 0, \ - .stcTmraInit = \ - { \ - .u8CountSrc = TMRA_CNT_SRC_SW, \ - .u32PeriodValue = 0xFFFF, \ - .sw_count = \ - { \ - .u16ClockDiv = TMRA_CLK_DIV1, \ - .u16CountMode = TMRA_MD_SAWTOOTH, \ - .u16CountDir = TMRA_DIR_DOWN, \ - }, \ - }, \ - .stcPwmInit = \ - { \ - .u32CompareValue = 0x0000, \ - .u16StartPolarity = TMRA_PWM_LOW, \ - .u16StopPolarity = TMRA_PWM_LOW, \ - .u16CompareMatchPolarity = TMRA_PWM_HIGH, \ - .u16PeriodMatchPolarity = TMRA_PWM_LOW, \ - }, \ - } -#endif /* PWM_TMRA_5_CONFIG */ -#endif /* BSP_USING_PWM_TMRA_5 */ - -#ifdef BSP_USING_PWM_TMRA_6 -#ifndef PWM_TMRA_6_CONFIG -#define PWM_TMRA_6_CONFIG \ - { \ - .name = "pwm_a6", \ - .instance = CM_TMRA_6, \ - .channel = 0, \ - .stcTmraInit = \ - { \ - .u8CountSrc = TMRA_CNT_SRC_SW, \ - .u32PeriodValue = 0xFFFF, \ - .sw_count = \ - { \ - .u16ClockDiv = TMRA_CLK_DIV1, \ - .u16CountMode = TMRA_MD_SAWTOOTH, \ - .u16CountDir = TMRA_DIR_DOWN, \ - }, \ - }, \ - .stcPwmInit = \ - { \ - .u32CompareValue = 0x0000, \ - .u16StartPolarity = TMRA_PWM_LOW, \ - .u16StopPolarity = TMRA_PWM_LOW, \ - .u16CompareMatchPolarity = TMRA_PWM_HIGH, \ - .u16PeriodMatchPolarity = TMRA_PWM_LOW, \ - }, \ - } -#endif /* PWM_TMRA_6_CONFIG */ -#endif /* BSP_USING_PWM_TMRA_6 */ - - -#ifdef __cplusplus -} -#endif - -#endif /* __PWM_TMRA_CONFIG_H__ */