From: Nathael Pajani Date: Thu, 24 Sep 2020 04:14:42 +0000 (+0200) Subject: Use SPI Macro for word length specification (improves readability) X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=39fb12d767d623e06f8f5b9c2a435c0d1fa20d36;p=soft%2Flpc122x%2Fcore Use SPI Macro for word length specification (improves readability) --- diff --git a/extdrv/cc1101.c b/extdrv/cc1101.c index 21c49a1..ee0c677 100644 --- a/extdrv/cc1101.c +++ b/extdrv/cc1101.c @@ -65,7 +65,7 @@ uint8_t cc1101_spi_transfer(uint8_t addr, uint8_t* out, uint8_t* in, uint8_t siz status = (uint8_t)spi_transfer_single_frame(cc1101.spi_num, (uint16_t)addr); /* Perform transfer */ if (size != 0) { - spi_transfer_multiple_frames(cc1101.spi_num, out, in, size, 8); + spi_transfer_multiple_frames(cc1101.spi_num, out, in, size, LPC_SSP_WORD_LEN(8)); } /* Release Chip select */ gpio->set = (1 << cc1101.cs_pin.pin);