下面一个可以直接编译运行的例子,FreeRTOS的版本是V7.1.0,芯片是STM32F107VCT6,使用的开发环境是Keil uVision5。这里例子创建了四个任务,每个任务控制一个LED的亮灭,很简单,可以用来学习FreeRTOS。下载链接:http://pan.baidu.com/s/1l...
分类:
其他好文 时间:
2015-06-09 23:34:41
阅读次数:
210
IV.控制结构1.if/else除基本用法外,if/else语句能用来赋值,进而代替?:运算符。这得益于在Scala中,每个语句块都有值,就是该语句块最后一个语句的值。请看下面的代码。def abs(x: Int) = if(x //handle case 1 case "case 2...
分类:
其他好文 时间:
2015-06-09 19:40:39
阅读次数:
109
Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complet...
分类:
编程语言 时间:
2015-06-06 22:05:00
阅读次数:
169
I 安装配置工作前的准备 2 II 安装 OpenCV 2 III 安装QT 3 IV 使QT能够使用OpenCV 3 如果顺利,整个过程应该3个小时左右能够完成。 我整个过程用了一早上,配置过程中有问题,就要好好利用百度。多亏前辈们的积累,不然我可能在花几天都不会配置好,在这里我也分享下配置的过程...
分类:
系统相关 时间:
2015-06-03 17:33:05
阅读次数:
833
很多人问我FPGA的电源怎么怎么着,当然也有人瞎忽悠乱设计,当然我的设计也不是很完美。。。这里把我当年第一次设计FPGA,到现在的电源方案,几个演变、分析的过程,给大家讲讲。。。(1)FPGA电源方案1最后我们采用3.3V与1.2V的LDO,由于考虑到板卡3.3V逻辑,因此3.3V耗电量更大。因此选...
分类:
其他好文 时间:
2015-06-02 19:56:45
阅读次数:
180
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1029Ignatius and the Princess IVDescriptionOK, you are not too bad, em... But you can never pass the nex...
分类:
其他好文 时间:
2015-06-01 22:12:24
阅读次数:
110
<?php
class?DES?{
var?$key;
var?$iv;?//?偏移量
function?DES($key,?$iv?=?0)?{
//?key长度8例如:1234abcd
$this->key?=?$key;
if?($iv?==?0)?{
$this->iv?=?$key;
}?else?{
$this->iv?...
//给image设置手指触摸的监听器
iv.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
//判断当前手指事件的类型
//按下 移动 离开...
分类:
其他好文 时间:
2015-05-28 16:28:33
阅读次数:
171
安装命令rpm -i example.rpm 安装 example.rpm 包;rpm -iv example.rpm 安装 example.rpm 包并在安装过程中显示正在安装的文件信息;rpm -ivh example.rpm 安装 example.rpm 包并在安装过程中显示正在安装的文件信息...
分类:
其他好文 时间:
2015-05-26 15:47:03
阅读次数:
125
问题描述Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete at most k transactions.Example
Given price...
分类:
其他好文 时间:
2015-05-23 11:30:26
阅读次数:
124