資源簡介
兩輪自平衡小車,具有PD直立環和PI速度環使得兩輪小車實現自平衡控制
代碼片段和文件信息
/**************************************************************************//**
?*?@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??????????????????????????????????????/*!??#define?__INLINE?????????__inline???????????????????????????????????/*!
#elif?defined?(?__ICCARM__?)
??#define?__ASM???????????__asm???????????????????????????????????????/*!??#define?__INLINE????????inline??????????????????????????????????????/*!
#elif?defined???(??__GNUC__??)
??#define?__ASM????????????__asm??????????????????????????????????????/*!??#define?__INLINE?????????inline?????????????????????????????????????/*!
#elif?defined???(??__TASKING__??)
??#define?__ASM????????????__asm??????????????????????????????????????/*!??#define?__INLINE?????????inline?????????????????????????????????????/*!
#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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????17273??2018-10-26?12:31??平衡小車\CORE\core_cm3.c
?????文件??????85714??2018-10-26?12:31??平衡小車\CORE\core_cm3.h
?????文件??????15503??2018-10-26?12:31??平衡小車\CORE\startup_stm32f10x_hd.s
?????文件??????12765??2018-10-26?12:31??平衡小車\CORE\startup_stm32f10x_md.s
?????文件??????????0??2018-10-26?12:31??平衡小車\HARDWARE\dianjiqudong\dianjiqudong.c
?????文件??????????0??2018-10-26?12:31??平衡小車\HARDWARE\dianjiqudong\dianjiqudong.h
?????文件??????19342??2018-10-26?12:31??平衡小車\HARDWARE\DMP\dmpKey.h
?????文件???????6765??2018-10-26?12:31??平衡小車\HARDWARE\DMP\dmpmap.h
?????文件??????84156??2018-10-26?21:29??平衡小車\HARDWARE\DMP\inv_mpu.c
?????文件???????4335??2018-10-26?12:31??平衡小車\HARDWARE\DMP\inv_mpu.h
?????文件??????57945??2018-10-26?21:21??平衡小車\HARDWARE\DMP\inv_mpu_dmp_motion_driver.c
?????文件???????3386??2018-10-26?12:31??平衡小車\HARDWARE\DMP\inv_mpu_dmp_motion_driver.h
?????文件???????3429??2018-11-01?11:09??平衡小車\HARDWARE\ENCODE\encode.c
?????文件????????371??2018-10-26?12:31??平衡小車\HARDWARE\ENCODE\encode.h
?????文件??????10602??2018-10-26?12:31??平衡小車\HARDWARE\IIC\IOI2C.c
?????文件???????3125??2018-10-26?12:31??平衡小車\HARDWARE\IIC\IOI2C.h
?????文件???????1977??2018-10-26?12:31??平衡小車\HARDWARE\KEY\key.c
?????文件???????1013??2018-10-26?12:31??平衡小車\HARDWARE\KEY\key.h
?????文件???????1306??2018-10-26?12:31??平衡小車\HARDWARE\LED\led.c
?????文件????????640??2018-10-26?12:31??平衡小車\HARDWARE\LED\led.h
?????文件??????11442??2018-10-26?22:14??平衡小車\HARDWARE\MPU6050\MPU6050.c
?????文件??????14792??2018-10-26?12:31??平衡小車\HARDWARE\MPU6050\mpu6050.h
?????文件???????7880??2018-11-01?20:56??平衡小車\HARDWARE\PID\pid.c
?????文件????????593??2018-11-01?12:20??平衡小車\HARDWARE\PID\pid.h
?????文件???????2612??2018-10-29?23:05??平衡小車\HARDWARE\PWM\pwm.c
?????文件????????106??2018-10-26?12:31??平衡小車\HARDWARE\PWM\pwm.h
?????文件???????1984??2018-10-26?12:31??平衡小車\HARDWARE\UART3\uart3.c
?????文件?????????97??2018-10-26?12:31??平衡小車\HARDWARE\UART3\uart3.h
?????文件????????399??2018-10-26?12:31??平衡小車\keilkilll.bat
?????文件???????3960??2018-10-31?22:10??平衡小車\OBJ\core_cm3.crf
............此處省略189個文件信息
- 上一篇:STM32二維寫字機,解析G碼,有注解
- 下一篇:數據挖掘、機器學習在客戶細分中應用
評論
共有 條評論