From f350e4f857100531add07df542920ec5912a3e03 Mon Sep 17 00:00:00 2001 From: mstroh76 Date: Fri, 6 Jun 2025 19:38:14 +0200 Subject: [PATCH] wiringPiSPISetupMode fix --- documentation/deutsch/functions.md | 6 ++++-- documentation/english/functions.md | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/documentation/deutsch/functions.md b/documentation/deutsch/functions.md index ff12ccc..0c86b55 100644 --- a/documentation/deutsch/functions.md +++ b/documentation/deutsch/functions.md @@ -802,8 +802,10 @@ Die alten Funktionen bleiben erhalten beziehen sich allerdings immer auf den SPI >>> ```C -int wiringPiSPISetup (int channel, int speed) -int wiringPiSPISetup (int channel, int speed, int mode) +int wiringPiSPISetup(int channel, int speed) + +int wiringPiSPISetupMode(int channel, int speed, int mode) + int wiringPiSPIxSetupMode(const int number, const int channel, const int speed, const int mode) ``` diff --git a/documentation/english/functions.md b/documentation/english/functions.md index 981786b..f13874a 100644 --- a/documentation/english/functions.md +++ b/documentation/english/functions.md @@ -791,9 +791,9 @@ Functions that start with ``wiringPiSPIx`` are new since version 3, allowing th Opens the specified SPI bus. The Raspberry Pi has 2 channels, 0 and 1. The speed parameter is an integer in the range of 500,000 through 32,000,000 and represents the SPI clock speed in Hz. ```C -int wiringPiSPISetup (int channel, int speed); +int wiringPiSPISetup(int channel, int speed); -int wiringPiSPISetupMode (int channel, int speed, int mode); +int wiringPiSPISetupMode(int channel, int speed, int mode); int wiringPiSPIxSetupMode(const int number, const int channel, const int speed, const int mode); ```