Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bradjc
Copy link
Contributor

@bradjc bradjc commented Jul 16, 2025

Currently if an app uses a libtock driver, the driver_syscalls.h header is included automatically. This undoes that, requiring apps to explicitly include the syscalls header if the want to use the low-level syscalls.

Benefits:

  • #includes become a signal that apps are using low-level APIs, which may not be the intention.
  • libtock becomes more explicit in how it is being used, in-line with other languages (eg Rust).

Impacts:

  • Need to duplicate the _exists() function in syscalls (which needs the driver num), in libtock (for async apps) and in libtock-sync (for sync apps).

ppannuto
ppannuto previously approved these changes Jul 16, 2025
@bradjc
Copy link
Contributor Author

bradjc commented Jul 22, 2025

I can't figure out why this build is failing. It doesn't touch anything related to u8g2.

@ppannuto
Copy link
Member

Rebased; u8g2 builds fine locally now

@ppannuto
Copy link
Member

Okay, got this to happy green checkmarks.

@bradjc , you should verify that this change makes sense, I honestly don't understand how the original code was ever accepted (or what the irq parameter was doing here), but I find the whole lr1110 stack a bit confusing, so it may just be me being confused; the rest of the changes were more rote.

@bradjc
Copy link
Contributor Author

bradjc commented Aug 15, 2025

Looks good to me.

@alevy alevy added this pull request to the merge queue Aug 15, 2025
Merged via the queue into master with commit ca48e29 Aug 15, 2025
6 checks passed
@alevy alevy deleted the syscalls-separate branch August 15, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants