FREE X427 board for the first 50 college students · first 50offer ends 31 Dec

Reading view

Documentation

Hardware abstraction

NavHAL

NavHAL is NAVRobotec's C hardware abstraction layer for embedded targets. It exposes one frozen hal_* C API (HAL_API_VERSION 1) over layered arch, vendor, family and board sources, and is built with a Kconfig-driven build.

Who it is for
Firmware authors, and the layers above it: VaiOS, Vayu and nav applications.
Version
0.4.2 (release v0.4.2)
HAL API
HAL_API_VERSION 1
License
Apache-2.0
This book
13 chapters
Start reading Chapter 1: Introduction

Chapters

  1. 01IntroductionNavHAL is a core component of the VAYU flight control stack, responsible for providing a deterministic and structured interface between the underlying hardware platform and higher-level software layers.
  2. 02MotivationEmbedded flight control systems require precise timing, efficient execution, and direct interaction with hardware peripherals.
  3. 03Design GoalsNavHAL is designed to address the limitations of existing abstraction approaches by combining simplicity, performance, and control within a single unified framework.
  4. 04Architecture of NavHALNavHAL is structured as a statically configured abstraction layer that separates hardware interaction across three orthogonal domains: processor architecture, vendor-specific implementation, and board-level...
  5. 05Interface Design (APIs)The interface design of NavHAL is centered around simplicity, consistency, and explicit control over hardware behavior.
  6. 06Peripheral AbstractionsNavHAL provides a uniform abstraction model across all hardware peripherals, enabling consistent interaction patterns while maintaining low-level control and minimal runtime overhead.
  7. 07Resource ManagementNavHAL adopts a minimal and explicit approach to resource management, prioritizing determinism and low overhead over dynamic flexibility.
  8. 08Timing and DeterminismDeterministic execution is a fundamental requirement in flight control systems, where control loops operate at high frequencies and depend on predictable timing behavior.
  9. 09Portability ModelNavHAL achieves portability through structured separation of hardware concerns and compile-time specialization.
  10. 10Integration with VaiOSNavHAL is designed to operate independently of any execution framework and does not require a real-time operating system for its functionality.
  11. 11Performance EvaluationThe performance of NavHAL was evaluated using a set of micro-benchmarks on an STM32F401RE microcontroller.
  12. 12Comparison with Existing HALsThis section compares NavHAL with commonly used hardware abstraction layers, including STM32 HAL, Arduino, and low-level (LL) register access.
  13. 13SummaryThis chapter presented NavHAL, a hardware abstraction layer designed to provide high-level usability while preserving the performance characteristics of direct register access.