Tactility/TactilityKernel
Ken Van Hoeylandt 03a6285328
Add kernel memory functions & other memory-related changes (#590)
New Features

- Added policy-based memory allocation APIs with capability flags and optional alignment: `memory_alloc_with_policy`, `memory_realloc_with_policy`, `memory_calloc_with_policy`, and `memory_free`.
- Switched heap memory reporting to `memory_print_stats`.

Bug Fixes

- Improved allocation robustness with capability fallback behavior.
- Added overflow-safe handling for aligned zero-initialized allocations.
- Tightened const-correctness for generated device-tree device arrays.

Tests

- Added unit tests for default policy, alignment, zero-initialization, realloc preservation, freeing, and memory stats reporting.
2026-07-26 22:59:18 +02:00
..

TactilityKernel

TactilityKernel is the core component of the Tactility project, providing a hardware abstraction layer (HAL) and essential kernel services for embedded systems.

Features

  • Device and Driver Model: A flexible system for managing hardware devices and their corresponding drivers.
  • Peripheral Support: Standard interfaces for common peripherals:
    • GPIO (General Purpose Input/Output)
    • I2C (Inter-Integrated Circuit)
    • I2S (Inter-IC Sound)
    • SPI (Serial Peripheral Interface)
    • UART (Universal Asynchronous Receiver-Transmitter)
  • Concurrency Primitives: Built-in support for multi-threaded environments, including:
    • Threads and Dispatchers
    • Mutexes and Recursive Mutexes
    • Event Groups
    • Timers
  • Module System: Support for loadable modules that can export symbols and provide runtime-extensible functionality.
  • Device Tree Integration: Utilizes a devicetree-like system for hardware configuration and initialization.
  • Cross-Platform: Designed to run on both embedded platforms (such as ESP32) and desktop environments (Linux) for simulation and testing.