资源简介
STM32f103 通过按键输出不同占空比地PWM波,控制LED灯的不同亮度,
包含六个按键,输出不同占空比的PWM波,控制灯的6档亮度

代码片段和文件信息
/**************************************************************************//**
* @file core_cm3.c
* @brief CMSIS Cortex-M3 Core Peripheral Access layer Source File
* @version V1.30
* @date 30. October 2009
*
* @note
* Copyright (C) 2009 ARM Limited. All rights reserved.
*
* @par
* ARM Limited (ARM) is supplying this software for use with Cortex-M
* processor based microcontrollers. This file can be freely distributed
* within development tools that are supporting such ARM based processors.
*
* @par
* THIS SOFTWARE IS PROVIDED “AS IS“. NO WARRANTIES WHETHER EXPRESS IMPLIED
* OR STATUTORY INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
* ARM SHALL NOT IN ANY CIRCUMSTANCES BE LIABLE FOR SPECIAL INCIDENTAL OR
* CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER.
*
******************************************************************************/
#include
/* define compiler specific symbols */
#if defined ( __CC_ARM )
#define __ASM __asm /*!< asm keyword for ARM Compiler */
#define __INLINE __inline /*!< inline keyword for ARM Compiler */
#elif defined ( __ICCARM__ )
#define __ASM __asm /*!< asm keyword for IAR Compiler */
#define __INLINE inline /*!< inline keyword for IAR Compiler. Only avaiable in High optimization mode! */
#elif defined ( __GNUC__ )
#define __ASM __asm /*!< asm keyword for GNU Compiler */
#define __INLINE inline /*!< inline keyword for GNU Compiler */
#elif defined ( __TASKING__ )
#define __ASM __asm /*!< asm keyword for TASKING Compiler */
#define __INLINE inline /*!< inline keyword for TASKING Compiler */
#endif
/* ################### Compiler specific Intrinsics ########################### */
#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/
/* ARM armcc specific functions */
/**
* @brief Return the Process Stack Pointer
*
* @return ProcessStackPointer
*
* Return the actual process stack pointer
*/
__ASM uint32_t __get_PSP(void)
{
mrs r0 psp
bx lr
}
/**
* @brief Set the Process Stack Pointer
*
* @param topOfProcStack Process Stack Pointer
*
* Assign the value ProcessStackPointer to the MSP
* (process stack pointer) Cortex processor register
*/
__ASM void __set_PSP(uint32_t topOfProcStack)
{
msr psp r0
bx lr
}
/**
* @brief Return the Main Stack Pointer
*
* @return Main Stack Pointer
*
* Return the curren
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-08-12 16:53 timer\
目录 0 2020-08-12 16:53 timer\CMSIS\
文件 17273 2010-06-07 10:25 timer\CMSIS\core_cm3.c
文件 85714 2011-02-09 14:59 timer\CMSIS\core_cm3.h
文件 633941 2011-03-10 10:51 timer\CMSIS\stm32f10x.h
文件 36557 2011-03-10 10:51 timer\CMSIS\system_stm32f10x.c
文件 2085 2011-03-10 10:51 timer\CMSIS\system_stm32f10x.h
目录 0 2020-08-12 16:53 timer\Hardware\
文件 2 2020-08-10 14:35 timer\Hardware\beep.c
文件 286 2018-02-07 15:47 timer\Hardware\beep.h
文件 264 2020-08-12 14:41 timer\Hardware\IWDG.c
文件 5058 2020-08-12 14:11 timer\Hardware\key.c
文件 977 2020-08-11 14:48 timer\Hardware\key.h
文件 810 2020-08-11 20:22 timer\Hardware\led.c
文件 287 2020-08-12 10:57 timer\Hardware\led.h
文件 369 2020-08-08 09:17 timer\Hardware\sys.c
文件 2279 2020-08-08 09:17 timer\Hardware\sys.h
文件 1381 2020-08-11 15:23 timer\Hardware\systick.c
文件 245 2020-08-11 14:47 timer\Hardware\systick.h
文件 2402 2020-08-12 14:26 timer\Hardware\time.c
文件 159 2020-08-12 10:39 timer\Hardware\time.h
文件 2888 2020-08-11 20:22 timer\Hardware\uart.c
文件 336 2018-02-07 16:00 timer\Hardware\uart.h
目录 0 2020-08-12 16:53 timer\Lib\
目录 0 2020-08-12 16:53 timer\Lib\inc\
文件 8982 2011-03-10 10:47 timer\Lib\inc\misc.h
文件 21690 2011-03-10 10:47 timer\Lib\inc\stm32f10x_adc.h
文件 7555 2011-03-10 10:47 timer\Lib\inc\stm32f10x_bkp.h
文件 27559 2011-03-10 10:47 timer\Lib\inc\stm32f10x_can.h
文件 6573 2011-03-10 10:47 timer\Lib\inc\stm32f10x_cec.h
文件 2162 2011-03-10 10:47 timer\Lib\inc\stm32f10x_crc.h
............此处省略181个文件信息
- 上一篇:城市智慧停车整体解决方案
- 下一篇:信息安全数学基础第四章.docx
相关资源
- stm32f407上的两个can发送和接收例程
- STM32 led 时钟
- STM32 2.4G通信例程
- 直流无刷电机方波驱动 stm32 例程代码
- STM32中文资料
- STM32蓝牙和串口程序
- LED灯串电路图说明
- STM32f103超声波模块例程
- stm32f103c8t6 4 oled.rar
- stm32f030 IAP Demo(原创)
- 51单片机PWM程序,占空比、周期可调整
- STM32基于rt_thread操作系统的SDHC卡文件
-
Cme
taFileDC的使用示例 - 光立方制作(原理图 源程序 LED搭接方
- NRF24L01实现51与STM32双向通讯
- SG3525频率PWM控制均可调模块
- STM32F103 串口程序(完整版)
- stm32 ds18b20 温度传感器 测试通过
- stm32官方例程
- 使用OpenFileDialog打开文件对话框.rar
- STM32F103定时器中断程序
- [免费]基于stm32f103ze 的OLED驱动代码
- STM32F103RBT6驱动UC1698控制芯片的160160黑
- STM32F103 DS18B20 V3.5.0固件库驱动程序工
- STM32定时器使用入门。看了这个程序会
- SIM908 SDIO FSMC STM32 FIFO
- 2410的led测试程序keil可以用
- STM32F103 CC2500完整驱动(模拟SPI)
- AD7606采集程序
- LED背光的设计与优化
评论
共有 条评论