摘要:
算法思想简单描述:在插入第i个元素时,对前面的0~i-1元素进行折半,先跟他们 中间的那个元素比,如果小,则对前半再进行折半,否则对后半 进行折半,直到left>right,然后再把第i个元素前1位与目标位置之间 的所有元素后移,再把第i个元素放在目标位置上。 二分法排序最重要的一个步骤就是查...
阅读全文
posted @ 2015-08-10 23:00
IAmAProgrammer
阅读(1722)
推荐(0)
摘要:
Identifier filteringIn the CAN protocol the identifier of a message is not associated with the address of a nodebut related to the content of the mess...
阅读全文
posted @ 2015-08-10 02:37
IAmAProgrammer
阅读(6204)
推荐(0)
摘要:
Canbus ID filter and maskCANBUS is a two-wire, half-duplex, bus based LANsystem that is ‘collision free’. Data is BROADCAST onto the bus -THERE IS NO ...
阅读全文
posted @ 2015-08-10 01:39
IAmAProgrammer
阅读(19740)
推荐(0)
摘要:
Calculate CAN bit timing parametersTSYNC_SEG=== 1TSEG1 = Prop_Seg + Phase_Seg1TSEG2 = Phase_Seg2TBit = TSYNC_SEG + TSEG1 + TSEG2( TBit - TSEG2 ) / TBi...
阅读全文
posted @ 2015-08-10 00:22
IAmAProgrammer
阅读(13503)
推荐(0)
摘要:
Sometimes you have a CAN equipped processor on a low cost board but it has no CAN transceiver chips.Here is a method that can be used to create a smal...
阅读全文
posted @ 2015-08-09 12:46
IAmAProgrammer
阅读(1634)
推荐(0)
摘要:
/* ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file exce...
阅读全文
posted @ 2015-08-09 12:01
IAmAProgrammer
阅读(1430)
推荐(0)
摘要:
Detailed DescriptionGeneric CAN Driver.This module implements a generic CAN (Controller Area Network) driver allowing the exchange of information at f...
阅读全文
posted @ 2015-08-09 11:29
IAmAProgrammer
阅读(1157)
推荐(0)
摘要:
#define GPIO_AF0_MCO // MCO (MCO1 and MCO2) Alternate Function mapping#define GPIO_AF0_RTC_50Hz // RTC_50Hz Alternate F...
阅读全文
posted @ 2015-08-09 00:30
IAmAProgrammer
阅读(2695)
推荐(0)
摘要:
http://forums.xilinx.com/t5/Configuration/Spartan6-slave-SelectMap-configuration-fails-owing-to-JTAG/td-p/504815I have a board with a XC6SLX9 which is...
阅读全文
posted @ 2015-08-08 13:52
IAmAProgrammer
阅读(530)
推荐(0)
摘要:
STM32F4: Generating parallel signals with the FSMCThe goal:The memory controller can be used to generate a "generic" 16-bit parallel data stream with ...
阅读全文
posted @ 2015-08-08 13:33
IAmAProgrammer
阅读(1169)
推荐(0)
摘要:
STM32F4xx official page:http://www.st.com/internet/mcu/subclass/1521.jspIntroductionFPU - Floating point benefitsDSP - benefitsPricePortfolioTutorialA...
阅读全文
posted @ 2015-08-08 13:18
IAmAProgrammer
阅读(1255)
推荐(0)
摘要:
STM32F4 USB Composite CDC + MSCI'm in the process of building a USB composite CDC + MSC device on the STM32F4 Discovery board but am having trouble ge...
阅读全文
posted @ 2015-08-08 01:44
IAmAProgrammer
阅读(8736)
推荐(0)
摘要:
AT91 USB Composite Driver Implementation1. Introduction The USB Composite Device is a general way to integrate two or more functions into one single d...
阅读全文
posted @ 2015-08-08 01:35
IAmAProgrammer
阅读(1147)
推荐(0)
摘要:
Communication Device Class,简称CDCUSB Compound Device,USB复合设备USB Composite Device,USB组合设备摘要USB复合设备Compound Device内嵌Hub和多个Function,每个Function都相当于一个独立的USB...
阅读全文
posted @ 2015-08-07 23:56
IAmAProgrammer
阅读(17752)
推荐(1)
摘要:
D:\Workspace\........\RTE\Device>STM32CubeMX.exe -s project.script -tpl_path C:\Keil5\ARM\Pack\Keil\STM32F4xx_DFP\2.5.0\MDK\CubeMX\ -dest_path [D:\Wor
阅读全文
posted @ 2015-08-07 19:48
IAmAProgrammer
阅读(2404)
推荐(0)
摘要:
USB2.0是向下兼容USB1.X的,即USB2.0支持高速,全速,低速的USB设备(HIGH-SPEED,FULL-SPEED,LOW-SPEED),而USB1.X不支持高速设备。因此如果高速设备接在USB1.X的hub上,也只能工作在全速状态。因此对速度的识别是很重要的,否则没办法以想要的速度通...
阅读全文
posted @ 2015-08-06 23:09
IAmAProgrammer
阅读(9302)
推荐(0)
摘要:
STM32 USB-FS-Device development kitCompatible with theSTM32F102xx and STM32F103xx series,STM32 L1 Ultra Low Power,STM32 F3 SeriesUSB On-The-Go host an...
阅读全文
posted @ 2015-08-06 18:19
IAmAProgrammer
阅读(1326)
推荐(0)
摘要:
Hi guys,I am in need of your help, unfortunately STs documentation is lacking some information here.I am basically trying to implement a USB device (C...
阅读全文
posted @ 2015-08-06 17:11
IAmAProgrammer
阅读(3366)
推荐(0)
摘要:
A task may be in one of several states at any given time. When a task is created, it isplaced into the READY state.A task in the READY state is activa...
阅读全文
posted @ 2015-08-06 11:11
IAmAProgrammer
阅读(725)
推荐(0)
摘要:
1、ST官方正式出版了两种仿真器:ST-LINK、ST-LINK/V2,其他型号(ST-LINK II,ST-LINK III,…)要么是国内公司生产,要么是开发板自带的;2、在ST官网ST-LINK的状态为NRND(not recommended for new designs),官方已经不建议在...
阅读全文
posted @ 2015-08-05 00:52
IAmAProgrammer
阅读(9594)
推荐(0)
摘要:
There are two kinds of errors that Basis can find.Syntaxerrors occur during the parsing of input code, and are caused by grammatically incorrect state...
阅读全文
posted @ 2015-08-04 23:55
IAmAProgrammer
阅读(700)
推荐(0)
摘要:
https://developer.mbed.org/platforms/ST-Discovery-F746NG/Microcontroller featuresSTM32F46NGH6 in TFBGA216 packageARM®32-bit Cortex®-M7 + FPU + Chrom-A...
阅读全文
posted @ 2015-08-04 15:02
IAmAProgrammer
阅读(788)
推荐(0)
摘要:
Overview of HAL driversThe HAL drivers were designed to offer a rich set of APIs and to interact easily with theapplication upper layers.Each driver c...
阅读全文
posted @ 2015-08-04 11:33
IAmAProgrammer
阅读(3145)
推荐(0)
摘要:
指针变量可以指向一个结构数组,这时结构指针变量的值是整个结构数组的首地址。结构指针变量也可指向结构数组的一个元素,这时结构指针变量的值是该结构数组元素的首地址。设ps为指向结构数组的指针变量,则ps也指向该结构数组的0号元素,ps+1指向1号元素,ps+i则指向i号元素。这与普通数组的情况是一致的。...
阅读全文
posted @ 2015-08-03 00:55
IAmAProgrammer
阅读(3740)
推荐(0)
摘要:
The bootloader is stored in the internal boot ROM memory (system memory) of STM32 devices.It is programmed by ST during production.Its main task is to...
阅读全文
posted @ 2015-08-02 21:03
IAmAProgrammer
阅读(1540)
推荐(0)
摘要:
Mark OccurrencesThe Mark Occurrences feature enables you to see where an element is referenced by simply clicking on the element in the editor.When th...
阅读全文
posted @ 2015-07-31 23:20
IAmAProgrammer
阅读(2360)
推荐(0)
摘要:
7/20/2015UPDATE:After installing the IDE you may not see all the APPs. Press F5 in Eclipse to refresh and all the Apps will show.Known Limitations & N...
阅读全文
posted @ 2015-07-30 20:53
IAmAProgrammer
阅读(820)
推荐(0)
摘要:
;/******************** (C) COPYRIGHT 2015 STMicroelectronics ********************;* File Name : startup_stm32f4xx.s;* Author : MC...
阅读全文
posted @ 2015-07-30 19:53
IAmAProgrammer
阅读(919)
推荐(0)
摘要:
;******************** (C) COPYRIGHT 2014 STMicroelectronics *******************;* File Name : startup_stm32f1xx.s;* Author : MCD ...
阅读全文
posted @ 2015-07-30 18:15
IAmAProgrammer
阅读(649)
推荐(0)
摘要:
a stack. The core automatically saves several registers on the stack when an interrupt fires. Initial stack pointer value is read from address 0x0 the...
阅读全文
posted @ 2015-07-29 21:24
IAmAProgrammer
阅读(237)
推荐(0)
摘要:
http://coactionos.com/embedded%20design%20tips/2013/10/09/Tips-Context-Switching-on-the-Cortex-M3/The ARM Cortex-M3 architecture is designed with spec...
阅读全文
posted @ 2015-07-29 21:17
IAmAProgrammer
阅读(459)
推荐(0)
摘要:
Overload:顾名思义,就是Over(重新)——load(加载),所以中文名称是重载。它可以表现类的多态性,可以是函数里面可以有相同的函数名但是参数名、返回值、类型不能相同;或者说可以改变参数、类型、返回值但是函数名字依然不变。Override:就是ride(重写)的意思,在子类继承父类的时候子...
阅读全文
posted @ 2015-07-29 20:55
IAmAProgrammer
阅读(1852)
推荐(0)
摘要:
http://stm32f4-discovery.com/2015/01/properly-set-clock-speed-stm32f4xx-devices/I see that you have problems with your devices when you don’t know eve...
阅读全文
posted @ 2015-07-29 16:48
IAmAProgrammer
阅读(1728)
推荐(0)
摘要:
http://stm32f4-discovery.com/2014/11/overclock-stm32f4-device-up-to-250mhz/Let’s test what STM32F4xx devices can do.I have all “4 speedfamilies” at ho...
阅读全文
posted @ 2015-07-29 16:43
IAmAProgrammer
阅读(706)
推荐(0)
摘要:
because the SysTick ISR has been assigned to the FreeRTOSxPortSysTickHandler() function without regard to HAL operations.I think this can be corrected...
阅读全文
posted @ 2015-07-29 00:24
IAmAProgrammer
阅读(5567)
推荐(0)
摘要:
http://bbs.elecfans.com/jishu_464356_1_1.html手上有块NUCLEO STM32L053x板子,用来做串口实验,看了下ST的最新库HAL驱动,于是想用HAL驱动来做串口。使用过程中发现只能发送数据不能接收数据,用逻辑分析仪查看RX,TX引角,都有数据,但就是...
阅读全文
posted @ 2015-07-28 18:32
IAmAProgrammer
阅读(1819)
推荐(0)
摘要:
功能强大的STM32Cube 新软件平台由设计工具、中间件和硬件抽象层组成,让客户能够集中精力创新意法半导体(STMicroelectronics,简称ST)针对STM32微控制器推出一套免费的功能强大的设计工具及软件STM32Cube。新开发平台可简化客户的开发项目,缩短项目研发周期,并进一步强化...
阅读全文
posted @ 2015-07-28 18:16
IAmAProgrammer
阅读(887)
推荐(0)
摘要:
http://www.vaikan.com/regular-expression-to-match-string-not-containing-a-word/经常我们会遇到想找出不包含某个字符串的文本,程序员最容易想到的是在正则表达式里使用,^(hede)来过滤”hede”字串,但这种写法是错误的。...
阅读全文
posted @ 2015-07-24 12:18
IAmAProgrammer
阅读(2598)
推荐(0)
摘要:
CTRL + space in the textboxes gives you all kinds of suggestions for regular expression writing.查找替换Be sure to check out the \C regular expression ope...
阅读全文
posted @ 2015-07-20 23:47
IAmAProgrammer
阅读(7982)
推荐(1)
摘要:
The WinUSB user-mode library uses device interface classes to communicate with the kernel-mode USB stack. The INF file that loads winusb.sys specifies...
阅读全文
posted @ 2015-07-20 18:41
IAmAProgrammer
阅读(2262)
推荐(0)