资源简介
用一个星期研究GD32F4系列的单片机,因为公司项目越来越偏向与GD系列的片子,就借着GD32F407的片子,使用LAN8720的PHY芯片移植了最新的FreeRTOS10.2.0系统,顺便移植进了LWIP2.0.2 网络协议,倒腾了一个星期,重要是调通了,感觉还是有些问题,上传上来给后来人当个参考吧,使用的库文件是GD32自带的库,不是STM32的 库文件,问题估计肯定是有的,后续再深入研究吧,可以给后来人当个参考吧,也欢迎高手留言推荐问题解决方法!
代码片段和文件信息
/*!
\file system_gd32f4xx.c
\brief 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 Firmware\CMSIS\
文件 108088 2019-05-06 11:07 Firmware\CMSIS\core_cm4.h
文件 22262 2019-05-06 11:07 Firmware\CMSIS\core_cm4_simd.h
目录 0 2019-05-06 11:07 Firmware\CMSIS\GD\
目录 0 2019-05-06 11:07 Firmware\CMSIS\GD\GD32F4xx\
目录 0 2019-05-06 11:07 Firmware\CMSIS\GD\GD32F4xx\Include\
文件 26415 2019-05-06 11:07 Firmware\CMSIS\GD\GD32F4xx\Include\gd32f4xx.h
文件 2372 2019-05-06 11:07 Firmware\CMSIS\GD\GD32F4xx\Include\system_gd32f4xx.h
目录 0 2019-05-06 11:07 Firmware\CMSIS\GD\GD32F4xx\Source\
目录 0 2019-05-06 11:07 Firmware\CMSIS\GD\GD32F4xx\Source\ARM\
文件 19529 2019-05-06 11:07 Firmware\CMSIS\GD\GD32F4xx\Source\ARM\startup_gd32f405.s
文件 19875 2019-05-06 11:07 Firmware\CMSIS\GD\GD32F4xx\Source\ARM\startup_gd32f407.s
文件 21408 2019-05-06 11:07 Firmware\CMSIS\GD\GD32F4xx\Source\ARM\startup_gd32f450.s
目录 0 2019-05-06 11:07 Firmware\CMSIS\GD\GD32F4xx\Source\IAR\
文件 22750 2019-05-06 11:07 Firmware\CMSIS\GD\GD32F4xx\Source\IAR\startup_gd32f405.s
文件 23304 2019-05-06 11:07 Firmware\CMSIS\GD\GD32F4xx\Source\IAR\startup_gd32f407.s
文件 25348 2019-05-06 11:07 Firmware\CMSIS\GD\GD32F4xx\Source\IAR\startup_gd32f450.s
文件 27404 2019-05-08 19:15 Firmware\CMSIS\GD\GD32F4xx\Source\system_gd32f4xx.c
文件 6781590 2019-05-06 11:07 Firmware\GD32F4xx_Firmware_Library.chm
目录 0 2019-05-06 11:07 Firmware\GD32F4xx_standard_peripheral\
目录 0 2019-05-06 11:07 Firmware\GD32F4xx_standard_peripheral\Include\
文件 36707 2019-05-06 11:07 Firmware\GD32F4xx_standard_peripheral\Include\gd32f4xx_adc.h
文件 44567 2019-05-06 11:07 Firmware\GD32F4xx_standard_peripheral\Include\gd32f4xx_can.h
文件 1666 2019-05-06 11:07 Firmware\GD32F4xx_standard_peripheral\Include\gd32f4xx_crc.h
文件 10424 2019-05-06 11:07 Firmware\GD32F4xx_standard_peripheral\Include\gd32f4xx_ctc.h
文件 13452 2019-05-06 11:07 Firmware\GD32F4xx_standard_peripheral\Include\gd32f4xx_dac.h
文件 7838 2019-05-06 11:07 Firmware\GD32F4xx_standard_peripheral\Include\gd32f4xx_dbg.h
文件 11120 2019-05-06 11:07 Firmware\GD32F4xx_standard_peripheral\Include\gd32f4xx_dci.h
文件 27648 2019-05-06 11:07 Firmware\GD32F4xx_standard_peripheral\Include\gd32f4xx_dma.h
文件 141164 2019-05-08 18:42 Firmware\GD32F4xx_standard_peripheral\Include\gd32f4xx_enet.h
............此处省略939个文件信息
- 上一篇:控制理论导论:从基本概念到研究前沿
- 下一篇:TOSCA优化官方教程
相关资源
- S32K144使用printf格式化输出
- ESP32蓝牙架构官方
- STM32L476 FreeRTOS系统移植项目
- 中英两版FreeRTOS_Reference_Manual_V10.0.0.
- STM32F103_FREERTOS_MPU6050DMP_USART_Timer输入捕
- FreeRTOS 采样ADC-20200413.zip
- 基于SMT32 CubeMX的FreeRTOS工程创建及Fr
- STM32F767+FreeRTOS+LWIP移植成功(工程文件
- STM32+FreeRTOS+W5500+MQTT
- FreeRTOS移植工程
- stm32f407 ili9341屏幕驱动 HAL库 带FreeR
- 实验1 跑马灯FreeRTOS实验.zip
- STM32_F1系列FreeRTOS工程模板
- lwip_ping.rar
- STM32F407FreeRTOS开发手册V1_0
- FreeRTOS+内核实现与应用开发实战--基于
- FreeRTOS操作详细系统教程
- STM32F103C8T6+FreeRTOS+Keil5 代码亲测完美
- FreeRTOS和FreeMODBUS移植到STM32F407傻瓜教
- FreeRTOS V7.4.2(官方原版)
- stm32f103c8t6单片机 FreeRTOS源码
- stm32f103VET6-FreeRTOS-enc28j60-Lwip
- freertos 使用培训
- GigaDevice.GD32F4xx_DFP.1.0.3.pack
- STM32F103ZET6+FreeRTOS V8.2.3+kfifo巧夺天工
- STM32F103C8T6_FreeRTOS_V10.0_RTC作为FreeRTOS时
- MT2503或FreeRTOS上移植MQTT协议
- LwIP+freertos工程LwIP2.1.2最新版本
- FreeRTOS串口收发控制LED.rar
- GD32F450移植LittlevGL 5.2 代码
评论
共有 条评论