-
Notifications
You must be signed in to change notification settings - Fork 7.4k
API and component naming conventions #29569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This seems to be a pretty broad issue. Is this things like:
Does it answer questions like:
Or is this a list of things for which documentation needs to be provided and the details will be handled at a lower level. A clear written description of the problem and the criteria for an acceptable solution could make discussion more effective. |
API meeting 27th October 2020: Terms:
Standard prefixes:
To be continued next week. |
the old naming conventions that might shed some light on the background: https://github.com/zephyrproject-rtos/zephyr/wiki/Naming-Conventions |
API meeting 19th January 2021: Terms: arch: Architecture-specific code. All arch code lives in the arch/ and include/arch folders Core OS: Kernel and basic functionality included in Zephyr:
Subsystems: Hardware independent software components
Drivers: All driver implementations in drivers/ and driver APIs in include/drivers/ Standard prefixes: arch: arch_ z_: Internal APIs. Not to be used by code outside the module, not exposed in include/ |
It would be a good idea to have a link to the naming conventions in the Zephyr documentation, and possibly somewhere before any examples are discussed. For me, after taking a look at the "synchronization" example, it took some googling to find this issue and the link to the naming conventions document. |
Might be worth setting some general naming convention, or how to short names. It is quite annoying, when you switch between APIs, to remind yourself whether offset in function call is now spelled "offset", "off" or "offs". |
The following two items are to be covered by this issue:
The text was updated successfully, but these errors were encountered: