# 6.1. Source Tree Structure

The MCAF is organized into several subdirectories. When used with motorBench® Development Suite, these are generated under the MPLAB® X project directory under `motorBench/generated_code`.

- Most modules are located under the top-level directory.
- `hal` contains the Hardware Abstraction Layer
- `parameters` contains header files with configurable parameters.
- `library` contains library files for the Motor Control Library
- `aux-files` contains auxiliary files that aren’t C code, such as report files generated by motorBench® Development Suite.

Information on particular source code files is organized by module name, in the index under “modules”. (Module name is just the base name of the file, ignoring the file extension and, if present, the trailing `_types`: for example, `commutation.c`, `commutation.h`, and `commutation_types.h` are all part of the `commutation` module.)