Commit Graph

6 Commits

Author SHA1 Message Date
iabdalkader
e5cdccc72e common: Introduce profiling support.
This adds a simple code profiler that leverages both SysTick and
the Performance Monitoring Unit (PMU) available on Armv8.1-M cores.
SysTick provides a simple high-resolution timer source, while the PMU
offers a cycle counter and multiple configurable event counters that
can track low-level performance metrics such as cache misses, pipeline
stalls, etc... See the Armv8.1-M Performance Monitoring User Guide
for additional details.

Function-level instrumentation is enabled using -finstrument-functions
on select files to automatically record statistics on entry/exit.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-08-24 16:57:06 +02:00
iabdalkader
90bd11e937 common: Refactor TinyUSB debug interface implementation.
This commit refactors the TinyUSB debug interface with the following changes:

- Handle disabled IRQs.
- Replace global variables with centralized state.
- Add timeout, and validation for more robust transfers (as much as possible
  given the protocol limits).
- Remove obsolete/unsupported commands (attr read/write, script save etc..)

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-08-23 20:16:09 +02:00
iabdalkader
5d1f8860b1 imlib: Rework framebuffer management.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-07-23 18:24:52 +02:00
iabdalkader
a9d6567a18 common: Add common align and section align macro.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-07-16 11:18:51 +02:00
iabdalkader
c8a486cbda common: Add container_of macro.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-07-12 17:12:34 +02:00
iabdalkader
daf2bb30da misc: Restructure repo.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-04-13 08:28:34 +02:00