Basically, I am trying to leverage an existing C library that relies on a few external functions to be defined related to a fundamental delay in microseconds, configuring and starting a timer, and implementing callbacks. It would be nice to use the dynamic native module infrastructure but it looks like this is pushing that mechanism a little too far. As I see it my options are:
- Use the native module (if indeed possible)
- Compile my own custom micropython with a custom module
- Port this C library to pure (micro)Python
I'm kind of inclined to just go with #3 if #1 is not feasible. I sort of prototyped #2 awhile back and it seemed to work, but I had to modify some of the internals of the STM32 port (which may not be required if I knew more..) and maintaining a custom micropython seems like more of an inconvenience going forward.