Skip to content

hal: Update mainly C components to getter/setter. - #4324

Merged
grandixximo merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:halgs_components-simple-5
Aug 3, 2026
Merged

hal: Update mainly C components to getter/setter.#4324
grandixximo merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:halgs_components-simple-5

Conversation

@BsAtHome

@BsAtHome BsAtHome commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Next set of components upgraded to getter/setter. Quite straight forward.

Both demux_generic.c and mux_generic.c have removed the distinction between FP/non-FP thread function export. All threads are FP and we can make it easier. The implementation is no a all-to-all version (except is still does not have 64-bit pins). The magic numbers have been replaced with a macro.

The max31855.comp has had the float types replaced with rtapi_real (effectively double), which means that a numeric difference can occur at 5..6 decimals. However, I don't believe that this stuff can measure temperatures at those levels, so it should be academic.

In pwmgen.c several pins are now cached because they were read quite often. This should all work as expected. There are several more optimizations possible, but that is for another time.

Comment thread src/hal/components/demux_generic.c Outdated
Comment thread src/hal/components/matrix_kb.c Outdated
@BsAtHome
BsAtHome force-pushed the halgs_components-simple-5 branch from c743ac1 to 670094a Compare August 3, 2026 08:22
Comment thread src/hal/components/matrix_kb.c Outdated
@BsAtHome
BsAtHome force-pushed the halgs_components-simple-5 branch from 670094a to bc02955 Compare August 3, 2026 09:15
@grandixximo
grandixximo merged commit 71bf880 into LinuxCNC:master Aug 3, 2026
16 checks passed
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