rasProject_01 / weSweetHome  R. 102 2025-10-31
process control       /     RasPi software         by   weinert-automation
Loading...
Searching...
No Matches
config.h File Reference

Organising platform specific includes for the make process. More...

Detailed Description

Organising platform specific includes for the make process.

Copyright (c) 2018 2025 Albrecht Weinert
weinert-automation.de a-weinert.de
/ / /\
/ /___ / \ |
\ /____\ /____\ | _|__
\ /\ / \ / \| |
\/ \/ \__/ \__/|_

Revision history

Rev. 101 31.10.2025
Rev. 150 18.06.2018 : minor, comments only
Rev. 209 22.07.2019 : work around a Doxygen bug (default from now on Pi4)
Rev. 255 03.08.2023 : minor clarification
Rev. 74 07.02.2025 : optionally include target specific .h file
Rev. 101 31.10.2025 : additional docu links etc.

The different Raspberry types, like Pi1, 3, 4, Zero (0) and 5 can be handled transparently to the control programs. This is done by a make variable TARGET identifying a concrete target machine, i.e. the targets make include makeTarg_<TARGET>_settings.mk, like config_raspberry_00.h to config_raspberry_05.h.
This respective file will among other values set the PLATFORM variable. The latter can also be set directly as PLATFORM = raspberry_03 e.g.. The default is raspberry_04.

The mechanism used is calculated make includes and calculated C includes (organised by this file config.h).