• 大小: 678KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-05
  • 语言: 其他
  • 标签: STM32  F427  工程模板  

资源简介

STM32F427VITx的工程模板,包含基本的串口,为移植Pixhawk固件的第一步

资源截图

代码片段和文件信息

#include “SysTick.h“

static u8  fac_us=0; //us延时倍乘数    
   
/*- 滴答定时器初始化 -*/
void SysTick_init(u8 SYSCLK)
{
  SysTick_CLKSourceConfig(SysTick_CLKSource_HCLK_Div8); 
fac_us=SYSCLK/8;  
}     
/*- 微秒延时 -*/
void delay_us(u32 nus)
{
u32 temp;       
SysTick->LOAD=nus*fac_us;  //时间加载     
SysTick->VAL=0x00;         //清空计数器
SysTick->CTRL|=SysTick_CTRL_ENABLE_Msk ;  //开始倒数   
do
{
temp=SysTick->CTRL;
}while((temp&0x01)&&!(temp&(1<<16))); //等待时间到达   
SysTick->CTRL&=~SysTick_CTRL_ENABLE_Msk;  //关闭计数器
SysTick->VAL =0X00;        //清空计数器 
}
/*-毫秒延时 -*/
void delay_ms(u16 nms)
{
u32 i;
for(i=0;i}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件          4  2016-07-20 12:32  UART4\Doc\读我.txt

     文件        452  2016-08-28 17:21  UART4\HARDWARE\LED.C

     文件         95  2016-07-20 12:21  UART4\HARDWARE\LED.h

     文件        759  2016-08-28 16:15  UART4\HARDWARE\SysTick.c

     文件        220  2016-07-20 13:11  UART4\HARDWARE\SysTick.h

     文件       2356  2016-08-29 14:14  UART4\HARDWARE\usart.c

     文件        188  2016-08-29 14:04  UART4\HARDWARE\usart.h

     文件        399  2015-07-04 15:01  UART4\keilkill.bat

     文件     884127  2015-10-22 23:19  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h

     文件       2234  2015-10-21 00:41  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Include\system_stm32f4xx.h

     文件      43833  2015-10-23 17:45  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Release_Notes.html

     文件      25816  2015-05-18 22:16  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f401xx.s

     文件      29693  2015-05-18 22:16  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f40xx.s

     文件      29604  2015-05-18 22:16  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f40_41xxx.s

     文件      19188  2015-10-21 01:02  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f410xx.s

     文件      26516  2015-05-18 22:16  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f411xe.s

     文件      31053  2015-05-18 22:16  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f427x.s

     文件      30978  2015-05-18 22:16  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f427_437xx.s

     文件      32301  2015-10-20 17:39  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f429_439xx.s

     文件      31403  2015-05-18 22:16  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f446xx.s

     文件      30928  2015-10-21 01:02  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f469_479xx.s

     文件      20645  2015-10-21 01:03  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\gcc_ride7\startup_stm32f401xx.s

     文件      24091  2015-10-21 01:03  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\gcc_ride7\startup_stm32f40xx.s

     文件      24192  2015-10-21 01:03  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\gcc_ride7\startup_stm32f40_41xxx.s

     文件      25816  2015-10-21 01:03  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\gcc_ride7\startup_stm32f427x.s

     文件      25733  2015-10-21 01:03  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\gcc_ride7\startup_stm32f427_437xx.s

     文件      25733  2015-10-21 01:03  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\gcc_ride7\startup_stm32f429_439xx.s

     文件      21525  2015-10-21 01:02  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\iar\startup_stm32f401xx.s

     文件      25430  2015-10-21 01:02  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\iar\startup_stm32f40xx.s

     文件      25342  2015-10-21 01:02  UART4\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\iar\startup_stm32f40_41xxx.s

............此处省略148个文件信息

评论

共有 条评论