Browse Source

west: add the hal_wch

This is used for WCH chips including the CH32V003.

Signed-off-by: Dhiru Kholia <dhiru.kholia@gmail.com>
pull/82071/head
Dhiru Kholia 11 months ago committed by Fabio Baltieri
parent
commit
9e2867a76d
  1. 8
      MAINTAINERS.yml
  2. 3
      modules/hal_wch/CMakeLists.txt
  3. 7
      modules/hal_wch/Kconfig
  4. 15
      modules/hal_wch/ch32fun.h
  5. 12
      modules/hal_wch/funconfig.h
  6. 5
      west.yml

8
MAINTAINERS.yml

@ -4881,6 +4881,14 @@ West: @@ -4881,6 +4881,14 @@ West:
labels:
- "platform: TI"
"West project: hal_wch":
status: maintained
maintainers:
- nzmichaelh
- kholia
files:
- modules/hal_wch/
"West project: hal_wurthelektronik":
status: maintained
maintainers:

3
modules/hal_wch/CMakeLists.txt

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
if(CONFIG_SOC_SERIES_CH32V00X)
zephyr_include_directories(${ZEPHYR_HAL_WCH_MODULE_DIR}/ch32v003fun .)
endif()

7
modules/hal_wch/Kconfig

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
#
# Copyright (c) 2024 Dhiru Kholia
#
# SPDX-License-Identifier: Apache-2.0
#
# file is empty and kept as a place holder if/when Kconfig is needed

15
modules/hal_wch/ch32fun.h

@ -0,0 +1,15 @@ @@ -0,0 +1,15 @@
/*
* Copyright (c) 2024 Dhiru Kholia
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _CH32FUN_H
#define _CH32FUN_H
#if defined(CONFIG_SOC_CH32V003)
#define CH32V003 1
#include <ch32v003fun.h>
#endif
#endif

12
modules/hal_wch/funconfig.h

@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
/*
* Copyright (c) 2024 Dhiru Kholia
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _FUNCONFIG_H
#define _FUNCONFIG_H
/* Note: The hal_wch expects a 'funconfig.h' file to be present */
#endif

5
west.yml

@ -247,6 +247,11 @@ manifest: @@ -247,6 +247,11 @@ manifest:
path: modules/hal/ti
groups:
- hal
- name: hal_wch
revision: 1de9d3e406726702ce7cfc504509a02ecc463554
path: modules/hal/wch
groups:
- hal
- name: hal_wurthelektronik
revision: e3e2797b224fc48fdef1bc3e5a12a7c73108bba2
path: modules/hal/wurthelektronik

Loading…
Cancel
Save