Skip to content

Commit b9d4987

Browse files
committed
fix code layout
1 parent f333dca commit b9d4987

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: bsp/raspberry-pi/raspi4-32/driver/drv_spi.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*
66
* Change Logs:
7-
* Date Author Notes
8-
* 2020-06-22 bigmagic first version
7+
* Date Author Notes
8+
* 2020-06-22 bigmagic first version
99
*/
1010
#include <rtthread.h>
1111
#include <rthw.h>
@@ -147,6 +147,7 @@ static rt_err_t spi_transfernb(struct raspi_spi_hw_config *hwcfg, rt_uint8_t* tb
147147
while (!(SPI_REG_CS(hwcfg->hw_base) & SPI_CS_DONE));
148148
/* Set TA = 0, and also set the barrier */
149149
SPI_REG_CS(hwcfg->hw_base) |= (0 & SPI_CS_TA);
150+
150151
return RT_EOK;
151152
}
152153

@@ -293,4 +294,3 @@ int rt_hw_spi_init(void)
293294
return RT_EOK;
294295
}
295296
INIT_DEVICE_EXPORT(rt_hw_spi_init);
296-

Diff for: bsp/raspberry-pi/raspi4-32/driver/drv_spi.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ struct raspi_spi_device
8484

8585
int rt_hw_spi_init(void);
8686

87-
#endif
87+
#endif

0 commit comments

Comments
 (0)