<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[xbl1986的专栏]]></title><description><![CDATA[北大西洋联合舰队]]></description><link>https://blog.csdn.net/xbl1986</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; xbl1986]]></copyright><item><title><![CDATA[mutex 和 spinlock 对比]]></title><link>https://blog.csdn.net/xbl1986/article/details/19330433</link><guid>https://blog.csdn.net/xbl1986/article/details/19330433</guid><author>xbl1986</author><pubDate>Mon, 17 Feb 2014 11:41:04 +0800</pubDate><description><![CDATA[http://blog.csdn.net/dong976209075/article/details/8004325




理论上：

mutex和spinlock都是用于多进程/线程间访问公共资源时保持同步用的，只是在lock失败的时候处理方式有所不同。首先，当一个thread 给一个mutex上锁失败的时候，thread会进入sleep状态，从而让其他的thread运行，其中就]]></description><category></category></item><item><title><![CDATA[Android 蓝牙驱动 概要]]></title><link>https://blog.csdn.net/xbl1986/article/details/19190533</link><guid>https://blog.csdn.net/xbl1986/article/details/19190533</guid><author>xbl1986</author><pubDate>Fri, 14 Feb 2014 09:43:51 +0800</pubDate><description><![CDATA[http://blog.sina.com.cn/s/blog_6fba73770100nme8.html
http://blog.csdn.net/jmq_0000/article/details/7379802





在linux中，蓝牙设备驱动是网络设备，使用网络接口。

蓝牙设备的网络协议，所定义的协议族为：

AF_BLUETOOTH (31)

蓝牙协议部分]]></description><category></category></item><item><title><![CDATA[在驱动模块初始化函数中实现设备节点的自动创建]]></title><link>https://blog.csdn.net/xbl1986/article/details/19122235</link><guid>https://blog.csdn.net/xbl1986/article/details/19122235</guid><author>xbl1986</author><pubDate>Wed, 12 Feb 2014 16:11:43 +0800</pubDate><description><![CDATA[http://blog.csdn.net/zhenwenxian/article/details/5424434




在驱动模块初始化函数中实现设备节点的自动创建

 

我们在刚开始写Linux设备驱动程序的时候，很多时候都是利用mknod命令手动创建设备节点，实际上Linux内核为我们提供了一组函数，可以用来在模块加载的时候自动在/dev目录下创建相应设备节点，并在卸载模]]></description><category></category></item><item><title><![CDATA[android java层直接和kernel交互的最快的方法]]></title><link>https://blog.csdn.net/xbl1986/article/details/19122113</link><guid>https://blog.csdn.net/xbl1986/article/details/19122113</guid><author>xbl1986</author><pubDate>Wed, 12 Feb 2014 16:08:58 +0800</pubDate><description><![CDATA[http://blog.csdn.net/zengkexu/article/details/8805339


 android java 和kernel 的交互方式

 按照常规的要通过ＪＮＩ实现，　然后jni 调用HAL的IOCTL ，或者类似Vold 中建立netlink 的方式和kernel交互。

实际上这不是一种高效的方式。这样在时间紧迫的情况下，如果您的程序中 java]]></description><category></category></item><item><title><![CDATA[关于Gerrit的邮件设置问题]]></title><link>https://blog.csdn.net/xbl1986/article/details/18706467</link><guid>https://blog.csdn.net/xbl1986/article/details/18706467</guid><author>xbl1986</author><pubDate>Thu, 23 Jan 2014 15:24:54 +0800</pubDate><description><![CDATA[由于想搭建CI系统 gitlab+gerrit+jenkins
因此参考了http://longgeek.com/2013/12/26/ci-system-structures-iii-gerrit-installation-configuration/ 这篇文章
是 Nginx的，
然后我就各种收不到验证邮件了
下面是能用的配置
[gerrit]
	basePath = git
	ca]]></description><category></category></item><item><title><![CDATA[CI的组成]]></title><link>https://blog.csdn.net/xbl1986/article/details/18662095</link><guid>https://blog.csdn.net/xbl1986/article/details/18662095</guid><author>xbl1986</author><pubDate>Wed, 22 Jan 2014 14:55:42 +0800</pubDate><description><![CDATA[CI，是持续继承的英文缩写
我是先了解了Git，然后接触到Android，引发接触到了Gerrit，以及Jenkins
然后上网搜索浏览的时候接触到CI这个概念
发现有几个博客的文章写的是相当的好
看看这个：http://longgeek.com/category/ci/


CI 系统搭建：一. 基础环境设置、规划

