AdaCore / Ada_Drivers_Library

Ada source code and complete sample GNAT projects for selected bare-board platforms supported by GNAT.
BSD 3-Clause "New" or "Revised" License
240 stars 141 forks source link

Configuration and project wizard scripts #254

Closed Fabien-Chouteau closed 6 years ago

Fabien-Chouteau commented 6 years ago

This pull request is introducing a new configuration mechanism and project file architecture for Ada Drivers Library.

Project wizard

A new script (project_wizard.py) provides the interface to create an ADL project. This script will ask some questions to define the ADL configuration of a project. It will then generate the different files required to use ADL based on this configuration. The questions are for instance, which board do you want to use or do you want to define a custom board. Eventually, this script should get information from the MCU database, but for now only the MCU that we support are listed. Other questions allow to select the run-time profile, HSE value for an STM32 board or configure the number of resources statically allocated for file system

This is a first step, there a probably more constants in the code that we can convert to configuration keys.

Generated files

The project wizard generates two files (for the moment):