suikan4github / rpp_driver

An experimental Duplex I2S implementation on PIO and its example applications.
MIT License
0 stars 0 forks source link

Cover APIs of the Raspberry Pi Pico SDK. #10

Closed suikan4github closed 1 month ago

suikan4github commented 1 month ago

The v1.0.0 ::rpp_driver::SdkWrapper covers only a few APIs from RasPi Pico SDK. It is nice to expand to cover all.

Currently, covering SDK is by hand. There are several disadvantages:

To overcome this, it is better to generate the API by script. Such the script will traverse the source tree of the RasPi Pico SDK, and search for the prototype. For each prototype, the script needs to generate :

The last one is tricky. This stub function will be overwritten when the appropriate SDK library is linked. If the appropriate SDK library is not connected, the stub will print out the error message and trigger an assertion.

suikan4github commented 1 month ago

So far, we have covered part of APIs experimentally.

suikan4github commented 1 month ago

It was merged to develop.