summaryrefslogtreecommitdiff
path: root/bsp/lpc54114-lite/drivers/drv_spi_flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/lpc54114-lite/drivers/drv_spi_flash.c')
-rw-r--r--bsp/lpc54114-lite/drivers/drv_spi_flash.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/bsp/lpc54114-lite/drivers/drv_spi_flash.c b/bsp/lpc54114-lite/drivers/drv_spi_flash.c
index 65433ce30c..11098636f9 100644
--- a/bsp/lpc54114-lite/drivers/drv_spi_flash.c
+++ b/bsp/lpc54114-lite/drivers/drv_spi_flash.c
@@ -1,14 +1,14 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*/
-
-#include "drv_spi.h"
+
+#include "drv_spi.h"
#include "drv_spi_flash.h"
-#include "rtthread.h"
-#include "rtdevice.h"
+#include "rtthread.h"
+#include "rtdevice.h"
#include "spi_flash.h"
#include "spi_flash_sfud.h"
@@ -16,19 +16,19 @@
int rt_hw_flash_init(void)
{
- rt_err_t result;
-
- result = lpc_spi_bus_attach_device("spi2", "spi20", RT_SPI_FLASH_CS_PIN);
- if(result != RT_EOK)
+ rt_err_t result;
+
+ result = lpc_spi_bus_attach_device("spi2", "spi20", RT_SPI_FLASH_CS_PIN);
+ if(result != RT_EOK)
{
- return result;
+ return result;
}
-
- if(rt_sfud_flash_probe("flash0", "spi20") == RT_NULL)
+
+ if(rt_sfud_flash_probe("flash0", "spi20") == RT_NULL)
{
return RT_ERROR;
}
- return RT_EOK;
+ return RT_EOK;
}
-INIT_DEVICE_EXPORT(rt_hw_flash_init);
+INIT_DEVICE_EXPORT(rt_hw_flash_init);