Nordic Semiconductor nRF5 AirFuel SDK  version 2.2.0
Code architecture
arch_block.png
PRU/PTU code architecture

Working with the code

The source code for the PTU and PRU applications are divided into the following abstraction layers:

  • Main application
    • Initializes and SoftDevice and PRU/PTU profiles.
    • Handles UART debug interface
  • Profile API
  • Hardware abstraction layer (HAL)
    • Hardware specific implementation of sensor reading and HW control functions (see ptu_hal.h / pru_hal.h). This layer needs to be customized for the HW being used
example_sequence.png
PRU and PTU example code sequence.