资源简介
本例程是基于主控stm32,实现spi串口扩展4个子串口,基于wk2124芯片。
代码片段和文件信息
/**************************************************************************//**
* @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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 21173 2015-09-21 14:56 WK2XXX\wk2xxx.c
文件 4526 2015-09-21 13:53 WK2XXX\wk2xxx.h
目录 0 2015-09-21 14:56 WK2XXX
----------- --------- ---------- ----- ----
25699 3
相关资源
- 基于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的电子密码锁
- 基于stm32的电子秤
- STM32 Stop模式低功耗及唤醒RTC+中断
- 毕设题目:嵌入式数字示波器设计
- ES8266 stm32
- 编码器接口模式程序 STM32F103
- SMT32F4函数固件库手册——新库
- STM32关于GPIO的控制程序
- STM32贪吃蛇游戏源代码
- STM32F103 读取SD卡中的图片TFT彩屏显示
-
基于Tli
nk云智能检测系统 - STM32频率计
- CanFestival移植至战舰STM32F1开发板
评论
共有 条评论