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
PRU and PTU example code sequence.