• 大小: 65.71MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2022-05-17
  • 语言: 其他
  • 标签: STM32  库函数  

资源简介

做了1年多的比赛,攒出来一套库,然后总结说明了一下,里面是以正点原子库为基础,包含泰庆、优信、龙邱和一些从网上大神的程序里面借鉴,还是相对比较全的库,适合入门级使用哈,精度中下等,需要高精度高要求需要自己更改。

资源截图

代码片段和文件信息

/**************************************************************************//**
 * @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-09-26 21:40  STM32_sumjess\
     目录           0  2018-09-26 21:09  STM32_sumjess\CORE\
     文件       17273  2010-06-07 10:25  STM32_sumjess\CORE\core_cm3.c
     文件       85714  2011-02-09 14:59  STM32_sumjess\CORE\core_cm3.h
     文件       85714  2011-02-09 14:59  STM32_sumjess\CORE\core_cm3.h~RF4c5eee1.TMP
     文件       15504  2017-08-03 11:46  STM32_sumjess\CORE\startup_stm32f10x_hd.s
     文件       12765  2011-03-10 10:52  STM32_sumjess\CORE\startup_stm32f10x_md.s
     文件       58368  2017-09-08 18:38  STM32_sumjess\C语言.doc
     文件     2652672  2014-09-02 12:39  STM32_sumjess\FlyMcu.exe
     文件        1355  2018-09-26 21:40  STM32_sumjess\FlyMcuConfig.ini
     目录           0  2018-09-26 21:09  STM32_sumjess\Food_robot\
     目录           0  2018-09-26 21:22  STM32_sumjess\Food_robot\MOTOR\
     文件        2724  2018-09-26 21:22  STM32_sumjess\Food_robot\MOTOR\sumjess_track_motor.c
     文件        1853  2018-09-26 21:22  STM32_sumjess\Food_robot\MOTOR\sumjess_track_motor.h
     目录           0  2018-09-26 21:09  STM32_sumjess\Food_robot\food_oled\
     文件        3248  2018-09-25 17:17  STM32_sumjess\Food_robot\food_oled\food_OLED.c
     文件        1184  2018-09-23 10:54  STM32_sumjess\Food_robot\food_oled\food_OLED.h
     目录           0  2018-09-26 21:09  STM32_sumjess\Food_robot\test\
     文件        3520  2018-09-22 07:09  STM32_sumjess\Food_robot\test\test.c
     文件        1520  2018-09-22 07:09  STM32_sumjess\Food_robot\test\test.h
     目录           0  2018-09-26 22:04  STM32_sumjess\Food_robot\track\
     文件        3700  2018-09-26 22:04  STM32_sumjess\Food_robot\track\sumjess_track.c
     文件        1645  2018-09-22 08:11  STM32_sumjess\Food_robot\track\sumjess_track.h
     目录           0  2018-09-26 21:23  STM32_sumjess\HAREWARE\
     目录           0  2018-09-26 21:09  STM32_sumjess\HAREWARE\24CXX\
     文件        3510  2012-07-19 23:42  STM32_sumjess\HAREWARE\24CXX\24cxx.c
     文件        1134  2011-09-27 13:05  STM32_sumjess\HAREWARE\24CXX\24cxx.h
     目录           0  2018-09-26 21:58  STM32_sumjess\HAREWARE\ADC\
     文件        6048  2018-09-26 21:15  STM32_sumjess\HAREWARE\ADC\adc.c
     文件        1656  2018-09-26 21:15  STM32_sumjess\HAREWARE\ADC\adc.h
     文件      795648  2017-08-24 17:55  STM32_sumjess\HAREWARE\ADC\解释.doc
............此处省略644个文件信息

评论

共有 条评论