rasProject_01 / weSweetHome  R. 146 2026-09-26
process control       /     RasPi software         by   weinert-automation
Loading...
Searching...
No Matches
config_raspberry_01.h File Reference

Configuration settings for Raspberry Pi1 (Models A). More...

Macros

#define GPIO2pin
 GPIO [0..39] to pin number (1..40) lookup list.
#define PIN03
 SDA0 (GPIO 02 on other Pis).
#define PIN05
 SCL0 (GPIO 03 on other Pis).
#define PIN08
 TXDI.
#define PIN10
 RXDI.
#define PIN13
 GPIO 21 (GPIO 27 on other Pis).
#define PIN19
 MOSI | S.
#define PIN21
 MISO | P.
#define PIN23
 SCLK | I.
#define PIN24
 CE0 /.
#define PIN26
 CE1 /.
#define PIN2gpio
 Pin number [0..26] to GPIO number lookup list.
#define stdUARTpath
 Pi's standard UART.

Detailed Description

Configuration settings for Raspberry Pi1 (Models A).

This file contains some platform (type) specific definitions. These settings influence the compilation and build process. Most of those settings can not be changed later at runtime.

Since end 2017 we mostly use Pi3 and Pi4.

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

Revision history

Rev. 145 17.09.2026
Rev. 190 12.02.2019 : minor, comments only
Rev. 209 10.07.2019 : stdUARTpath
Rev. 231 13.08.2020 : two digit PIN0x and GPIO2pin added
Rev. 82 15.04.2025 : SVN changed, no serial0
Rev. 145 16.09.2026 : typos, comments
#define GPIO2pin
GPIO [0..39] to pin number (1..40) lookup list.
Definition config_raspberry_01.h:67
#define stdUARTpath
Pi's standard UART.
Definition config_raspberry_01.h:100

Macro Definition Documentation

◆ GPIO2pin

#define GPIO2pin

GPIO [0..39] to pin number (1..40) lookup list.

0 means has no pin on the 40 pin connector

See also
PIN2gpio gpio2pin

◆ PIN2gpio

#define PIN2gpio

Pin number [0..26] to GPIO number lookup list.

Return values:

0..56: "real" GPIO number;
95: 5V pins;
93: 3.3V;
90: Ground 0V;
99: not existent

N.b.: [1..26] are: valid pin numbers, only.

See also
GPIO2pin pin2gpio

◆ stdUARTpath

#define stdUARTpath

Pi's standard UART.

It is the one on the Pins 8 (GPIO14) for Tx and 10 (GPIO15) for Rx. Here it is set to the long year standard value /dev/serial0.

As this seemed to be changed in some Raspbians, this macro definition can be overruled in a target specific include file.