资源简介
MAG3110 代码 基于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
相关资源
- 4位加法器代码VHDL实现
- vfp员工培训系统源代码
- 强化学习 Dyna-H算法代码
- flash格斗游戏源代码
- 802.11e EDCA源代码
- 基于STM32F407的OTM8009液晶显示驱动
- CodeKana-代码视觉美化工具
- cocos2dx v2.2.6 超级玛丽源代码
- 基于STM32的GPS定位接收显示
- sg3525参考电路
- I2C总线的verilog代码
- 如何吃透源代码——阅读技巧(完整
- EM期望最大化算法源代码
- ArcEngine 绘制图形清晰全注释完整代码
- 密码学课程设计:DES 、RSA加密系统的
- TCP/IP通讯源代码
- js时间轴横向代码
- yolo源代码
- 异步清零T触发器的VHDL代码以及
- 移动端商城微信小程序源代码
- msp430g2553和LCD12864的串行显示代码
- sram读取控制verilog代码
-
MECHATROli
nk-III主站代码 - 2017中兴算法精英挑战赛-迪杰斯特拉派
- 《算法竞赛入门经典——训练指南》
- word中实现代码自动显示行号
- 驱动执行应用层代码之KeuserModeCallba
- 虚拟磁盘MINIPORT驱动代码
- 调制解调器2FSK的verilogHDL代码
- RT1052 QSPI 驱动代码
评论
共有 条评论