Skip to content

Constparam#67

Merged
johandc merged 27 commits intomasterfrom
constparam
Feb 21, 2026
Merged

Constparam#67
johandc merged 27 commits intomasterfrom
constparam

Conversation

@johandc
Copy link
Contributor

@johandc johandc commented Feb 3, 2026

This branch started since maing param_t const, changes the interface.

It further collects a number of improvements to memory and stack usage.

These are given funky names by gcc, like csp_buffer_pool.2, which make them difficult for static analysis tools to find and put into context.

Moving to file scope is only a slight scope increase which can be tolerated for the benefits of static analysis.
For remote parameters use param_define_remote instead
also remove include vmem.h as its not used
This conflicts with some users having const region and others non const region
User may not always double check his param is found after param_list_find so add this as an added safety aginst users
The init, configure and periodic calls, together with shall publish hook was just too much traffic in and out of the library. This is more efficient and easy to read code to perform all in userspace code.
If a parameters physical address is not aligned to the type it will assert.
If arrays are used, and the size of the array step is not aligned to the type, it will also assert.
limits.h uses a gcc feature called include_next, this one is warned about when using pedantic warning level. There is no way to ignore this one, so we need to go down to level 2.
This avoids integer constant compiler warning
@johandc johandc merged commit edacecd into master Feb 21, 2026
1 check failed
@johandc johandc deleted the constparam branch February 21, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant