GD32F4xx单片机-FreeRTOS10.2.0-LWIP2.0.2移植.zip
用一个星期研究GD32F4系列的单片机,因为公司项目越来越偏向与GD系列的片子,就借着GD32F407的片子,使用LAN8720的PHY芯片移植了最新的FreeRTOS10.2.0系统,顺便移植进了LWIP2.0.2 网络协议,倒腾了一个星期,重要是调通了,感觉还是有些问题,上传上来给后来人当个参考吧,使用的库文件是GD32自带的库,不是STM32的 库文件,问题估计肯定是有的,后续再深入研究吧,可以给后来人当个参考吧,也欢迎高手留言推荐问题解决方法!
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-05-06 11:07 Firmware
目录 0 2019-05-06 11:07 FirmwareCMSIS
文件 108088 2019-05-06 11:07 FirmwareCMSIScore_cm4.h
文件 22262 2019-05-06 11:07 FirmwareCMSIScore_cm4_simd.h
目录 0 2019-05-06 11:07 FirmwareCMSISGD
目录 0 2019-05-06 11:07 FirmwareCMSISGDGD32F4xx
目录 0 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxInclude
文件 26415 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxIncludegd32f4xx.h
文件 2372 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxIncludesystem_gd32f4xx.h
目录 0 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSource
目录 0 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSourceARM
文件 19529 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSourceARMstartup_gd32f405.s
文件 19875 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSourceARMstartup_gd32f407.s
文件 21408 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSourceARMstartup_gd32f450.s
目录 0 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSourceIAR
文件 22750 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSourceIARstartup_gd32f405.s
文件 23304 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSourceIARstartup_gd32f407.s
文件 25348 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSourceIARstartup_gd32f450.s
文件 27404 2019-05-08 19:15 FirmwareCMSISGDGD32F4xxSourcesystem_gd32f4xx.c
文件 6781590 2019-05-06 11:07 FirmwareGD32F4xx_Firmware_Library.chm
目录 0 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheral
目录 0 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralInclude
文件 36707 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_adc.h
文件 44567 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_can.h
文件 1666 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_crc.h
文件 10424 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_ctc.h
文件 13452 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_dac.h
文件 7838 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_dbg.h
文件 11120 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_dci.h
文件 27648 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_dma.h
文件 141164 2019-05-08 18:42 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_enet.h
............此处省略939个文件信息
/*!
file system_gd32f4xx.c
rief CMSIS Cortex-M4 Device Peripheral Access layer Source File for
GD32F4xx Device Series
*/
/* Copyright (c) 2012 ARM LIMITED
All rights reserved.
Redistribution and use in source and binary forms with or without
modification are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright
notice this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of ARM nor the names of its contributors may be used
to endorse or promote products derived from this software without
specific prior written permission.
*
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR
CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN
CONTRACT STRICT LIABILITY OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
---------------------------------------------------------------------------*/
/* This file refers the CMSIS standard some adjustments are made according to GigaDevice chips */
#include “gd32f4xx.h“
/* system frequency define */
#define __IRC16M (IRC16M_VALUE) /* internal 16 MHz RC oscillator frequency */
#define __HXTAL (HXTAL_VALUE) /* high speed crystal oscillator frequency */
#define __SYS_OSC_CLK (__IRC16M) /* main oscillator frequency */
/* select a system clock by uncommenting the following line */
//#define __SYSTEM_CLOCK_IRC16M (uint32_t)(__IRC16M)
//#define __SYSTEM_CLOCK_HXTAL (uint32_t)(__HXTAL)
//#define __SYSTEM_CLOCK_120M_PLL_IRC16M (uint32_t)(120000000)
//#define __SYSTEM_CLOCK_120M_PLL_8M_HXTAL (uint32_t)(120000000)
//#define __SYSTEM_CLOCK_120M_PLL_25M_HXTAL (uint32_t)(120000000)
//#define __SYSTEM_CLOCK_168M_PLL_IRC16M (uint32_t)(168000000)
#define __SYSTEM_CLOCK_168M_PLL_8M_HXTAL (uint32_t)(168000000)
//#define __SYSTEM_CLOCK_168M_PLL_25M_HXTAL (uint32_t)(168000000)
//#define __SYSTEM_CLOCK_200M_PLL_IRC16M (uint32_t)(200000000)
//#define __SYSTEM_CLOCK_200M_PLL_8M_HXTAL (uint32_t)(200000000)
//#define __SYSTEM_C
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-05-06 11:07 Firmware
目录 0 2019-05-06 11:07 FirmwareCMSIS
文件 108088 2019-05-06 11:07 FirmwareCMSIScore_cm4.h
文件 22262 2019-05-06 11:07 FirmwareCMSIScore_cm4_simd.h
目录 0 2019-05-06 11:07 FirmwareCMSISGD
目录 0 2019-05-06 11:07 FirmwareCMSISGDGD32F4xx
目录 0 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxInclude
文件 26415 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxIncludegd32f4xx.h
文件 2372 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxIncludesystem_gd32f4xx.h
目录 0 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSource
目录 0 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSourceARM
文件 19529 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSourceARMstartup_gd32f405.s
文件 19875 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSourceARMstartup_gd32f407.s
文件 21408 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSourceARMstartup_gd32f450.s
目录 0 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSourceIAR
文件 22750 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSourceIARstartup_gd32f405.s
文件 23304 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSourceIARstartup_gd32f407.s
文件 25348 2019-05-06 11:07 FirmwareCMSISGDGD32F4xxSourceIARstartup_gd32f450.s
文件 27404 2019-05-08 19:15 FirmwareCMSISGDGD32F4xxSourcesystem_gd32f4xx.c
文件 6781590 2019-05-06 11:07 FirmwareGD32F4xx_Firmware_Library.chm
目录 0 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheral
目录 0 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralInclude
文件 36707 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_adc.h
文件 44567 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_can.h
文件 1666 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_crc.h
文件 10424 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_ctc.h
文件 13452 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_dac.h
文件 7838 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_dbg.h
文件 11120 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_dci.h
文件 27648 2019-05-06 11:07 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_dma.h
文件 141164 2019-05-08 18:42 FirmwareGD32F4xx_standard_peripheralIncludegd32f4xx_enet.h
............此处省略939个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)