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

Configuration settings for Raspberry Pi zero. More...

Macros

#define GPIO2pin
 GPIO [0..39] to pin number (1..40) lookup list.
#define PIN03
 SDA1 ( 0 on Pi1).
#define PIN05
 SCL ( 1 on Pi1).
#define PIN07
 GPCLK0.
#define PIN08
 TXDI.
#define PIN10
 RXDI.
#define PIN13
 (21 on Pi1)
#define PIN19
 MOSI | S.
#define PIN21
 MISO | P.
#define PIN23
 SCLK | I.
#define PIN24
 CE0 /.
#define PIN26
 CE1 /.
#define PIN27
 SDA0.
#define PIN28
 SCL0.
#define PIN2gpio
 Pin number [0..43] to GPIO number lookup list.
#define stdUARTpath
 Pi's standard UART.

Detailed Description

Configuration settings for Raspberry Pi zero.

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.

With respect to I/O pins there is no difference between Pi4*, Pi0* and Pi3*; hence the defines in config_raspberry_04.h, config_raspberry_00.h and config_raspberry_03.h are the same.

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

Revision history

Rev. 145 17.09.2026
Rev. 234 13.11.2020 : fork of config_raspberry_04.h
Rev. 246 01.05.2023 : typos corr
Rev. 82 15.04.2025 : SVN changed, no serial0
Rev. 145 15.09.2026 : typos, comments

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..43] 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..40] are: valid pin numbers, only.

Special pins list:

pins 6 9 14 20 25 30 34 39 : gnd
pins 1 17 : 3.3V
pins 2 4 : 5V
pins 27 28 : ID_SD/SC (HAT board & EEPROM interface) or GPIO 0 and 1

99 means not existent. N.b.: [1..40] 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 changed in some Raspbians, this macro definition can be overruled in a target specific include file.