资源简介
在STM32 上调试的DP83848网络芯片的源码,使用内部分频50M实现的
代码片段和文件信息
/******************************************************************************
* @file: core_cm3.c
* @purpose: CMSIS Cortex-M3 Core Peripheral Access layer Source File
* @version: V1.20
* @date: 22. May 2009
*----------------------------------------------------------------------------
*
* Copyright (C) 2009 ARM Limited. All rights reserved.
*
* ARM Limited (ARM) is supplying this software for use with Cortex-Mx
* processor based microcontrollers. This file can be freely distributed
* within development tools that are supporting such ARM based processors.
*
* 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 armcc */
#define __INLINE __inline /*!< inline keyword for armcc */
#elif defined ( __ICCARM__ )
#define __ASM __asm /*!< asm keyword for iarcc */
#define __INLINE inline /*!< inline keyword for iarcc. Only avaiable in High optimization mode! */
#elif defined ( __GNUC__ )
#define __ASM __asm /*!< asm keyword for gcc */
#define __INLINE inline /*!< inline keyword for gcc */
#elif defined ( __TASKING__ )
#define __ASM __asm /*!< asm keyword for TASKING Compiler */
#define __INLINE inline /*!< inline keyword for TASKING Compiler */
#endif
#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/
/**
* @brief Return the Process Stack Pointer
*
* @param none
* @return uint32_t 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 uint32_t Process Stack Pointer
* @return none
*
* 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
*
* @param none
* @return uint32_t Main Stack Pointer
*
* Return the current value of the MSP (main stack pointer)
* Cortex processor register
*/
__ASM uint32_t __get_MSP(void)
{
mrs r0 msp
bx lr
}
/**
* @brief Set the Main Stack Pointer
*
* @param uint32_t Main Stack Pointer
* @return none
*
*
相关资源
- stm32的modbus主机电表读数
- STM32F103+DS1302
- stm32f407 利用DAC产生sin波形通过DMA
- stm32f407ADC高速采样并进行CFFT变换
- STM32综合测试程序4.0寸ILI9488_320X480_8位
- 基于stm32F103的GRBL 0.9版本的移植
- STM32_ucos.rar
- STM32可以实现用户给指定角度,然后舵
- stm32f103输入捕获得到占空比与周期
- stm32多路超声波避障小车,L298N驱动,
- STM32F407最小系统资料_包括原理图和
- 基于WK串口扩展芯片例程-STM32
- 基于STM32控制的可调PWM输出+LCD显示
- pwm呼吸灯stm32工程代码
- 基于STM32F103的modbus从机keil实际可用工
- STM32CubeIDE 1.6.1 自动代码补全插件
- STM32+ESP8266+MQTT接入OneNet 通过手机APP控
- ad9851 DDS 程序STM32 C51本人亲自调试
- STM32F407开发板示波器程序
- stm32f1-3串口通信
- STM32F103C8T6显程
- bootload for stm32f103
- F407 双路超声波.zip
- STM32控制步进电机带LCD显示
- 基于stm32语音识别与RFID技术智能分类
- stm32+mpu6050+QMC5883L
- STM32温控风扇
- STM32F413原理图
- Si7021温湿度STM32F1读取程序
- 基于stm32的电子密码锁
评论
共有 条评论