Deterministic Hardware Access

MCAL Drivers

image

MCAL Drivers

MCAL provides a hardware abstraction layer that isolates upper software layers from direct microcontroller dependencies. It offers standardized, low-level drivers for core MCU peripherals, enabling portability, predictable behaviour, and consistent access to hardware resources across supported platforms.

The MCAL layer handles direct interaction with MCU registers and peripherals while exposing uniform APIs to higher layers. This allows application and middleware components to remain independent of the underlying hardware, simplifying integration and reuse across projects.

LeanStack MCAL drivers are designed for performance, reliability, and deterministic execution, making them suitable for real-time embedded systems and production-grade ECU software.

Available Drivers:

Communication Drivers: CAN, LIN and SPI drivers providing reliable data transfer, interrupt handling, and peripheral control.

Memory Drivers: Flash and EEPROM drivers supporting erase, write, read operations, and memory access abstraction.

Analog & Digital I/O Drivers: ADC, PWM, and DIO drivers enabling precise signal measurement, output control, and pin-level interaction.

System & Timing Drivers:GPT, MCU, and WDG drivers managing clocks, timers, resets, power modes, and system supervision.