在最近的更新中,micropython的源码里添加了使用用户C/C++模块的例子,方便增加自己的功能模块。
stm32: Support C++ code and user C modules written in C++.
Also build user C modules as part of the stm32 CI.
https://github.com/micropython/micropython/commit/97960dc7deb7a0e691fca5944402cd03386b744b