From 8d88451b5ebd46ffb292e92fe371bd74b0739af3 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期六, 19 三月 2022 21:08:14 +0800 Subject: [PATCH] 编译通过,未测试 --- Src/OnChipDevices/Spi.c | 16 ++-------------- 1 files changed, 2 insertions(+), 14 deletions(-) diff --git a/Src/OnChipDevices/Spi.c b/Src/OnChipDevices/Spi.c index ba65d6a..36f193a 100644 --- a/Src/OnChipDevices/Spi.c +++ b/Src/OnChipDevices/Spi.c @@ -29,13 +29,7 @@ * returns 0 for success, or -1 for error */ uint8_t tt; -int writetospi -( - uint16_t headerLength, - uint8_t *headerBuffer, - uint32_t bodylength, - uint8_t *bodyBuffer -) +int writetospi(uint16_t headerLength, const uint8_t *headerBuffer, uint16_t bodylength, const uint8_t *bodyBuffer) { int i = 0; @@ -80,13 +74,7 @@ * returns the offset into read buffer where first byte of read data may be found, * or returns -1 if there was an error */ -int readfromspi -( - uint16_t headerLength, - uint8_t *headerBuffer, - uint32_t readlength, - uint8_t *readBuffer -) +int readfromspi(uint16_t headerLength, /*const*/ uint8_t *headerBuffer, uint16_t readlength, uint8_t *readBuffer) { int i = 0; -- Gitblit v1.9.3