1.实验目的:
新建基于STM32F4 固件库V1.3.0的工程模板
2.实验现象:
下载进开发板之后,红绿灯闪烁
3.注意事项:
1)新建工程的时候,请确保Option for target->C/C++选项卡的全部宏定义Define输入框字符串为:STM32F40_41xxx,USE_STDPERIPH_DRIVER
4.手册中讲解到步骤15的时候的main.c源码如下:
#include "stm32f4xx.h"
//ALIENTEK 探索者STM32F407开发板 实验0
//STM32F4工程模板-库函数版本
//技术支持:www.openedv.com
//淘宝店铺:http://eboard.taobao.com
//广州市星翼电子科技有限公司
//作者:正点原子 @ALIENTEK
void Delay(__IO uint32_t nCount);
void Delay(__IO uint32_t nCount)
{
while(nCount--){}
}
int main(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOF, ENABLE);
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_9 | GPIO_Pin_10;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
GPIO_Init(GPIOF, &GPIO_InitStructure);
while(1){
GPIO_SetBits(GPIOF,GPIO_Pin_9|GPIO_Pin_10);
Delay(0x7FFFFF);
GPIO_ResetBits(GPIOF,GPIO_Pin_9|GPIO_Pin_10);
Delay(0x7FFFFF);
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
上位机-32-32-上位机的串口练习
共393个文件
h:88个
c:88个
d:59个
需积分: 0 0 下载量 30 浏览量
2024-03-29
17:59:11
上传
评论
收藏 14.41MB ZIP 举报
温馨提示
上位机-32-32-上位机的串口练习
资源推荐
资源详情
资源评论
收起资源包目录
上位机-32-32-上位机的串口练习 (393个子文件)
Template.axf 581KB
USART.axf 314KB
keilkilll.bat 399B
keilkilll.bat 399B
stm32f4xx_tim.c 122KB
stm32f4xx_tim.c 122KB
stm32f4xx_rtc.c 100KB
stm32f4xx_rtc.c 100KB
stm32f4xx_rcc.c 97KB
stm32f4xx_rcc.c 97KB
stm32f4xx_adc.c 67KB
stm32f4xx_adc.c 67KB
stm32f4xx_flash.c 62KB
stm32f4xx_flash.c 62KB
stm32f4xx_can.c 59KB
stm32f4xx_can.c 59KB
stm32f4xx_cryp_aes.c 57KB
stm32f4xx_cryp_aes.c 57KB
stm32f4xx_usart.c 57KB
stm32f4xx_usart.c 57KB
stm32f4xx_fmc.c 55KB
stm32f4xx_fmc.c 55KB
stm32f4xx_i2c.c 53KB
stm32f4xx_i2c.c 53KB
stm32f4xx_dma.c 52KB
stm32f4xx_dma.c 52KB
stm32f4xx_spi.c 51KB
stm32f4xx_spi.c 51KB
system_stm32f4xx.c 47KB
system_stm32f4xx.c 47KB
stm32f4xx_sai.c 45KB
stm32f4xx_sai.c 45KB
stm32f4xx_fsmc.c 41KB
stm32f4xx_fsmc.c 41KB
stm32f4xx_ltdc.c 39KB
stm32f4xx_ltdc.c 39KB
stm32f4xx_sdio.c 38KB
stm32f4xx_sdio.c 38KB
stm32f4xx_pwr.c 37KB
stm32f4xx_pwr.c 37KB
stm32f4xx_cryp.c 35KB
stm32f4xx_cryp.c 35KB
stm32f4xx_dma2d.c 27KB
stm32f4xx_dma2d.c 27KB
stm32f4xx_dac.c 26KB
stm32f4xx_dac.c 26KB
stm32f4xx_hash.c 26KB
stm32f4xx_hash.c 26KB
stm32f4xx_gpio.c 25KB
stm32f4xx_gpio.c 25KB
stm32f4xx_dcmi.c 18KB
stm32f4xx_dcmi.c 18KB
stm32f4xx_rng.c 14KB
stm32f4xx_rng.c 14KB
misc.c 11KB
misc.c 11KB
stm32f4xx_cryp_tdes.c 10KB
stm32f4xx_cryp_tdes.c 10KB
stm32f4xx_wwdg.c 10KB
stm32f4xx_wwdg.c 10KB
stm32f4xx_exti.c 10KB
stm32f4xx_exti.c 10KB
stm32f4xx_cryp_des.c 10KB
stm32f4xx_cryp_des.c 10KB
stm32f4xx_hash_sha1.c 10KB
stm32f4xx_hash_sha1.c 10KB
stm32f4xx_hash_md5.c 9KB
stm32f4xx_hash_md5.c 9KB
stm32f4xx_syscfg.c 9KB
stm32f4xx_syscfg.c 9KB
stm32f4xx_iwdg.c 9KB
stm32f4xx_iwdg.c 9KB
delay.c 8KB
delay.c 8KB
chuankou2.c 7KB
stm32f4xx_dbgmcu.c 7KB
stm32f4xx_dbgmcu.c 7KB
usart.c 6KB
stm32f4xx_flash_ramfunc.c 5KB
stm32f4xx_flash_ramfunc.c 5KB
usart.c 5KB
stm32f4xx_it.c 4KB
stm32f4xx_it.c 4KB
main.c 4KB
stm32f4xx_crc.c 4KB
stm32f4xx_crc.c 4KB
key.c 2KB
led.c 1KB
beep.c 1KB
sys.c 1KB
sys.c 1KB
main.c 826B
stm32f4xx_tim.crf 443KB
stm32f4xx_rtc.crf 441KB
stm32f4xx_ltdc.crf 438KB
stm32f4xx_cryp_aes.crf 436KB
stm32f4xx_sai.crf 435KB
stm32f4xx_rcc.crf 434KB
stm32f4xx_rcc.crf 434KB
stm32f4xx_dma2d.crf 433KB
共 393 条
- 1
- 2
- 3
- 4
资源评论
狗都不写
- 粉丝: 8
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 数据库管理工具:dbeaver-ce-23.0.3-macos-aarch64.dmg
- Delphi 12 控件之DEV自动安装程序.exe
- 数据库管理工具:dbeaver-ce-23.0.2-x86-64-setup.exe
- Delphi 12 控件之AnySQL-0.0.9.rar
- 俄罗斯引擎Yandex的进入.pdf
- 数据库管理工具:dbeaver-ce-23.0.2-stable.x86-64.rpm
- Dephi 12 控件FFVCL – Delphi FFmpeg VCL Components v7.8 for D6-D11
- 基于opencv识别车牌
- PCB三角波与方波发生电路,AD参考
- 数据库管理工具:dbeaver-ce-23.0.2-macos-x86-64.dmg
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功