CI 系统搭建：二. GitLab 的安装配置

CI ]]></description><category></category></item><item><title><![CDATA[Jenkinks使用163邮箱时提示553 mail from must equal authorized user]]></title><link>https://blog.csdn.net/xbl1986/article/details/18660137</link><guid>https://blog.csdn.net/xbl1986/article/details/18660137</guid><author>xbl1986</author><pubDate>Wed, 22 Jan 2014 13:58:40 +0800</pubDate><description><![CDATA[这是因为要在设置里面的
Jenkins Location 
System Admin e-mail address
 这个地方看看配置了没有
这里面写上发件人的邮箱地址
然后测试邮件就能发送成功了]]></description><category></category></item><item><title><![CDATA[ubuntu设置jenkins开机自动启动]]></title><link>https://blog.csdn.net/xbl1986/article/details/18657055</link><guid>https://blog.csdn.net/xbl1986/article/details/18657055</guid><author>xbl1986</author><pubDate>Wed, 22 Jan 2014 11:33:13 +0800</pubDate><description><![CDATA[本来我没有找到类似于gerrit的启动脚本
但是万能的google告诉了我，人家官网上提供了……
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Unix+daemon

以及

https://wiki.jenkins-ci.org/display/JENKINS/JenkinsLinuxStar]]></description><category></category></item><item><title><![CDATA[ubuntu设置gerrit开机自动启动]]></title><link>https://blog.csdn.net/xbl1986/article/details/18656887</link><guid>https://blog.csdn.net/xbl1986/article/details/18656887</guid><author>xbl1986</author><pubDate>Wed, 22 Jan 2014 11:12:48 +0800</pubDate><description><![CDATA[安装gerrit的时候，会有一个安装目录
在它的下面有个 bin/gerrit.sh文件
把这个文件拷贝到/etc/init.d下 改名叫做 gerrit
然后用sysv-rc-conf工具，这个没有可以直接apt-get install进行安装
然后执行sysv-rc-conf，找到gerrit的那一行，我把2~5都X上
然后重启下系统，/etc/rc*.d下面就都有对应的文件了，我这]]></description><category></category></item><item><title><![CDATA[用gnuplot画数据图]]></title><link>https://blog.csdn.net/xbl1986/article/details/18604611</link><guid>https://blog.csdn.net/xbl1986/article/details/18604611</guid><author>xbl1986</author><pubDate>Tue, 21 Jan 2014 14:47:41 +0800</pubDate><description><![CDATA[set terminal jpeg 
set title "xxx"
set xyplane at 0
set xlabel "time" 
set style data lines
set style line 1 lt rgb "red" lw 1
set style line 2 lt rgb "blue" lw 1
set output "a.jpg"
plot 'a1.txt' usin]]></description><category></category></item><item><title><![CDATA[Gerrit 提交更改到gerrit服务器]]></title><link>https://blog.csdn.net/xbl1986/article/details/18452471</link><guid>https://blog.csdn.net/xbl1986/article/details/18452471</guid><author>xbl1986</author><pubDate>Sat, 18 Jan 2014 15:59:20 +0800</pubDate><description><![CDATA[一般都是git push 但是现在要push到一个虚拟的分支上面


Usually when you push to a remote git, you push to the reference '/refs/heads/branch', but when working with Gerrit you have to push to a virtual branch represent]]></description><category></category></item><item><title><![CDATA[Gerrit 添加一个已经有的git工程到gerrit服务器]]></title><link>https://blog.csdn.net/xbl1986/article/details/18452371</link><guid>https://blog.csdn.net/xbl1986/article/details/18452371</guid><author>xbl1986</author><pubDate>Sat, 18 Jan 2014 15:56:55 +0800</pubDate><description><![CDATA[The other alternative is if you already have a git project that you want to try out Gerrit on. First you have to create the project. This is done via the SSH port:
首先创建这个项目



  user@host:~$ ssh ]]></description><category></category></item><item><title><![CDATA[Gerrit 创建一个新工程]]></title><link>https://blog.csdn.net/xbl1986/article/details/18452299</link><guid>https://blog.csdn.net/xbl1986/article/details/18452299</guid><author>xbl1986</author><pubDate>Sat, 18 Jan 2014 15:54:46 +0800</pubDate><description><![CDATA[user@host:~$ ssh -p 29418 user@localhost gerrit create-project --empty-commit --name demo-project



