91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 22.05MB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發布日期: 2023-07-03
  • 語言: 其他
  • 標簽:

資源簡介

國外非常流行的步進電機STM32控制代碼,S型加減速,啟動加速和停止減速可以不同,完成滿足各種不同需要,代碼中可以隨時獲取電機已走脈沖(實際就是當前位置),類似PLC中的脈沖計數器,代碼的執行效率比DMA方式的還高,基本不占用CPU資源,可以說是非常精典的資料!!

資源截圖

代碼片段和文件信息

import?os

#?toolchains?options
ARCH=‘arm‘
CPU=‘cortex-m3‘
CROSS_TOOL=‘keil‘

if?os.getenv(‘RTT_CC‘):
CROSS_TOOL?=?os.getenv(‘RTT_CC‘)

#device?options
#?STM32_TYPE?=?
#?‘STM32F10X_LD‘‘STM32F10X_LD_VL‘
#?‘STM32F10X_MD‘‘STM32F10X_MD_VL‘
#?‘STM32F10X_HD‘‘STM32F10X_HD_VL‘
#?‘STM32F10X_XL‘‘STM32F10X_CL‘
STM32_TYPE?=?‘STM32F10X_HD‘

#?lcd?panel?options
#?‘FMT0371‘‘ILI932X‘?‘SSD1289‘
RT_USING_LCD_TYPE?=?‘SSD1289‘

#?cross_tool?provides?the?cross?compiler
#?EXEC_PATH?is?the?compiler?execute?path?for?example?CodeSourcery?Keil?MDK?IAR

if??CROSS_TOOL?==?‘gcc‘:
PLATFORM? =?‘gcc‘
EXEC_PATH? =?‘D:/SourceryGCC/bin‘
elif?CROSS_TOOL?==?‘keil‘:
PLATFORM? =?‘armcc‘
EXEC_PATH? =?‘C:/Keil‘
elif?CROSS_TOOL?==?‘iar‘:
PLATFORM? =?‘iar‘
IAR_PATH? =?‘C:/Program?Files/IAR?Systems/embedded?Workbench?6.0?Evaluation‘

if?os.getenv(‘RTT_EXEC_PATH‘):
EXEC_PATH?=?os.getenv(‘RTT_EXEC_PATH‘)

BUILD?=?‘debug‘

if?PLATFORM?==?‘gcc‘:
????#?toolchains
????PREFIX?=?‘arm-none-eabi-‘
????CC?=?PREFIX?+?‘gcc‘
????AS?=?PREFIX?+?‘gcc‘
????AR?=?PREFIX?+?‘ar‘
????link?=?PREFIX?+?‘gcc‘
????TARGET_EXT?=?‘axf‘
????SIZE?=?PREFIX?+?‘size‘
????OBJDUMP?=?PREFIX?+?‘objdump‘
????OBJCPY?=?PREFIX?+?‘objcopy‘

????DEVICE?=?‘?-mcpu=cortex-m3?-mthumb?-ffunction-sections?-fdata-sections‘
????CFLAGS?=?DEVICE
????AFLAGS?=?‘?-c‘?+?DEVICE?+?‘?-x?assembler-with-cpp‘
????LFLAGS?=?DEVICE?+?‘?-Wl--gc-sections-Map=rtthread-stm32.map-cref-uReset_Handler?-T?stm32_rom.ld‘

????CPATH?=?‘‘
????LPATH?=?‘‘

????if?BUILD?==?‘debug‘:
????????CFLAGS?+=?‘?-O0?-gdwarf-2‘
????????AFLAGS?+=?‘?-gdwarf-2‘
????else:
????????CFLAGS?+=?‘?-O2‘

????POST_ACTION?=?OBJCPY?+?‘?-O?binary?$TARGET?rtthread.bin\n‘?+?SIZE?+?‘?$TARGET?\n‘

elif?PLATFORM?==?‘armcc‘:
????#?toolchains
????CC?=?‘armcc‘
????AS?=?‘armasm‘
????AR?=?‘armar‘
????link?=?‘armlink‘
????TARGET_EXT?=?‘axf‘

????DEVICE?=?‘?--device?DARMSTM‘
????CFLAGS?=?DEVICE?+?‘?--apcs=interwork‘
????AFLAGS?=?DEVICE
????LFLAGS?=?DEVICE?+?‘?--info?sizes?--info?totals?--info?unused?--info?veneers?--list?rtthread-stm32.map?--scatter?stm32_rom.sct‘

