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);
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
dmx512控制程序_stm32dmx512程序_gpiodmx512_stm32-dmx512_串口模拟DMX_stm32DM
共102个文件
h:45个
c:45个
dbgconf:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 16 下载量 167 浏览量
2021-09-10
18:24:18
上传
评论 5
收藏 462KB RAR 举报
温馨提示
DMX512数据收发(STM32),采用串口模拟的
资源推荐
资源详情
资源评论
收起资源包目录
dmx512控制程序_stm32dmx512程序_gpiodmx512_stm32-dmx512_串口模拟DMX_stm32DM (102个子文件)
Template.uvguix.Administrator 139KB
keilkilll.bat 399B
stm32f4xx_tim.c 122KB
stm32f4xx_rtc.c 100KB
stm32f4xx_rcc.c 97KB
stm32f4xx_adc.c 67KB
stm32f4xx_flash.c 62KB
stm32f4xx_can.c 59KB
stm32f4xx_usart.c 57KB
stm32f4xx_cryp_aes.c 57KB
stm32f4xx_fmc.c 55KB
stm32f4xx_i2c.c 53KB
stm32f4xx_dma.c 52KB
stm32f4xx_spi.c 51KB
system_stm32f4xx.c 47KB
stm32f4xx_sai.c 45KB
stm32f4xx_fsmc.c 41KB
stm32f4xx_ltdc.c 39KB
stm32f4xx_sdio.c 38KB
stm32f4xx_pwr.c 37KB
stm32f4xx_cryp.c 35KB
stm32f4xx_dma2d.c 27KB
stm32f4xx_dac.c 26KB
stm32f4xx_hash.c 26KB
stm32f4xx_gpio.c 25KB
stm32f4xx_dcmi.c 18KB
stm32f4xx_rng.c 14KB
misc.c 11KB
stm32f4xx_cryp_tdes.c 10KB
stm32f4xx_wwdg.c 10KB
stm32f4xx_exti.c 10KB
stm32f4xx_cryp_des.c 10KB
stm32f4xx_hash_sha1.c 10KB
stm32f4xx_hash_md5.c 9KB
stm32f4xx_syscfg.c 9KB
stm32f4xx_iwdg.c 9KB
delay.c 8KB
stm32f4xx_dbgmcu.c 7KB
stm32f4xx_flash_ramfunc.c 5KB
usart.c 5KB
stm32f4xx_it.c 4KB
exit.c 4KB
stm32f4xx_crc.c 4KB
timer.c 2KB
dmx512.c 1KB
sys.c 1KB
main.c 693B
Template_STM32F407VGTx.dbgconf 3KB
Template_STM32F407ZG.dbgconf 3KB
stm32f4xx.h 688KB
core_cm4.h 107KB
stm32f4xx_tim.h 50KB
stm32f4xx_fmc.h 44KB
stm32f4xx_rtc.h 40KB
stm32f4xx_adc.h 32KB
stm32f4xx_i2c.h 31KB
stm32f4xx_rcc.h 29KB
stm32f4xx_dma.h 28KB
stm32f4xx_can.h 27KB
stm32f4xx_fsmc.h 27KB
stm32f4xx_sai.h 25KB
stm32f4xx_flash.h 24KB
stm32f4xx_gpio.h 23KB
stm32f4xx_sdio.h 22KB
core_cm4_simd.h 22KB
stm32f4xx_ltdc.h 21KB
stm32f4xx_spi.h 21KB
core_cmInstr.h 20KB
stm32f4xx_dma2d.h 19KB
stm32f4xx_usart.h 18KB
core_cmFunc.h 17KB
stm32f4xx_dac.h 15KB
stm32f4xx_cryp.h 14KB
stm32f4xx_dcmi.h 13KB
stm32f4xx_hash.h 10KB
stm32f4xx_syscfg.h 9KB
stm32f4xx_exti.h 8KB
stm32f4xx_pwr.h 8KB
misc.h 7KB
stm32f4xx_conf.h 4KB
stm32f4xx_iwdg.h 4KB
stm32f4xx_dbgmcu.h 4KB
stm32f4xx_rng.h 4KB
stm32f4xx_wwdg.h 3KB
sys.h 3KB
stm32f4xx_flash_ramfunc.h 3KB
stm32f4xx_crc.h 2KB
system_stm32f4xx.h 2KB
stm32f4xx_it.h 2KB
usart.h 1KB
delay.h 838B
exit.h 603B
timer.h 585B
dmx512.h 103B
Template.hex 25KB
JLinkSettings.ini 671B
Template.uvguix.OJ 138KB
startup_stm32f40_41xxx.s 29KB
README.txt 1KB
readme.txt 621B
共 102 条
- 1
- 2
心梓
- 粉丝: 804
- 资源: 8058
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页