From 39fb12d767d623e06f8f5b9c2a435c0d1fa20d36 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Thu, 24 Sep 2020 06:14:42 +0200 Subject: [PATCH] Use SPI Macro for word length specification (improves readability) --- extdrv/cc1101.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.43.0