rasProject_01 / weSweetHome  R. 240
process control       /     RasPi software         by   weinert-automation
Loading...
Searching...
No Matches
config_raspberry_04.h File Reference

Configuration settings for Raspberry Pi4. More...

Macros

#define GPIO2pin
 GPIO [0..39] to pin number (1..40) lookup list. More...
 
#define PIN03
 GPIO 02 SDA1 (GPIO 0 on Pi1)
 
#define PIN05
 GPIO 03 SCL (GPIO 1 on Pi1)
 
#define PIN07
 GPIO 04 GPCLK0.
 
#define PIN08
 GPIO 14 TXDI.
 
#define PIN10
 GPIO 15 RXDI.
 
#define PIN11
 GPIO 17.
 
#define PIN12
 GPIO 18.
 
#define PIN13
 GPIO 27 (GPIO 21 on Pi1)
 
#define PIN15
 GPIO 22.
 
#define PIN16
 GPIO 23.
 
#define PIN18
 GPIO 14.
 
#define PIN19
 GPIO 10 SPI.MOSI | S.
 
#define PIN21
 GPIO 09 MSPI.ISO | P.
 
#define PIN22
 GPIO 25.
 
#define PIN23
 GPIO 11 SPI.SCLK | I.
 
#define PIN24
 GPIO 08 SPI.CE0 / .
 
#define PIN26
 GPIO 07 SPI.CE1 / .
 
#define PIN27
 SDA0.
 
#define PIN28
 SCL0.
 
#define PIN29
 GPIO 05.
 
#define PIN2gpio
 Pin number [0..43] to GPIO number lookup list. More...
 
#define PIN31
 GPIO 06.
 
#define PIN32
 GPIO 12.
 
#define PIN33
 GPIO 13.
 
#define PIN35
 GPIO 19.
 
#define PIN36
 GPIO 16.
 
#define PIN37
 GPIO 26.
 
#define PIN38
 GPIO 20.
 
#define PIN40
 GPIO 21.
 
#define stdUARTpath
 /def stdUARTpath Pi's standard UART. More...
 

Detailed Description

Configuration settings for Raspberry Pi4.

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 Albrecht Weinert
weinert-automation.de a-weinert.de
/ / /\
/ /___ / \ |
\ /____\ /____\ | _|__
\ /\ / \ / \| |
\/ \/ \__/ \__/|_

Revision history

Rev. 255 29.10.2023
Rev. 223 18.06.2020 : fork of config_raspberry_03.h
Rev. 231 13.08.2020 : two digit PIN0x and GPIO2pin added
Rev. 237 01.03.2021 : included in Doxygen documentation

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 gpio2pin

◆ PIN2gpio

#define PIN2gpio

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

0..56: GPIO number; 95: 5V pin; 93: 3.3V; 90: Ground 0V;
99 means not existent. N.b.: [1..40] are: valid pin numbers, only.

See also
pin2gpio

◆ stdUARTpath

#define stdUARTpath

/def stdUARTpath Pi's standard UART.

It is the one on the Pins 8 (GPIO14) for Tx and 10 (GPIO15) for Rx.