Skip to content

New module creation: hal_wch [was: External source integration for soc/wch/ch32v00x/ch32v003fun.h] #76261

Closed
@fabiobaltieri

Description

@fabiobaltieri

Origin

This is to request the creation of a hal_wch repository, as a direct fork of initially containing few selected headers from https://github.com/cnlohr/ch32v003fun. Current repo: https://github.com/kholia/hal_wch

Purpose

Allow Zephyr code to access the register map files of WCH CH32V family of microcontrollers, no plan to use it as an actual HAL, at least initially.

Will include more parts in the future, ble binary blobs if needed etc, same as other hal modules.

Mode of integration

Module, importing https://github.com/kholia/hal_wch as a starting point.

Maintainership

@kholia @nzmichaelh

Pull Request

#76540 (just the module)
#73761 (initial soc support)

Description

The repo is a selection of relevant files from https://github.com/cnlohr/ch32v003fun, for now just the register map for the initial device, MIT licensed.

Future scope would be to have more register maps for other parts from the same vendor, potentially ble support blobs and whatever is needed for supporting these devices.

Dependencies

None.

Revision

kholia/hal_wch@1de9d3e

License

MIT

Notes

Alternatives considered were to import the file directly in the main repository, but that was ruled out due to coding style and license differences. Then it was proposed to track ch32v003fun directly, but that turns out to also be problematic as the repository hosts some extra binary files and other sources with stray licenses. So here we are blank repo, just the files and license.

Metadata

Metadata

Labels

RFCRequest For Comments: want input from the community

Type

Projects

Status

Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions