Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7253
  • 博文数量: 6
  • 博客积分: 122
  • 博客等级: 入伍新兵
  • 技术积分: 70
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-13 16:17
文章分类
文章存档

2010年(6)

我的朋友
最近访客

分类:

2010-09-18 11:52:21

1. 杂项设备(misc device):其实misc_register就是用主标号10调用register_chrdev()的。
 * Register a miscellaneous device with the kernel. If the minor
 * number is set to %MISC_DYNAMIC_MINOR a minor number is assigned
 * and placed in the minor field of the structure. For other cases
 * the minor number requested is used.
 *
 * The structure passed is linked into the kernel and may not be
 * destroyed until it has been unregistered.

2. cat/proc/devices可以查看主设备号, ls -l 则可以看到主次设备号

3.FCLK, HCLK, and PCLK
FCLK is used by ARM920T.
HCLK is used for AHB bus, which is used by the ARM920T, the memory controller, the interrupt controller, the LCD
controller, the DMA and USB host block.
PCLK is used for APB bus, which is used by the peripherals such as WDT, IIS, I2C, PWM timer, MMC interface,
ADC, UART, GPIO, RTC and SPI.
阅读(509) | 评论(0) | 转发(0) |
0

上一篇:0917

下一篇:0925

给主人留下些什么吧!~~