phoenix-rtos / phoenix-rtos-devices

Phoenix-RTOS device drivers repository
BSD 3-Clause "New" or "Revised" License
19 stars 13 forks source link

stm32l4-multi/libuart: optimize infiniteRxHandler #473

Closed lukileczo closed 7 months ago

lukileczo commented 7 months ago

Description

Optimize libuart_infiniteRxHandler:

Examples from testing:

00000384_ABCDEFGHIJKLMNOPQRSTUVWXYZ123469
00000385_ABCNOPQRSTUVWXYZ123469
00000386_ABCDEFGHIJKLMNOPQRSTUVWXYZ123469

In 385 overrun was detected.

00000284_ABCDEFGHIJKLMNOPQRSTUVWXYZ123469NOPQRSTUVWXYZ123469

\n\r and start of next line dropped, overrun was detected.

Motivation and Context

Types of changes

How Has This Been Tested?

Checklist:

Special treatment

github-actions[bot] commented 7 months ago

Unit Test Results

7 155 tests  ±0   6 448 :white_check_mark: ±0   33m 46s :stopwatch: -18s   397 suites ±0     707 :zzz: ±0      1 files   ±0       0 :x: ±0 

Results for commit 71bfc0be. ± Comparison against base commit dd197dbc.

:recycle: This comment has been updated with latest results.