stm32f1 直流电机控制


stm32f1 直流电机控制, 完整工程 带PID(速度环), 参数可调
资源截图
代码片段和文件信息
/**************************************************************************//**
 * @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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件         33  2018-06-07 17:03  motor_control.gitCOMMIT_EDITMSG

     文件        312  2018-06-07 17:05  motor_control.gitconfig

     文件         73  2018-06-07 17:03  motor_control.gitdescription

     文件        103  2018-06-07 17:04  motor_control.gitFETCH_HEAD

     文件         23  2018-06-07 17:03  motor_control.gitHEAD

     文件        478  2018-06-07 17:03  motor_control.githooksapplypatch-msg.sample

     文件        896  2018-06-07 17:03  motor_control.githookscommit-msg.sample

     文件       3327  2018-06-07 17:03  motor_control.githooksfsmonitor-watchman.sample

     文件        189  2018-06-07 17:03  motor_control.githookspost-update.sample

     文件        424  2018-06-07 17:03  motor_control.githookspre-applypatch.sample

     文件       1642  2018-06-07 17:03  motor_control.githookspre-commit.sample

     文件       1348  2018-06-07 17:03  motor_control.githookspre-push.sample

     文件       4898  2018-06-07 17:03  motor_control.githookspre-rebase.sample

     文件        544  2018-06-07 17:03  motor_control.githookspre-receive.sample

     文件       1492  2018-06-07 17:03  motor_control.githooksprepare-commit-msg.sample

     文件       3610  2018-06-07 17:03  motor_control.githooksupdate.sample

     文件      22654  2018-06-07 17:04  motor_control.gitindex

     文件        240  2018-06-07 17:03  motor_control.gitinfoexclude

     文件        395  2018-06-07 17:04  motor_control.gitlogsHEAD

     文件        395  2018-06-07 17:04  motor_control.gitlogs
efsheadsmaster

     文件        332  2018-06-07 17:05  motor_control.gitlogs
efs
emotesoriginmaster

     文件         83  2018-06-07 17:04  motor_control.gitobjects25f84939ce23204a2b255cf0c470ae9876ceb59

     文件      28313  2018-06-07 17:03  motor_control.gitobjects2e024321108f79d7d4a0592b6c1a0122cec3e30

     文件      13015  2018-06-07 17:03  motor_control.gitobjects5fbe42a99366d31273acb89c4ab8cf7e1a95d49

     文件       3154  2018-06-07 17:03  motor_control.gitobjects6b96e7a2a3146fa66db528f3260abcb017fd6e

     文件        207  2018-06-07 17:04  motor_control.gitobjects74c7b0c8b848688693596246f29bf4d551e598a

     文件       2841  2018-06-07 17:03  motor_control.gitobjects76aa7fe3ddc00894410c216bc97d79ff69136d6

     文件        980  2018-06-07 17:03  motor_control.gitobjects7dc8ea769e633aaa96b0d9061516fe1945a17ca

     文件      27894  2018-06-07 17:03  motor_control.gitobjects83af9ef768212c1975454e3a6a7356add71725c

     文件      11122  2018-06-07 17:03  motor_control.gitobjects8fe97ea17111d5b6800f0a98c8888429eff2f0d

............此处省略718个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)