lancaster-university / codal-core

MIT License
12 stars 27 forks source link

Add REAL_TIME_FUNC attribute #143

Closed mmoskal closed 2 years ago

mmoskal commented 2 years ago

This is needed by RP2040 - the flash is external any function calls into flash typically involve 20us+ latency (which increases the more code you run).

While this is quite ugly, the real ugly bit is in codal-rp2040 where I had to copy a bunch of SDK functions since they do not have these attributes...

finneyj commented 2 years ago

Thanks @mmoskal.

Ugly indeed, but necessary for platforms with external Flash, or it could cause some funky paging for sure!