提交 588bda55 编写于 作者: gyd0317's avatar gyd0317

change gcc statup files

上级 db23a69f
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/*bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,8 +90,8 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
/* bl __libc_init_array */
bl SystemInit
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/*bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/*bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point. */
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,10 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
bl __libc_init_array
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
bl SystemInit
/* Call static constructors */
/* bl __libc_init_array */
/* bl __libc_init_array */
/* Call the application's entry point.*/
bl entry
.size Reset_Handler, .-Reset_Handler
......
......@@ -25,4 +25,4 @@ do not initialize { section .noinit };
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
place in ROM_region { readonly };
place in RAM_region { readwrite, last block CSTACK};
\ No newline at end of file
place in RAM_region { readwrite, last block CSTACK};
/*
* linker script for STM32F10x with GNU ld
* linker script for STM32L1XX with GNU ld
*/
/* Program Entry, set to mark it as "used" and avoid gc */
MEMORY
{
ROM (rx) : ORIGIN = 0x08000000, LENGTH = 128k /* 128KB flash */
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 16k /* 20K sram */
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 16k /* 16K sram */
}
ENTRY(Reset_Handler)
_system_stack_size = 0x200;
......
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-12-8 zylx first version
*/
#ifndef _FAL_CFG_H_
#define _FAL_CFG_H_
#include <rtthread.h>
#include <board.h>
extern const struct fal_flash_dev stm32_onchip_flash;
/* flash device table */
#define FAL_FLASH_DEV_TABLE \
{ \
&stm32_onchip_flash, \
}
/* ====================== Partition Configuration ========================== */
#ifdef FAL_PART_HAS_TABLE_CFG
/* partition table */
#define FAL_PART_TABLE \
{ \
{FAL_PART_MAGIC_WROD, "app", "onchip_flash", 0, 112 * 1024, 0}, \
{FAL_PART_MAGIC_WROD, "param", "onchip_flash", 112* 1024 , 16 * 1024, 0}, \
}
#endif /* FAL_PART_HAS_TABLE_CFG */
#endif /* _FAL_CFG_H_ */
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-11-27 SummerGift add spi flash port file
*/
#include <rtthread.h>
#include "spi_flash.h"
#include "spi_flash_sfud.h"
#include "drv_spi.h"
#if defined(BSP_USING_SPI_FLASH)
static int rt_hw_spi_flash_init(void)
{
__HAL_RCC_GPIOB_CLK_ENABLE();
rt_hw_spi_device_attach("spi2", "spi20", GPIOB, GPIO_PIN_12);
if (RT_NULL == rt_sfud_flash_probe("W25Q16", "spi20"))
{
return -RT_ERROR;
};
return RT_EOK;
}
INIT_COMPONENT_EXPORT(rt_hw_spi_flash_init);
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册