From b9d498786671543205cf37ca9c6fb65a343e2403 Mon Sep 17 00:00:00 2001 From: bigamgic Date: Sat, 4 Jul 2020 22:37:35 +0800 Subject: [PATCH] fix code layout --- bsp/raspberry-pi/raspi4-32/driver/drv_spi.c | 6 +++--- bsp/raspberry-pi/raspi4-32/driver/drv_spi.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bsp/raspberry-pi/raspi4-32/driver/drv_spi.c b/bsp/raspberry-pi/raspi4-32/driver/drv_spi.c index bbf64be95d..90ea26f7ab 100644 --- a/bsp/raspberry-pi/raspi4-32/driver/drv_spi.c +++ b/bsp/raspberry-pi/raspi4-32/driver/drv_spi.c @@ -4,8 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 * * Change Logs: - * Date Author Notes - * 2020-06-22 bigmagic first version + * Date Author Notes + * 2020-06-22 bigmagic first version */ #include #include @@ -147,6 +147,7 @@ static rt_err_t spi_transfernb(struct raspi_spi_hw_config *hwcfg, rt_uint8_t* tb while (!(SPI_REG_CS(hwcfg->hw_base) & SPI_CS_DONE)); /* Set TA = 0, and also set the barrier */ SPI_REG_CS(hwcfg->hw_base) |= (0 & SPI_CS_TA); + return RT_EOK; } @@ -293,4 +294,3 @@ int rt_hw_spi_init(void) return RT_EOK; } INIT_DEVICE_EXPORT(rt_hw_spi_init); - diff --git a/bsp/raspberry-pi/raspi4-32/driver/drv_spi.h b/bsp/raspberry-pi/raspi4-32/driver/drv_spi.h index 407913b886..9cd8e031e4 100644 --- a/bsp/raspberry-pi/raspi4-32/driver/drv_spi.h +++ b/bsp/raspberry-pi/raspi4-32/driver/drv_spi.h @@ -84,4 +84,4 @@ struct raspi_spi_device int rt_hw_spi_init(void); -#endif \ No newline at end of file +#endif