上面就是命令，-p应该是指定端口号
user是登陆的名字
localhost本地测试是127.0.0.1，要看服务器怎么配置了
然后这个创建的是个git仓库]]></description><category></category></item><item><title><![CDATA[Gerrit 提交commit]]></title><link>https://blog.csdn.net/xbl1986/article/details/18451681</link><guid>https://blog.csdn.net/xbl1986/article/details/18451681</guid><author>xbl1986</author><pubDate>Sat, 18 Jan 2014 15:42:46 +0800</pubDate><description><![CDATA[git push origin HEAD:refs/for/master
Enter passphrase for key '/home/gerrit2/.ssh/id_rsa': 
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), don]]></description><category></category></item><item><title><![CDATA[Ubuntu 建立  Gerrit服务器 配置文件]]></title><link>https://blog.csdn.net/xbl1986/article/details/18450681</link><guid>https://blog.csdn.net/xbl1986/article/details/18450681</guid><author>xbl1986</author><pubDate>Sat, 18 Jan 2014 15:00:57 +0800</pubDate><description><![CDATA[uname -a
Linux yangyang 3.8.0-32-generic #47~precise1-Ubuntu SMP Wed Oct 2 16:19:35 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
安装包使用的是：gerrit-2.8-rc3.war

目录安装在：
/home/gerrit2/gerrit_application_dir]]></description><category></category></item><item><title><![CDATA[RTGUI设置背景颜色]]></title><link>https://blog.csdn.net/xbl1986/article/details/18412487</link><guid>https://blog.csdn.net/xbl1986/article/details/18412487</guid><author>xbl1986</author><pubDate>Fri, 17 Jan 2014 17:20:52 +0800</pubDate><description><![CDATA[在rtgui_theme.c中
const rtgui_color_t default_foreground = RTGUI_RGB(0x00, 0x00, 0x00);
const rtgui_color_t default_background = RTGUI_RGB(212, 208, 200);
const rtgui_color_t selected_color = RTGUI_RGB]]></description><category></category></item><item><title><![CDATA[rtt中加入RTGUI]]></title><link>https://blog.csdn.net/xbl1986/article/details/18094509</link><guid>https://blog.csdn.net/xbl1986/article/details/18094509</guid><author>xbl1986</author><pubDate>Fri, 10 Jan 2014 20:48:56 +0800</pubDate><description><![CDATA[将RTGUI中的rtgui目录拷贝到rtt的components下
然后在rtconfig.h中加入各种RT_GUI的宏定义，然后重新编译，就可以了
// 
#define RT_USING_RTGUI
// 
#define RTGUI_NAME_MAX        16
// 
#define RTGUI_USING_FONT16
// 
//#define RTGUI_USING_FO]]></description><category></category></item><item><title><![CDATA[编译rtt的命令]]></title><link>https://blog.csdn.net/xbl1986/article/details/18094473</link><guid>https://blog.csdn.net/xbl1986/article/details/18094473</guid><author>xbl1986</author><pubDate>Fri, 10 Jan 2014 20:46:59 +0800</pubDate><description><![CDATA[scons --target=mdk4 -s]]></description><category></category></item><item><title><![CDATA[Keil当时使用伪随机数]]></title><link>https://blog.csdn.net/xbl1986/article/details/18083703</link><guid>https://blog.csdn.net/xbl1986/article/details/18083703</guid><author>xbl1986</author><pubDate>Fri, 10 Jan 2014 14:50:07 +0800</pubDate><description><![CDATA[#include 
srand(100);

x=rand()%320;
y=rand()%480;
dx=rand()%320;
dy=rand()%480;
color=rand()%0xFFFF;
LCD_SetFGColor(color);
LCD_DrawRectangle(x,y, dx, dy);



一个固定的种子，总会得到同样的随机数
然后随机画矩形]]></description><category></category></item><item><title><![CDATA[STM32F4 Discovery 使用FSMC驱动ILI9481 3.5寸 信利屏]]></title><link>https://blog.csdn.net/xbl1986/article/details/18048861</link><guid>https://blog.csdn.net/xbl1986/article/details/18048861</guid><author>xbl1986</author><pubDate>Thu, 09 Jan 2014 20:24:34 +0800</pubDate><description><![CDATA[对于主函数来数，只需要
int main(void)
{
	SystemInit();
	SysTick_Init();
	LCD_Init();
	while(1){
		Delay(10);
	}
}即可，初始化系统，系统时钟，初始化LCD屏。
system_stm32f4xx.c文件中有SystemInit()函数，里面的内容不用改，直接拿来可以用。
SysTick_Init函数是自己]]></description><category></category></item></channel></rss>