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

Configuration settings for Raspberry Pi3. 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 Pi3.

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 (process) I/O pins there is no difference to Pi3b. Hence, for Pi3* define PLATFORM as raspberry_03. Additionally, 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) 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 15.09.2026 : typos, comments
#define GPIO2pin
GPIO [0..39] to pin number (1..40) lookup list.
Definition config_raspberry_03.h:87
#define stdUARTpath
Pi's standard UART.
Definition config_raspberry_03.h:125

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

◆ 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 or Raspberry Pi OS, this macro definition can be overruled in a target specific include file.