一、此文件夹适用于IAR环境和MDK环境
二、usart文件
串口1的打印信息函数,使用C标准库的printf()函数
三、sys文件
1、包含M0、M3、M4平台的库头文件,根据不同的平台进行自动切换
2、定义了M0、M3、M4平台的位段操作,M0平台特殊,定义时需注意
四、delay文件
此文件采用SysTick嘀嗒定时器做的延时函数,可在uCOS环境中使用,需要将sys.h文件中的_SYSTEM_SUPPORT_ROTS这个宏定义打开(置1)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
STM32F030单片机输出PWM波形软件程序源代码: int main(void) { u8 i = 0; delay_init(); uart_init(115200); HAL_LEDInit(); HAL_TIMPWM_Init(100-1, 480-1); TIM3->CCR1 = 30; while (1) { /* GPIO_SetBits(GPIOC, GPIO_Pin_8); GPIO_SetBits(GPIOC, GPIO_Pin_9); delay_ms(500); GPIO_ResetBits(GPIOC, GPIO_Pin_8); GPIO_ResetBits(GPIOC, GPIO_Pin_9); delay_ms(500); */ i++; delay_ms(10); if (i > 50) { i = 0; HAL_LED0 = !HAL_LED0; HAL_LED1 = !HAL_LED1;
资源推荐
资源详情
资源评论
收起资源包目录
STM32F030单片机输出PWM波形软件程序源代码.rar (194个子文件)
test.uvguix.Administrator 70KB
test.Debug.cspy.bat 2KB
keilkilll.bat 399B
test.pbd.browse 1.1MB
stm32f0xx_tim.c 130KB
stm32f0xx_rtc.c 93KB
stm32f0xx_usart.c 92KB
stm32f0xx_rcc.c 69KB
stm32f0xx_can.c 57KB
stm32f0xx_i2c.c 55KB
stm32f0xx_spi.c 52KB
stm32f0xx_adc.c 47KB
stm32f0xx_dma.c 46KB
stm32f0xx_flash.c 42KB
stm32f0xx_dac.c 26KB
stm32f0xx_cec.c 24KB
stm32f0xx_gpio.c 21KB
stm32f0xx_pwr.c 20KB
stm32f0xx_syscfg.c 19KB
stm32f0xx_comp.c 15KB
stm32f0xx_crs.c 14KB
system_stm32f0xx.c 14KB
usart.c 11KB
stm32f0xx_iwdg.c 11KB
stm32f0xx_exti.c 11KB
stm32f0xx_crc.c 11KB
delay.c 10KB
stm32f0xx_wwdg.c 10KB
stm32f0xx_dbgmcu.c 7KB
stm32f0xx_misc.c 6KB
sys.c 5KB
stm32f0xx_it.c 4KB
hal_led.c 3KB
hal_timer.c 2KB
main.c 1KB
test.crun 351B
test.dbgdt 5KB
test.dni 1KB
test.ewd 85KB
test.ewp 54KB
test.ewt 135KB
test.eww 158B
stm32f0xx.h 452KB
arm_math.h 237KB
core_cm4.h 107KB
core_cm3.h 97KB
core_sc300.h 96KB
stm32f0xx_dma.h 55KB
stm32f0xx_tim.h 51KB
core_sc000.h 41KB
core_cm0plus.h 39KB
stm32f0xx_rtc.h 37KB
core_cm0.h 32KB
stm32f0xx_syscfg.h 29KB
stm32f0xx_rcc.h 27KB
stm32f0xx_can.h 27KB
stm32f0xx_usart.h 26KB
core_cm4_simd.h 22KB
stm32f0xx_spi.h 22KB
stm32f0xx_adc.h 21KB
core_cmInstr.h 20KB
stm32f0xx_i2c.h 18KB
stm32f0xx_flash.h 17KB
core_cmFunc.h 17KB
stm32f0xx_dac.h 15KB
stm32f0xx_gpio.h 13KB
stm32f0xx_cec.h 12KB
sys.h 12KB
stm32f0xx_comp.h 10KB
stm32f0xx_exti.h 10KB
stm32f0xx_crs.h 8KB
stm32f0xx_pwr.h 7KB
stm32f0xx_crc.h 5KB
arm_common_tables.h 5KB
stm32f0xx_iwdg.h 4KB
stm32f0xx_misc.h 4KB
stm32f0xx_dbgmcu.h 4KB
arm_const_structs.h 4KB
stm32f0xx_wwdg.h 3KB
delay.h 3KB
stm32f0xx_conf.h 3KB
usart.h 3KB
hal_led.h 3KB
system_stm32f0xx.h 2KB
stm32f0xx_it.h 2KB
hal_timer.h 2KB
test.hex 11KB
test.hex 11KB
test.IAB 1.06MB
test.IAD 11KB
test.IMB 264KB
test.IMD 3KB
test.pbd.linf 3KB
test.out 116KB
test.pbd 1.1MB
stm32f0xx_tim.pbi 768KB
stm32f0xx_rtc.pbi 748KB
stm32f0xx_can.pbi 730KB
stm32f0xx_usart.pbi 724KB
stm32f0xx_rcc.pbi 721KB
共 194 条
- 1
- 2
资源评论
GJZGRB
- 粉丝: 1075
- 资源: 5911
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功