Skip to content

docs: Update to reflect the HAL API changes - #4596

Merged
grandixximo merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:hal64_update-docs
Sep 29, 2026
Merged

grandixximo merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:hal64_update-docs

Conversation

@BsAtHome

Copy link
Copy Markdown
Contributor

These are the main documentation updates after the HAL API break (#4565).

Note: the code and components still need to be made 64-bit clean. The update only describes the HAL visibility for users.

Comment thread docs/src/drivers/pmx485.adoc Outdated
Comment thread docs/src/hal/rtcomps.adoc Outdated
Comment thread docs/src/hal/rtcomps.adoc Outdated
Comment thread docs/src/drivers/gs2.adoc Outdated
Comment thread docs/src/config/python-hal-interface.adoc
Comment thread docs/src/hal/comp.adoc Outdated
Comment thread docs/src/hal/basic-hal.adoc Outdated
`hal.HAL_BOOL`, `hal.HAL_SINT`, `hal.HAL_UINT`, `hal.HAL_REAL`, `hal.HAL_PORT`.

Deprecated constants (replaced with new names, please use `hal.Type.XXXX`):
`hal.HAL_BIT`, `hal.HAL_S64`, `hal.HAL_U64`, `hal.HAL_FLOAT`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The deprecated list covers HAL_BIT/HAL_FLOAT/HAL_S64/HAL_U64, but the hal.py getattr shim also accepts HAL_S32 and HAL_U32 (with a 'no longer supported' FutureWarning). Add them here for completeness?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I considered it, but rejected it. The base code no longer has them and the shim replaces them with UINT/SINT. The warning is different for these than for the others. In python we can just pretend because it does not really care about the integer size. Besides, there is a (very) large list of things you need to do when migrating and this doc is just a tiny fraction. Better put that in the "upgrade" doc(s) is my thinking.

@grandixximo
grandixximo merged commit e7e2c5d into LinuxCNC:master Sep 29, 2026
17 checks passed
grandixximo added a commit to grandixximo/linuxcnc that referenced this pull request Sep 29, 2026
Bulk rename of type-position bit/float/s32/u32 to bool/real/sint/uint,
which the HAL API docs update (LinuxCNC#4596-LinuxCNC#4599) did not cover. Prose uses
(bit stream, firmware bit files, 16/18-bit galvanometer protocol
widths) are left alone.
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.

2 participants