资源简介
一些对寄存器操作的STM32流水灯和蜂鸣器还有按键代码,非常实用,容易理解
代码片段和文件信息
/**************************************************************************//**
* @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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 17273 2012-07-16 15:18 STM32_Model_灯\CMSIS\core_cm3.c
文件 85714 2012-07-16 15:18 STM32_Model_灯\CMSIS\core_cm3.h
文件 633941 2012-07-16 15:18 STM32_Model_灯\CMSIS\stm32f10x.h
文件 36557 2012-07-16 15:18 STM32_Model_灯\CMSIS\system_stm32f10x.c
文件 2085 2012-07-16 15:18 STM32_Model_灯\CMSIS\system_stm32f10x.h
文件 3579 2013-10-02 19:18 STM32_Model_灯\RVMDK\core_cm3.crf
文件 88 2013-10-02 19:18 STM32_Model_灯\RVMDK\core_cm3.d
文件 10352 2013-10-02 19:18 STM32_Model_灯\RVMDK\core_cm3.o
文件 331 2013-10-02 19:18 STM32_Model_灯\RVMDK\core_cm3.__i
文件 497 2013-03-30 22:11 STM32_Model_灯\RVMDK\Jli
文件 31773 2013-10-05 20:29 STM32_Model_灯\RVMDK\Jli
文件 285 2012-07-16 15:18 STM32_Model_灯\RVMDK\Jli
文件 28771 2013-10-05 20:29 STM32_Model_灯\RVMDK\List\Model.map
文件 41180 2013-03-21 13:22 STM32_Model_灯\RVMDK\List\startup_stm32f10x_md.lst
文件 346208 2013-10-05 19:53 STM32_Model_灯\RVMDK\main.crf
文件 1205 2013-10-05 19:53 STM32_Model_灯\RVMDK\main.d
文件 379636 2013-10-05 19:53 STM32_Model_灯\RVMDK\main.o
文件 346728 2013-10-02 19:18 STM32_Model_灯\RVMDK\misc.crf
文件 1247 2013-10-02 19:18 STM32_Model_灯\RVMDK\misc.d
文件 381584 2013-10-02 19:18 STM32_Model_灯\RVMDK\misc.o
文件 241652 2013-10-05 20:29 STM32_Model_灯\RVMDK\Model.axf
文件 3222 2013-10-05 20:29 STM32_Model_灯\RVMDK\Model.hex
文件 23723 2013-10-05 20:29 STM32_Model_灯\RVMDK\Model.htm
文件 379 2013-10-05 20:29 STM32_Model_灯\RVMDK\Model.lnp
文件 1396 2013-10-05 20:29 STM32_Model_灯\RVMDK\Model.plg
文件 479 2012-07-16 15:18 STM32_Model_灯\RVMDK\Model.sct
文件 1313 2013-10-05 20:29 STM32_Model_灯\RVMDK\Model.tra
....... 68608 2013-10-05 20:29 STM32_Model_灯\RVMDK\Model.uvgui.Administrator
....... 68616 2013-10-05 20:29 STM32_Model_灯\RVMDK\Model.uvgui_Administrator.bak
....... 9958 2013-10-05 20:29 STM32_Model_灯\RVMDK\Model.uvopt
............此处省略87个文件信息
相关资源
- AD9854驱动
- STM32+GPS程序
- 烟雾报警器程序
- 基于STM32F407开发板驱动触摸屏原子
- stm32L431的寄存器手册AN4312 Application
- STM32的蓝牙程序HC-02
- 基于物联网的温室大棚监控系统的设
- STM32F103C8T6-LED例程
- stm32解析GPS模块数据流
- STM32F407四路12位AD采样
- stm32单片机+串口通信+温度采集
- Contiki入门手册高清中文版 PDF
- 蓝牙hc程序实现APP与单片机STM32F103的通
- STM32用DMA串口发送
- STM32四通道4-20ma
- 声音传感器程序-STM32
- 基于stm32的温湿度采集显示系统设计
- STM32串行12864液晶显示
- stm32的TIM1带死区互补输出六路PWM波
- STM32无需外接解码芯片播放音乐
- STM32-PWM输出源码
- STM32F429 USB HID
- 2019电赛舵机云台控制代码.zip
- STM32 OLED显程
- 基于stm32的数字示波器c程序绝对完整
- FreeModbus--RTU--Master+Slave--uCOSIII--STM32F
- 基于STM32F4的小兵与大炮游戏
- keil.Jansson.1.0.0.pack
- OLED驱动STM32
- stm32 5路循迹智能小车资料,可遥控
评论
共有 条评论