????CFLAGS?+=?‘?-I‘?+?EXEC_PATH?+?‘/ARM/RV31/INC‘
????LFLAGS?+=?‘?--libpath?‘?+?EXEC_PATH?+?‘/ARM/RV31/LIB‘

????EXEC_PATH?+=?‘/arm/bin40/‘

????if?BUILD?==?‘debug‘:
????????CFLAGS?+=?‘?-g?-O0‘
????????AFLAGS?+=?‘?-g‘
????else:
????????CFLAGS?+=?‘?-O2‘

????POST_ACTION?=?‘fromelf?--bin?$TARGET?--output?rtthread.bin?\nfromelf?-z?$TARGET‘

elif?PLATFORM?==?‘iar‘:
????#?toolchains
????CC?=?‘iccarm‘
????AS?=?‘iasmarm‘
????AR?=?‘iarchive‘
????link?=?‘ilinkarm‘
????TARGET_EXT?=?‘out‘

????DEVICE?=?‘?-D?USE_STDPERIPH_DRIVER‘?+?‘?-D?STM32F10X_HD‘

????CFLAGS?=?DEVICE
????CFLAGS?+=?‘?--diag_suppress?Pa050‘
????CFLAGS?+=?‘?--no_cse‘?
????CFLAGS?+=?‘?--no_unroll‘?
????CFLAGS?+=?‘?--no_inline‘?
????CFLAGS?+=?‘?--no_code_motion‘?
????CFLAGS?+=?‘?--no_tbaa‘?
????CFLAGS?+=?‘?--no_clustering‘?
????CFLAGS?+=?‘?--no_scheduling‘?
????CFLAGS?+=?‘?--debug‘?
????CFLAGS?+=?‘?--endian=little‘?
????CFLAGS?+=?‘?--cpu=Cortex-M3‘?
????CFLAGS?+=?‘?-e‘?

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????433284??2016-01-21?09:43??motton\步進電機(加減速、精準定位脈沖、自由調速)\LV8729V_規格書.pdf

?????文件??????29311??2016-01-21?09:43??motton\步進電機(加減速、精準定位脈沖、自由調速)\LV8729原理圖.pdf

?????文件????????571??2014-01-06?22:38??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\AUTHORS

?????文件???????4345??2014-08-09?10:52??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\applications\application.c

?????文件???????8078??2014-12-16?23:16??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\applications\global_varial.h

?????文件????????225??2014-06-25?00:09??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\applications\include.h

?????文件????????678??2014-12-21?21:27??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\applications\Macro.h

?????文件??????54896??2014-12-24?22:17??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\applications\motor.c

?????文件???????3685??2012-12-13?14:24??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\applications\motor.h

?????文件???????3963??2014-12-27?13:10??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\applications\MotorStart.c

?????文件???????8417??2014-12-16?22:48??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\applications\motor_it.c

?????文件???????8444??2014-11-20?23:15??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\applications\ringbuffer.c

?????文件???????4476??2014-11-20?23:33??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\applications\ringbuffer.h

?????文件???????4861??2014-01-06?22:38??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\applications\rtconfig.h

?????文件????????258??2014-01-06?22:38??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\applications\SConscript

?????文件???????2657??2014-08-09?10:52??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\applications\startup.c

?????文件???????3841??2012-12-13?12:38??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\applications\stm32f10x_it.h

?????文件??????57184??2012-12-13?14:05??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\applications\stm32f10x_itb.c

?????文件???????3172??2014-05-18?21:14??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\applications\stm32f10x_lib.h

?????文件?????404996??2016-01-21?09:49??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\build\application.crf

?????文件???????3358??2016-01-21?09:49??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\build\application.d

?????文件?????430768??2016-01-21?09:49??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\build\application.o

?????文件??????31924??2016-01-21?09:50??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\build\backtrace.crf

?????文件????????446??2016-01-21?09:50??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\build\backtrace.d

?????文件??????25188??2016-01-21?09:50??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\build\backtrace.o

?????文件?????406446??2016-01-21?09:49??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\build\board.crf

?????文件???????3066??2016-01-21?09:49??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\build\board.d

?????文件?????430168??2016-01-21?09:49??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\build\board.o

?????文件??????33946??2016-01-21?09:50??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\build\clock.crf

?????文件????????431??2016-01-21?09:50??motton\步進電機(加減速、精準定位脈沖、自由調速)\stepmotor(example)\stepmotor-both201401201\RT-Thread_1.2.0\bsp\stm32f10x\build\clock.d

............此處省略3924個文件信息

評論

共有 條評論