diff options
| author | Frédéric Desbiens <[email protected]> | 2026-09-15 16:24:50 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-09-15 16:24:50 -0400 |
| commit | 3e5a16c95bff3086cc28fecec292894a4f94a34d (patch) | |
| tree | cfd12450e3c72b4ba518c489a272a4f6128823a4 /common_modules/module_lib/src/txm_module_object_pointer_get.c | |
| parent | 9b2979e6b010edb27c741c3e58e9de5faa911528 (diff) | |
Allowed tx_timer_change to be called from tx_application_define (#730)
Fixes #224
`_txe_timer_change` returned `TX_CALLER_ERROR` for any call at or above
`TX_INITIALIZE_IN_PROGRESS`, making `tx_timer_change` the only timer service
that could not be called from `tx_application_define` -- while still being
allowed from an ISR.
The check has no technical basis: `_tx_timer_change` only writes the expiration
fields of a timer that is not on an active list, with interrupts disabled.
Removed it from both the `common` and `common_smp` copies of
`txe_timer_change.c`, with the now-unused includes and the `TX_CALLER_ERROR`
line in the header comment. Relaxing an error check is backward compatible.
`testcontrol.c` in both suites now calls `tx_timer_change` at initialization, so
the timer simple test covers it: `ERROR #30` on `dev`, green with the fix.
116/116 SMP, 103/103 non-SMP.
Assisted-by: Copilot (Opus 5) <[email protected]>
Diffstat (limited to 'common_modules/module_lib/src/txm_module_object_pointer_get.c')
0 files changed, 0 insertions, 0 deletions
