Skip to content

Commit 80695db

Browse files
committed
modules: Update hal_wch
Update hal_wch. As the hal upstream changed name, there is now a name conflict. Rename ch32fun.h to hal_ch32fun.h to fix this conflict. Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
1 parent 0f1d7d3 commit 80695db

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

drivers/clock_control/clock_control_wch_rcc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <zephyr/drivers/clock_control.h>
1515
#include <zephyr/sys/util_macro.h>
1616

17-
#include <ch32fun.h>
17+
#include <hal_ch32fun.h>
1818

1919
#define WCH_RCC_CLOCK_ID_OFFSET(id) (((id) >> 5) & 0xFF)
2020
#define WCH_RCC_CLOCK_ID_BIT(id) ((id) & 0x1F)

drivers/gpio/wch_gpio_ch32v00x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <zephyr/dt-bindings/gpio/gpio.h>
1111
#include <zephyr/irq.h>
1212

13-
#include <ch32fun.h>
13+
#include <hal_ch32fun.h>
1414

1515
#define DT_DRV_COMPAT wch_gpio
1616

drivers/interrupt_controller/intc_wch_pfic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#define DT_DRV_COMPAT wch_pfic
88

9-
#include <ch32fun.h>
9+
#include <hal_ch32fun.h>
1010

1111
#include <zephyr/arch/cpu.h>
1212
#include <zephyr/init.h>

drivers/pinctrl/pinctrl_wch_20x_30x_afio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <zephyr/drivers/pinctrl.h>
1111
#include <zephyr/dt-bindings/pinctrl/ch32v20x_30x-pinctrl.h>
1212

13-
#include <ch32fun.h>
13+
#include <hal_ch32fun.h>
1414

1515
static GPIO_TypeDef *const wch_afio_pinctrl_regs[] = {
1616
(GPIO_TypeDef *)DT_REG_ADDR(DT_NODELABEL(gpioa)),

drivers/pinctrl/pinctrl_wch_afio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <zephyr/drivers/pinctrl.h>
1111
#include <zephyr/dt-bindings/pinctrl/ch32v003-pinctrl.h>
1212

13-
#include <ch32fun.h>
13+
#include <hal_ch32fun.h>
1414

1515
static GPIO_TypeDef *const wch_afio_pinctrl_regs[] = {
1616
(GPIO_TypeDef *)DT_REG_ADDR(DT_NODELABEL(gpioa)),

drivers/serial/uart_wch_usart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <zephyr/drivers/pinctrl.h>
1313
#include <zephyr/irq.h>
1414

15-
#include <ch32fun.h>
15+
#include <hal_ch32fun.h>
1616

1717
struct usart_wch_config {
1818
USART_TypeDef *regs;

drivers/timer/wch_systick_ch32v00x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <zephyr/kernel.h>
1313
#include <zephyr/sys/util.h>
1414

15-
#include <ch32fun.h>
15+
#include <hal_ch32fun.h>
1616

1717
#define STK_SWIE BIT(31)
1818
#define STK_STRE BIT(3)

modules/hal_wch/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
if(CONFIG_SOC_FAMILY_CH32V)
2-
zephyr_include_directories(${ZEPHYR_HAL_WCH_MODULE_DIR}/ch32v003fun .)
2+
zephyr_include_directories(${ZEPHYR_HAL_WCH_MODULE_DIR}/ch32fun .)
33
endif()

modules/hal_wch/ch32fun.h renamed to modules/hal_wch/hal_ch32fun.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@
99

1010
#if defined(CONFIG_SOC_CH32V003)
1111
#define CH32V003 1
12-
#include <ch32v003fun.h>
12+
#include <ch32fun.h>
1313
#endif
1414

1515
#if defined(CONFIG_SOC_SERIES_CH32V00X)
1616
#define CH32V003 1
17-
#include <ch32v003fun.h>
17+
#include <ch32fun.h>
1818
#endif
1919

2020
#if defined(CONFIG_SOC_SERIES_QINGKE_V4B)
2121
#define CH32V20x 1
22-
#include <ch32v003fun.h>
22+
#include <ch32fun.h>
2323
#endif
2424

2525
#if defined(CONFIG_SOC_SERIES_QINGKE_V4C)
2626
#define CH32V20x 1
27-
#include <ch32v003fun.h>
27+
#include <ch32fun.h>
2828
#endif
2929

3030
#endif

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ manifest:
265265
groups:
266266
- hal
267267
- name: hal_wch
268-
revision: 1de9d3e406726702ce7cfc504509a02ecc463554
268+
revision: 941f5182b5577d168e0cbcc0c9dd26294c1806a5
269269
path: modules/hal/wch
270270
groups:
271271
- hal

0 commit comments

Comments
 (0)