rasProject_01 / weSweetHome  R. 146 2026-09-26
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 2026 Albrecht Weinert
weinert-automation.de a-weinert.de
/ / /\
/ /___ / \ |
\ /____\ /____\ | _|__
\ /\ / \ / \| |
\/ \/ \__/ \__/|_

Revision history

Rev. 145 17.09.2026
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 (last on discontinued 1&1 derver)
Rev. 74 07.02.2025 : optionally include target specific .h file
Rev. 101 31.10.2025 : additional docu links etc.
Rev. 145 17.09.2026 : comments clarified (Doxygen)

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, like e.g. meterPi or growPi. This will include the target machine's make include file makeTarg_<TARGET>_settings.mk, like e.g. makeTarg_meterPi_settings.mk.
This respective file will among other values set the PLATFORM variable by PLATFORM = raspberry_03 in the example.

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

See also
config_raspberry_00.h config_raspberry_01.h
config_raspberry_03.h config_raspberry_04.h config_raspberry_05.h