Community-PIO-CH32V / platform-ch32v

PlatformIO platform for CH32V RISC-V chips (CH32V003, CH32V103, CH32V20x, CH32V30x, CH32X035) and CH56x, CH57x, CH58x, CH59x
Apache License 2.0
237 stars 37 forks source link

Add C++ examples #18

Closed maxgerhardt closed 1 year ago

maxgerhardt commented 1 year ago

The W.CH docs show how to do C++ with the chips at

https://github.com/openwch/ch32v307/tree/main/C%2B%2B

but the startup files are missing a call into the C++ constructors. We need to correct that, possibly also add something to the linking stage (-lstdc++?) and add a C++ example (e.g. Blinky) here.

maxgerhardt commented 1 year ago

C++ examples added in https://github.com/Community-PIO-CH32V/platform-ch32v/tree/develop/examples/blinky-cpp-none-os plus Arduino.