summaryrefslogtreecommitdiff
path: root/components/rtgui/common/jpeg/missing
diff options
context:
space:
mode:
authorymj0440 <[email protected]>2026-12-01 10:19:18 +0800
committerGitHub <[email protected]>2026-12-01 10:19:18 +0800
commit75b53af8ccd14047b836488869e75a3f0be27f4e (patch)
tree64232c9a3bbc148e4d6efafa895fcee96923d0f5 /components/rtgui/common/jpeg/missing
parent373b0729a403a9618fd7900961aeba5773760e63 (diff)
[components][drivers][can] limit filter masks to the identifier width (#12089)
* [components][drivers][can] limit filter masks to the identifier width RT_CAN_FILTER_STD_INIT() and the other helpers initialized their mask with 0xFFFFFFFF, which carries bits outside the identifier width: 11 bits for a standard frame and 29 bits for an extended one. A mask in Mask Mode selects the identifier bits a filter compares, so bits above the width do not belong there. Add RT_CAN_STD_ID_MASK (0x7FF) and RT_CAN_EXT_ID_MASK (0x1FFFFFFF) and use them in all twelve helper macros. Drivers that shift the mask into the hardware filter registers are unaffected, because the shifted value is the same for the old and the new mask; the change makes the API correct for drivers that use the mask in software and removes the ambiguity reported in #11576. Signed-off-by: ymj0440 <[email protected]> * [components][drivers][can] clang-format the filter helper macros The helper macros changed in the previous commit did not follow the repository clang-format style: arguments are separated by a space and the continuation line is indented by four spaces. Signed-off-by: ymj0440 <[email protected]> --------- Signed-off-by: ymj0440 <[email protected]> Co-authored-by: ymj0440 <[email protected]>
Diffstat (limited to 'components/rtgui/common/jpeg/missing')
0 files changed, 0 insertions, 0 deletions