summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsp-cai <[email protected]>2024-05-08 14:13:52 +0800
committerMeco Man <[email protected]>2024-05-08 18:09:17 -0400
commit95f0b029b03474a515924bd781e1643c591450e1 (patch)
treed243f38a62e355a05d7eb9425d7d59bfce805425
parent5f077a6df0e4116859108436c0fce4e30a116b76 (diff)
[BSP][HC32F460]清理已不再使用的文件
PWM 配置文件 pwm_tmra_config.h 已合并到 pwm_tmr_config.h 了。
-rw-r--r--bsp/hc32/ev_hc32f460_lqfp100_v2/board/config/pwm_tmra_config.h205
1 files changed, 0 insertions, 205 deletions
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 a8f6727ff1..0000000000
--- 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 <rtthread.h>
-
-#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__ */