★总体介绍
LED驱动程序主要实现了TQ2440开发板上的4个LED灯的硬件驱动,实现了对引脚GPIOB5、GPIOB6、GPIOB7、GPIOB8的高低电平设置(common-smdk.c中已经实现了对引脚的配置),利用测试程序调用该驱动程序,通过命令控制LED灯的亮灭。
★详细介绍
1、驱动程序代码:My_led.c
#include
#include
#include
#inc...
分类:
系统相关 时间:
2014-06-19 09:58:26
阅读次数:
429
STEP1: Open Terminal
SETP2: Run setup.py
SETP3: Run source /Users/your_user/.bash_profile( so that environment variables are actually updated)
SETP4: Run cocos new my game -p com.your_company.mygame -l cpp -d /diretory_to_your_game
Open Terminal
R...
分类:
其他好文 时间:
2014-06-16 12:22:35
阅读次数:
178
1.创建一个基于对话框的MFC工程,名称设置为“My”。2.在自动生成的对话框模板中,删除“TODO:
Place dialog controls
here.”静态文本框、“OK”按钮和“Cancel”按钮。在对话框资源上从工具箱中添加上一个TabControl控件;3. 根据需要修改一下属性,然后...
分类:
其他好文 时间:
2014-06-16 08:19:29
阅读次数:
314
原文地址:http://my.oschina.net/u/158457/blog/28536排序的方法很特别,有点类似插入排序的味道先看下代码
1 public class Sort { 2 private static boolean[] temp = new boolean[10000]...
分类:
其他好文 时间:
2014-06-16 00:09:10
阅读次数:
211
sql与mysql的比较
1、连接字符串
sql :Initial Catalog(database)=x; --数据库名称
Data Source(source)=x; --服务器
Persist Security Info=True; --集成sql server身份验证
Integrated Security=True...
分类:
数据库 时间:
2014-06-15 20:17:11
阅读次数:
327
php基本的语法网上看一些别人写的网站就会了)
php下的执行sql语句:
1.建立数据库连接:
$conn = mysql_connect("localhost", "root", "admin") or die("Could not connect " );
Localhost:本地主机名,root:mysql数据库账号 admin:mysql数据库密码
my...
分类:
编程语言 时间:
2014-06-15 19:17:52
阅读次数:
298
/*
*普通分页
*在数据文件上偏移1000000查出10条
*/
select *
from zoldesk_92game_net_ecms_bj
where classid=303
ORDER BY id ASC
LIMIT 1000000,10
/*
*高效分页
*1、在索引上查出起始索引
*2、从起始索引上查出10条
*/
SELECT * from zoldesk_9...
分类:
数据库 时间:
2014-06-15 15:47:31
阅读次数:
272
1.http://www.cnblogs.com/milospooner/archive/2012/07/13/2590950.html2.http://my.oschina.net/sanshang/blog/111513.http://bashell.sinaapp.com/archives/v...
分类:
移动开发 时间:
2014-06-13 18:16:21
阅读次数:
1145
##RECORD,help me remember ###Make Lazy Version
Installer 1、Write this LazyVersion Installer DMG to a RAW empty disk 2、Use
Clover l...
分类:
其他好文 时间:
2014-06-13 15:27:01
阅读次数:
349
原文:mysql数据库的安装以及常见优化设置本文根据优才网课程整理,面向web开发者,内容以实用为主,专业DBA可以绕行。如果你在大公司,可能有专门的DBA来做这些事情,如果你在一个小公司当架构师或者技术总监,或者你自己创业,那DBA的活你也得干了。咱们来讲一下基本的mysql安装和优化。一:
MY...
分类:
数据库 时间:
2014-06-12 06:10:52
阅读次数:
692