From d3f6ce7dc31542d0962e3ca4c753f47a4ec4f818 Mon Sep 17 00:00:00 2001 From: David P Date: Sat, 12 Jun 2021 14:54:47 +1000 Subject: [PATCH] nrf/modules: Replace master/slave with controller/peripheral in SPI. Also remove mistaken usage of MASTER/SLAVE constants in comments. --- ports/nrf/modules/machine/spi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ports/nrf/modules/machine/spi.c b/ports/nrf/modules/machine/spi.c index 2510c2750..880d946a2 100644 --- a/ports/nrf/modules/machine/spi.c +++ b/ports/nrf/modules/machine/spi.c @@ -46,18 +46,18 @@ #endif /// \moduleref machine -/// \class SPI - a master-driven serial protocol +/// \class SPI - a controller-driven serial protocol /// -/// SPI is a serial protocol that is driven by a master. At the physical level +/// SPI is a serial protocol that is driven by a controller. At the physical level /// there are 3 lines: SCK, MOSI, MISO. /// /// See usage model of I2C; SPI is very similar. Main difference is /// parameters to init the SPI bus: /// /// from machine import SPI -/// spi = SPI(1, SPI.MASTER, baudrate=600000, polarity=1, phase=0, crc=0x7) +/// spi = SPI(1, baudrate=600000, polarity=1, phase=0, crc=0x7) /// -/// Only required parameter is mode, SPI.MASTER or SPI.SLAVE. Polarity can be +/// Polarity can be /// 0 or 1, and is the level the idle clock line sits at. Phase can be 0 or 1 /// to sample data on the first or second clock edge respectively. Crc can be /// None for no CRC, or a polynomial specifier.