summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
Diffstat (limited to 'bsp')
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_common.c2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_common.h2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_flash.h2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_flash_ch32f20x.c2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_gpio.h2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_gpio_ch32f10x.c2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_gpio_ch32f20x.c54
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_hwi2c.h2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_hwi2c_ch32f10x.c2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_hwi2c_ch32f20x.c2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_hwtimer_ch32f10x.c2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_hwtimer_ch32f20x.c4
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_iwdt_ch32f10x.c2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_iwdt_ch32f20x.c2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_log.h2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_pwm_ch32f10x.c2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_pwm_ch32f20x.c6
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_rtc.h2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_rtc_ch32f10x.c2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_rtc_ch32f20x.c2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_spi.h2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f10x.c2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f20x.c2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_uart.h2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_uart_ch32f10x.c2
-rw-r--r--bsp/wch/arm/Libraries/ch32_drivers/drv_uart_ch32f20x.c2
26 files changed, 55 insertions, 55 deletions
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_common.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_common.c
index 64cb979cf1..1b6068b729 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_common.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_common.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_common.h b/bsp/wch/arm/Libraries/ch32_drivers/drv_common.h
index b43bc451a7..e63f68bb3b 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_common.h
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_common.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_flash.h b/bsp/wch/arm/Libraries/ch32_drivers/drv_flash.h
index 44e82800d6..c422e91ffb 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_flash.h
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_flash.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_flash_ch32f20x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_flash_ch32f20x.c
index 600f60bc06..8e0f575cd4 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_flash_ch32f20x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_flash_ch32f20x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_gpio.h b/bsp/wch/arm/Libraries/ch32_drivers/drv_gpio.h
index d92de40fcb..f0e61e9dfc 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_gpio.h
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_gpio.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_gpio_ch32f10x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_gpio_ch32f10x.c
index fb1a2f5c4d..dfe48b0809 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_gpio_ch32f10x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_gpio_ch32f10x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_gpio_ch32f20x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_gpio_ch32f20x.c
index ae0e1aeb6b..8bdeb8db2d 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_gpio_ch32f20x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_gpio_ch32f20x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -102,37 +102,37 @@ static const struct pin_info pin_info_list[] = {
ASSIGN_PIN(48, D, 0),
ASSIGN_PIN(49, D, 1),
ASSIGN_PIN(50, D, 2),
- ASSIGN_PIN(51, D, 3),
- ASSIGN_PIN(52, D, 4),
- ASSIGN_PIN(53, D, 5),
- ASSIGN_PIN(54, D, 6),
- ASSIGN_PIN(55, D, 7),
- ASSIGN_PIN(56, D, 8),
- ASSIGN_PIN(57, D, 9),
- ASSIGN_PIN(58, D, 10),
- ASSIGN_PIN(59, D, 11),
- ASSIGN_PIN(60, D, 12),
- ASSIGN_PIN(61, D, 13),
- ASSIGN_PIN(62, D, 14),
- ASSIGN_PIN(63, D, 15),
+ ASSIGN_PIN(51, D, 3),
+ ASSIGN_PIN(52, D, 4),
+ ASSIGN_PIN(53, D, 5),
+ ASSIGN_PIN(54, D, 6),
+ ASSIGN_PIN(55, D, 7),
+ ASSIGN_PIN(56, D, 8),
+ ASSIGN_PIN(57, D, 9),
+ ASSIGN_PIN(58, D, 10),
+ ASSIGN_PIN(59, D, 11),
+ ASSIGN_PIN(60, D, 12),
+ ASSIGN_PIN(61, D, 13),
+ ASSIGN_PIN(62, D, 14),
+ ASSIGN_PIN(63, D, 15),
#endif
#if defined(GPIOE)
ASSIGN_PIN(64, E, 0),
ASSIGN_PIN(65, E, 1),
ASSIGN_PIN(66, E, 2),
- ASSIGN_PIN(67, E, 3),
- ASSIGN_PIN(68, E, 4),
- ASSIGN_PIN(69, E, 5),
- ASSIGN_PIN(70, E, 6),
- ASSIGN_PIN(71, E, 7),
- ASSIGN_PIN(72, E, 8),
- ASSIGN_PIN(73, E, 9),
- ASSIGN_PIN(74, E, 10),
- ASSIGN_PIN(75, E, 11),
- ASSIGN_PIN(76, E, 12),
- ASSIGN_PIN(77, E, 13),
- ASSIGN_PIN(78, E, 14),
- ASSIGN_PIN(79, E, 15),
+ ASSIGN_PIN(67, E, 3),
+ ASSIGN_PIN(68, E, 4),
+ ASSIGN_PIN(69, E, 5),
+ ASSIGN_PIN(70, E, 6),
+ ASSIGN_PIN(71, E, 7),
+ ASSIGN_PIN(72, E, 8),
+ ASSIGN_PIN(73, E, 9),
+ ASSIGN_PIN(74, E, 10),
+ ASSIGN_PIN(75, E, 11),
+ ASSIGN_PIN(76, E, 12),
+ ASSIGN_PIN(77, E, 13),
+ ASSIGN_PIN(78, E, 14),
+ ASSIGN_PIN(79, E, 15),
#endif
};
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_hwi2c.h b/bsp/wch/arm/Libraries/ch32_drivers/drv_hwi2c.h
index b64ed5db08..5406d88075 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_hwi2c.h
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_hwi2c.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_hwi2c_ch32f10x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_hwi2c_ch32f10x.c
index 148160ef6a..e4118dff92 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_hwi2c_ch32f10x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_hwi2c_ch32f10x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_hwi2c_ch32f20x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_hwi2c_ch32f20x.c
index baccfb3767..5e0236c47d 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_hwi2c_ch32f20x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_hwi2c_ch32f20x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_hwtimer_ch32f10x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_hwtimer_ch32f10x.c
index c89b28b3e9..f8344e8439 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_hwtimer_ch32f10x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_hwtimer_ch32f10x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_hwtimer_ch32f20x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_hwtimer_ch32f20x.c
index 0c67affdf7..5602ee1979 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_hwtimer_ch32f20x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_hwtimer_ch32f20x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -64,7 +64,7 @@ struct hwtimer_device hwtimer_device5 =
.irqn = TIM5_IRQn,
.name = "timer5"};
#endif
-
+
#ifdef BSP_USING_TIM6_HWTIMER
struct hwtimer_device hwtimer_device6 =
{
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_iwdt_ch32f10x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_iwdt_ch32f10x.c
index 9de07c7a17..2ce1631586 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_iwdt_ch32f10x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_iwdt_ch32f10x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_iwdt_ch32f20x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_iwdt_ch32f20x.c
index 5cb916517f..1c0248221c 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_iwdt_ch32f20x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_iwdt_ch32f20x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_log.h b/bsp/wch/arm/Libraries/ch32_drivers/drv_log.h
index 3fe511789b..e1b61708cc 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_log.h
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_log.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_pwm_ch32f10x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_pwm_ch32f10x.c
index 1ea48d392a..8c5d65ecff 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_pwm_ch32f10x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_pwm_ch32f10x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_pwm_ch32f20x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_pwm_ch32f20x.c
index 73c064a4d3..5726d0f7ff 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_pwm_ch32f20x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_pwm_ch32f20x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -34,7 +34,7 @@ struct rtdevice_pwm_device
};
/*
-* channel = 0xFF: the channel is not use.
+* channel = 0xFF: the channel is not use.
*/
struct rtdevice_pwm_device pwm_device_list[] =
{
@@ -422,7 +422,7 @@ static rt_err_t ch32f2_pwm_device_set(struct rt_device_pwm *device, struct rt_pw
TIM_TimeBaseInit(pwm_device->periph, &TIM_TimeBaseInitType);
-
+
TIM_OCStructInit(&TIM_OCInitType);
TIM_OCInitType.TIM_OCMode = TIM_OCMode_PWM1;
TIM_OCInitType.TIM_OutputState = TIM_OutputState_Enable;
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_rtc.h b/bsp/wch/arm/Libraries/ch32_drivers/drv_rtc.h
index f6a32665b2..5fe4a6cd70 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_rtc.h
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_rtc.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_rtc_ch32f10x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_rtc_ch32f10x.c
index eab2db5b2c..3f6237d93f 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_rtc_ch32f10x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_rtc_ch32f10x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_rtc_ch32f20x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_rtc_ch32f20x.c
index 88886cad02..6dec0ef02f 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_rtc_ch32f20x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_rtc_ch32f20x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_spi.h b/bsp/wch/arm/Libraries/ch32_drivers/drv_spi.h
index 1683afb6ad..40c5566790 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_spi.h
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_spi.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f10x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f10x.c
index 724df88d4a..1aa65bb323 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f10x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f10x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f20x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f20x.c
index d0cc1f5d5d..656dff87f4 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f20x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f20x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_uart.h b/bsp/wch/arm/Libraries/ch32_drivers/drv_uart.h
index c40bee44bc..89a0b2b032 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_uart.h
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_uart.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_uart_ch32f10x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_uart_ch32f10x.c
index fa256e9c96..bf4f9b012f 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_uart_ch32f10x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_uart_ch32f10x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_uart_ch32f20x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_uart_ch32f20x.c
index 672fcdc581..bac66246d1 100644
--- a/bsp/wch/arm/Libraries/ch32_drivers/drv_uart_ch32f20x.c
+++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_uart_ch32f20x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*