west: add the hal_wch
This is used for WCH chips including the CH32V003. Signed-off-by: Dhiru Kholia <dhiru.kholia@gmail.com>
This commit is contained in:
parent
6d87bd65ae
commit
9e2867a76d
6 changed files with 50 additions and 0 deletions
|
|
@ -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
Normal file
3
modules/hal_wch/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
if(CONFIG_SOC_SERIES_CH32V00X)
|
||||
zephyr_include_directories(${ZEPHYR_HAL_WCH_MODULE_DIR}/ch32v003fun .)
|
||||
endif()
|
||||
7
modules/hal_wch/Kconfig
Normal file
7
modules/hal_wch/Kconfig
Normal file
|
|
@ -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
Normal file
15
modules/hal_wch/ch32fun.h
Normal file
|
|
@ -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
Normal file
12
modules/hal_wch/funconfig.h
Normal file
|
|
@ -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
5
west.yml
|
|
@ -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…
Reference in a new issue