[bsp/wch/arm/Libraries/ch32_drivers]format code.

This commit is contained in:
charlown 2022-01-25 16:53:04 +08:00 committed by guo
parent 7b2b9cdb70
commit 94cfe1d338
26 changed files with 55 additions and 55 deletions

View File

@ -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
*

View File

@ -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
*

View File

@ -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
*

View File

@ -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
*

View File

@ -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
*

View File

@ -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
*

View File

@ -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
};

View File

@ -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
*

View File

@ -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
*

View File

@ -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
*

View File

@ -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
*

View File

@ -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 =
{

View File

@ -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
*

View File

@ -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
*

View File

@ -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
*

View File

@ -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
*

View File

@ -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;

View File

@ -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
*

View File

@ -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
*

View File

@ -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
*

View File

@ -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
*

View File

@ -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
*

View File

@ -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
*

View File

@ -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
*

View File

@ -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
*

View File

@ -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
*