I need it only to enforce a lower bound check on the "interval" value passed to tlp_publish(); I would like that this check remains valid even if I move from a library version to another and the actual granularity changes (as it happened when it moved from 10ms down to 5ms).
I temporarily moved it into trdp_if_light.h but I belive trdp_types.h is ok, since it is public and I can include it.
Another solution could be defining something like TRDP_INTERVAL_MIN (without moving away TRDP_TIMER_GRANULARITY).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In principle, yes. In trdp_types.h?
I need it only to enforce a lower bound check on the "interval" value passed to tlp_publish(); I would like that this check remains valid even if I move from a library version to another and the actual granularity changes (as it happened when it moved from 10ms down to 5ms).
I temporarily moved it into trdp_if_light.h but I belive trdp_types.h is ok, since it is public and I can include it.
Another solution could be defining something like
TRDP_INTERVAL_MIN(without moving awayTRDP_TIMER_GRANULARITY).-> moved to trdp_types.h