jwang12340 opened a new pull request, #18314:
URL: https://github.com/apache/nuttx/pull/18314

   *Note: Please adhere to [Contributing 
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   
   optimized can_bytes2dlc and can_dlc2bytes common functions
   1.make can_bytes2dlc() and can_dlc2bytes() inline; 
   2. use lookup table to decrease funcion's complexity;
   
   ## Impact
   
   CAN
   
   ## Testing
   
   Test Environment: QEMU ARM v8-R (32-bit, Aarch32)
   
   tx:
   
![img_v3_02uh_27c09901-37bb-4ae0-b84f-a1575d989adg](https://github.com/user-attachments/assets/fae5553f-bbd2-4305-8ae0-510c8fd6c68b)
   
   rx:
   
![img_v3_02uh_3d624e28-c337-431f-ac21-0265714ef69g](https://github.com/user-attachments/assets/13eb1354-4bb7-49cf-824d-925266d4ae7e)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to