定义
Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request.Chain the receiving objects and pass the request along the chain
until an obj...
分类:
其他好文 时间:
2015-07-20 19:34:32
阅读次数:
183
定义
Define an object that encapsulates how a set of objects interact. Mediator promptes loose
coupling by keeping objects from referring to each other explicitly,and it lets you vary their interact...
分类:
其他好文 时间:
2015-07-20 13:04:19
阅读次数:
89
目前正在调试msix中断,在测试过程中发现会概率性的丢失中断。Msix中断默认是edge触发的中断,edge触发的中断是在中断对应pin发生电平信号跳变的时候,会发出一个中断请求。因为跳变是一瞬间的,不会像level触发中断那样一直保持电平不变,这样就可能会漏掉某一个跳变的瞬间,表现就是丢失了一个中断。
内核中处理edge触发中断的函数为handle_edge_irq,此函数有do_IRQ...
分类:
其他好文 时间:
2015-07-19 11:54:09
阅读次数:
122
All VCCO pins on the FPGA must be connected, even if a bank is unused.the HSWAPEN pin must be either connected directly to GND, or forcedLow by anothe...
分类:
其他好文 时间:
2015-07-17 18:04:32
阅读次数:
91
在RT-thread 2.0.0正式版中引入了pin设备作为杂类设备,其设备驱动文件pin.c在rt-thread-2.0.1\components\drivers\misc中,主要用于操作芯片GPIO, 如点亮led,按键等。同时对于相应的芯片平台,需要自行编写底层gpio驱动,如gpio....
分类:
其他好文 时间:
2015-07-16 00:22:38
阅读次数:
703
本文主要解决两个问题
1 STM32的IO口要反转,怎么实现?
2 嘀嗒定时器systick的配置
解答1:
单片机的口,反转很容易。sbit led = P1 ^6; led = ~led;而STM32的口要让它反转,怎样实现呢?
很容易,对想要反转的IO口取异或: GPIOx->ODR ^= GPIO_Pin;
解答2:
#include "...
分类:
其他好文 时间:
2015-07-14 13:43:15
阅读次数:
665
最近在学习画PCB今天遇到比较奇怪的问题把原理图画好后标注元件但是发现电阻名称在标注时候有重复,如下原因为 还是我讲的那个问题,你的原理图里,虽然有很多电阻,但是都是由part组成的,所以导入PCB后,这些part就合为一个电阻了,如果,你一个MCU有100多个甚至更多的pin,你的原理图画一个框可...
分类:
其他好文 时间:
2015-07-11 16:28:03
阅读次数:
176
The DS90CR287 transmitter converts 28 bits of LVCMOS/LVTTL data into four LVDS data streams。
下面是它的pin图:
RxOUTn对应的就是TxINn,TxCLK IN对应着RxCLK OUT
原理示意:
调试成功注意事项:
①PLL VCC去耦电容:...
分类:
其他好文 时间:
2015-07-11 10:37:22
阅读次数:
184
请参考这篇文章:1.start reaver attack using any random bssid and after 1 or two pin attempts, prezz Ctrl+Z to stop the process.2.Now goto /usr/local/etc/reave...
分类:
其他好文 时间:
2015-07-09 06:16:47
阅读次数:
116
mDevice是你要去连接的那个蓝牙的对象 , 1234为配对的pin码...
分类:
移动开发 时间:
2015-07-07 19:32:48
阅读次数:
262