资源简介
stm32上freertos上对sk6812灯带的移植,并完成适应灯数的颜色变化定义函数和跑马灯,呼吸灯。注释完整清楚。
代码片段和文件信息
/**************************************************************************//**
* @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 2018-06-28 23:04 FreeRTOS 灯带sk6812\
目录 0 2018-06-28 23:04 FreeRTOS 灯带sk6812\CORE\
文件 17273 2010-06-07 10:25 FreeRTOS 灯带sk6812\CORE\core_cm3.c
文件 85714 2011-02-09 14:59 FreeRTOS 灯带sk6812\CORE\core_cm3.h
文件 15503 2011-03-10 10:52 FreeRTOS 灯带sk6812\CORE\startup_stm32f10x_hd.s
文件 12765 2011-03-10 10:52 FreeRTOS 灯带sk6812\CORE\startup_stm32f10x_md.s
目录 0 2018-06-28 23:04 FreeRTOS 灯带sk6812\FreeRTOS\
文件 15771 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\croutine.c
文件 26251 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\event_groups.c
目录 0 2018-06-28 23:04 FreeRTOS 灯带sk6812\FreeRTOS\include\
文件 29133 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\include\croutine.h
文件 10168 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\include\deprecated_definitions.h
文件 32882 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\include\event_groups.h
文件 34633 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\include\FreeRTOS.h
文件 12655 2016-11-28 18:20 FreeRTOS 灯带sk6812\FreeRTOS\include\FreeRTOSConfig.h
文件 21169 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\include\list.h
文件 12288 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\include\mpu_prototypes.h
文件 10234 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\include\mpu_wrappers.h
文件 8684 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\include\portable.h
文件 8184 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\include\projdefs.h
文件 67336 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\include\queue.h
文件 50406 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\include\semphr.h
文件 8550 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\include\StackMacros.h
文件 850 2014-01-13 18:23 FreeRTOS 灯带sk6812\FreeRTOS\include\stdint.readme
文件 95351 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\include\task.h
文件 62241 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\include\timers.h
文件 10993 2016-05-21 00:23 FreeRTOS 灯带sk6812\FreeRTOS\list.c
目录 0 2018-06-28 23:04 FreeRTOS 灯带sk6812\FreeRTOS\portable\
目录 0 2018-06-28 23:04 FreeRTOS 灯带sk6812\FreeRTOS\portable\Keil\
文件 20 2013-09-17 16:17 FreeRTOS 灯带sk6812\FreeRTOS\portable\Keil\See-also-the-RVDS-directory.txt
目录 0 2018-06-28 23:04 FreeRTOS 灯带sk6812\FreeRTOS\portable\MemMang\
............此处省略209个文件信息
- 上一篇:OPNET网络仿真教程
- 下一篇:科沃兹、帝豪通用安装USB导航模块图文教程.doc
评论
共有 条评论